public final class FormDelegate extends DefaultPersistenceDelegate
Forms.| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize(Class<?> type,
Object oldInstance,
Object newInstance,
Encoder out)
Produces statements on
newInstance so that
newInstance becomes equivalent to oldInstance. |
protected static List<Component> |
makeSortedComponentList(Container c,
List<Component> bc,
List<Component> newList)
Used to sort the list of beans in a form based on the order they appear in
their parents.
|
protected boolean |
mutatesTo(Object oldInstance,
Object newInstance)
Returns true if an equivalent copy of
oldInstance can be made
from newInstance. |
static void |
registerDelegate()
Registers the persistence delegate so that it will be used.
|
instantiatewriteObjectpublic static void registerDelegate()
protected boolean mutatesTo(Object oldInstance, Object newInstance)
oldInstance can be made
from newInstance.mutatesTo in class DefaultPersistenceDelegateoldInstance - The instance to be copied.newInstance - The instance to be modified.protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
newInstance so that
newInstance becomes equivalent to oldInstance.initialize in class DefaultPersistenceDelegatetype - XXXoldInstance - The instance to be copied.newInstance - The instance to be modified.out - The encoder to write the statements to.protected static List<Component> makeSortedComponentList(Container c, List<Component> bc, List<Component> newList)
c - the container whose children are recursively added to newListbc - only beans in this list are added to newList, after they are
added to newList, they are removed from bc.newList - the list the beans are added to.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.