Class SectionsVisitor
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.dynamicforms.impl.visitors.AbstractComponentsVisitor<org.zkoss.zul.Groupbox,DynamicSection>
-
- com.hybris.cockpitng.widgets.common.dynamicforms.impl.visitors.SectionsVisitor
-
- All Implemented Interfaces:
ComponentsVisitor
public class SectionsVisitor extends AbstractComponentsVisitor<org.zkoss.zul.Groupbox,DynamicSection>
Visitor ofGroupboxfrom UI elements. Uses as a configurationDynamicForms.getSection()
-
-
Field Summary
-
Fields inherited from interface com.hybris.cockpitng.widgets.common.dynamicforms.ComponentsVisitor
COMPONENT_CTX, MODEL_ROOT, NULL
-
-
Constructor Summary
Constructors Constructor Description SectionsVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyVisibleIf(java.util.Collection<org.zkoss.zul.Groupbox> groupBoxes, DynamicSection dynamicSection, java.lang.Object target)protected booleancanHandle(org.zkoss.zk.ui.Component component)Decides if component can be handled by the visitor.protected java.lang.StringgetComponentKey(org.zkoss.zul.Groupbox component)Gets component's name key which is used to map components with dynamic forms throughAbstractDynamicElement.getQualifier().protected java.util.List<DynamicSection>getDynamicElements()Extracts elements of typefrom DynamicForms.protected voidvisitComponents(DynamicSection dynamicSection, java.lang.Object target, boolean initial)Visits components for dynamic element.-
Methods inherited from class com.hybris.cockpitng.widgets.common.dynamicforms.impl.visitors.AbstractComponentsVisitor
canChangeProperty, canReadProperty, cleanUp, cleanUpInternal, getComponentKeyComponentsMap, getDataType, getDefaultScriptingConfig, getDynamicForms, getElementQualifierKey, getExpressionEvaluator, getPathToAttributeInModel, getPathToAttributeInModel, getPermissionFacade, getTargetObject, getTypeCode, getTypeFacade, getWidgetInstanceManager, initialize, isDisabled, isVisible, register, setExpressionEvaluator, setPermissionFacade, setTypeFacade, unRegister
-
-
-
-
Method Detail
-
canHandle
protected boolean canHandle(org.zkoss.zk.ui.Component component)
Description copied from class:AbstractComponentsVisitorDecides if component can be handled by the visitor.- Specified by:
canHandlein classAbstractComponentsVisitor<org.zkoss.zul.Groupbox,DynamicSection>- Parameters:
component- component to accept.- Returns:
- true if components should be accepted by visitor.
-
getComponentKey
protected java.lang.String getComponentKey(org.zkoss.zul.Groupbox component)
Description copied from class:AbstractComponentsVisitorGets component's name key which is used to map components with dynamic forms throughAbstractDynamicElement.getQualifier().- Specified by:
getComponentKeyin classAbstractComponentsVisitor<org.zkoss.zul.Groupbox,DynamicSection>- Parameters:
component- component which id should be returned.- Returns:
- extracted key of a component.
-
getDynamicElements
protected java.util.List<DynamicSection> getDynamicElements()
Description copied from class:AbstractComponentsVisitorExtracts elements of typefrom DynamicForms.- Specified by:
getDynamicElementsin classAbstractComponentsVisitor<org.zkoss.zul.Groupbox,DynamicSection>- Returns:
- list of
to use in configuration.
-
visitComponents
protected void visitComponents(DynamicSection dynamicSection, java.lang.Object target, boolean initial)
Description copied from class:AbstractComponentsVisitorVisits components for dynamic element.- Specified by:
visitComponentsin classAbstractComponentsVisitor<org.zkoss.zul.Groupbox,DynamicSection>- Parameters:
dynamicSection- dynamic forms element configuration.target- currently displayed object.initial- flag which says if this is initial visit before any interaction with user.
-
applyVisibleIf
protected void applyVisibleIf(java.util.Collection<org.zkoss.zul.Groupbox> groupBoxes, DynamicSection dynamicSection, java.lang.Object target)
-
-