IT. Expert System.

Java Standard Edition (SE)

UIDefaults.LazyValue


javax.swing

Interface UIDefaults.LazyValue

  • All Known Implementing Classes:
    UIDefaults.LazyInputMap, UIDefaults.ProxyLazyValue
    Enclosing class:
    UIDefaults


    public static interface UIDefaults.LazyValue
    This class enables one to store an entry in the defaults table that isn't constructed until the first time it's looked up with one of the getXXX(key) methods. Lazy values are useful for defaults that are expensive to construct or are seldom retrieved. The first time a LazyValue is retrieved its "real value" is computed by calling LazyValue.createValue() and the real value is used to replace the LazyValue in the UIDefaults table. Subsequent lookups for the same key return the real value. Here's an example of a LazyValue that constructs a Border:
      Object borderLazyValue = new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
              return new BorderFactory.createLoweredBevelBorder();
          }
      };
    
      uiDefaultsTable.put("MyBorder", borderLazyValue);
     
    See Also:
    UIDefaults.get(java.lang.Object)
    • Method Detail

      • createValue

        Object createValue(UIDefaults table)
        Creates the actual value retrieved from the UIDefaults table. When an object that implements this interface is retrieved from the table, this method is used to create the real value, which is then stored in the table and returned to the calling method.
        Parameters:
        table - a UIDefaults table
        Returns:
        the created Object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 476 / 158798164. Delta: 0.08962 с