public static interface UIDefaults.LazyValue 
      getXXX(key) 。 
       懒惰值对于构建或很少检索昂贵的默认值很有用。 
       一个在第一时间LazyValue被取回它的“真实值”是通过调用计算LazyValue.createValue()和实际数值被用来取代LazyValue在UIDefaults表。 
       相同键的后续查找返回真实值。 
       以下是一个LazyValue的例子,它构建了一个Border : 
         Object borderLazyValue = new UIDefaults.LazyValue() {
      public Object createValue(UIDefaults table) {
          return new BorderFactory.createLoweredBevelBorder();
      }
  };
  uiDefaultsTable.put("MyBorder", borderLazyValue);  
      | Modifier and Type | Method and Description | 
|---|---|
| Object | createValue(UIDefaults table)
              创建从 
              UIDefaults表检索的实际值。 | 
Object createValue(UIDefaults table)
UIDefaults表检索的实际值。 
           当从表中检索到实现此接口的对象时,该方法用于创建实际值,然后存储在表中并返回到调用方法。 
          table - a 
            UIDefaults表 
           Object 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.