Interface ComponentsVisitor
-
- All Known Implementing Classes:
AbstractComponentsVisitor,ComponentsDisablingVisitor,CompoundComponentsVisitor,DynamicCompoundComponentsVisitor,EditorAreaEditorsVisitor,EditorsVisitor,SectionsVisitor,TabsVisitor
public interface ComponentsVisitorAn interface for dynamic forms visitor which will apply configured behavior on all registered components and theirs children.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_CTXstatic java.lang.StringMODEL_ROOTstatic ComponentsVisitorNULL
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcleanUp()Removes all registered components and observers.default voidinitialize(java.lang.String typeCode, WidgetInstanceManager wim, DynamicForms dynamicForms)Initializes a visitor.voidregister(org.zkoss.zk.ui.Component component)Registers a component and it's child components recursively usingComponent.getChildren()default voidunRegister(org.zkoss.zk.ui.Component component)Unregisters a component and it's child components recursively usingComponent.getChildren()
-
-
-
Field Detail
-
COMPONENT_CTX
static final java.lang.String COMPONENT_CTX
- See Also:
- Constant Field Values
-
MODEL_ROOT
static final java.lang.String MODEL_ROOT
- See Also:
- Constant Field Values
-
NULL
static final ComponentsVisitor NULL
-
-
Method Detail
-
register
void register(org.zkoss.zk.ui.Component component)
Registers a component and it's child components recursively usingComponent.getChildren()- Parameters:
component- component to register
-
unRegister
default void unRegister(org.zkoss.zk.ui.Component component)
Unregisters a component and it's child components recursively usingComponent.getChildren()- Parameters:
component- component to unregister
-
cleanUp
default void cleanUp()
Removes all registered components and observers.
-
initialize
default void initialize(java.lang.String typeCode, WidgetInstanceManager wim, DynamicForms dynamicForms)Initializes a visitor. The method should be called before the first usage of the visitor (calling methodregister(Component)).
-
-