javax.swing.plaf.metal
Class MetalLookAndFeel.MetalLazyValue

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalLookAndFeel.MetalLazyValue
All Implemented Interfaces:
UIDefaults.LazyValue
Enclosing class:
MetalLookAndFeel

private static class MetalLookAndFeel.MetalLazyValue
extends Object
implements UIDefaults.LazyValue

MetalLazyValue is a slimmed down version of ProxyLaxyValue. The code is duplicate so that it can get at the package private classes in metal.


Field Summary
private  String className
          Name of the class to create.
 
Constructor Summary
(package private) MetalLookAndFeel.MetalLazyValue(String name)
           
 
Method Summary
 Object createValue(UIDefaults table)
          Creates the actual value retrieved from the UIDefaults table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

private String className
Name of the class to create.

Constructor Detail

MetalLookAndFeel.MetalLazyValue

MetalLookAndFeel.MetalLazyValue(String name)
Method Detail

createValue

public Object createValue(UIDefaults table)
Description copied from interface: UIDefaults.LazyValue
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.

Specified by:
createValue in interface UIDefaults.LazyValue
Parameters:
table - a UIDefaults table
Returns:
the created Object