com.eliad.model.defaults
Class DefaultStyleModel.ProxyLazyValue

java.lang.Object
  |
  +--com.eliad.model.defaults.DefaultStyleModel.ProxyLazyValue

public static class DefaultStyleModel.ProxyLazyValue
extends java.lang.Object
implements javax.swing.UIDefaults.LazyValue

Variant of UIDefaults.ProxyLazyValue that allows you to specify a class loader.


Constructor Summary
DefaultStyleModel.ProxyLazyValue(java.lang.String c)
          Creates a LazyValue which will construct an instance when asked.
DefaultStyleModel.ProxyLazyValue(java.lang.String c, java.lang.ClassLoader classLoader)
          Creates a LazyValue which will construct an instance when asked.
 
Method Summary
 java.lang.Object createValue(javax.swing.UIDefaults table)
          Creates the value retrieved from the UIDefaults table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStyleModel.ProxyLazyValue

public DefaultStyleModel.ProxyLazyValue(java.lang.String c)
Creates a LazyValue which will construct an instance when asked.
Parameters:
c - a String specifying the classname of the instance to be created on demand

DefaultStyleModel.ProxyLazyValue

public DefaultStyleModel.ProxyLazyValue(java.lang.String c,
                                        java.lang.ClassLoader classLoader)
Creates a LazyValue which will construct an instance when asked.
Parameters:
c - a String specifying the classname of the instance to be created on demand
Method Detail

createValue

public java.lang.Object createValue(javax.swing.UIDefaults table)
Creates the value retrieved from the UIDefaults table. The object is created each time it is accessed.
Specified by:
createValue in interface javax.swing.UIDefaults.LazyValue
Parameters:
table - a UIDefaults table
Returns:
the created Object