org.jdesktop.swingx.editors
Class PainterPropertyEditor.AreaDelegate
java.lang.Object
java.beans.PersistenceDelegate
org.jdesktop.swingx.editors.PainterPropertyEditor.AreaDelegate
- Enclosing class:
- PainterPropertyEditor
public static final class PainterPropertyEditor.AreaDelegate
- extends PersistenceDelegate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PainterPropertyEditor.AreaDelegate
public PainterPropertyEditor.AreaDelegate()
instantiate
protected Expression instantiate(Object oldInstance,
Encoder out)
- Description copied from class:
java.beans.PersistenceDelegate
- Returns an expression whose value is
oldInstance
.
This method is used to characterize the constructor
or factory method that should be used to create the given object.
For example, the instantiate
method of the persistence
delegate for the Field
class could be defined as follows:
Field f = (Field)oldInstance;
return new Expression(f, f.getDeclaringClass(), "getField", new Object[]{f.getName()});
Note that we declare the value of the returned expression so that
the value of the expression (as returned by getValue
)
will be identical to oldInstance
.
- Specified by:
instantiate
in class PersistenceDelegate
- Parameters:
oldInstance
- The instance that will be created by this expression.out
- The stream to which this expression will be written.
- Returns:
- An expression whose value is
oldInstance
.