Class DefaultZKPropertyEditorBean
- java.lang.Object
-
- de.hybris.platform.cockpit.model.meta.impl.DefaultPropertyEditorBean
-
- de.hybris.platform.cockpit.model.meta.DefaultZKPropertyEditorBean
-
- All Implemented Interfaces:
PropertyEditorBean,ZKPropertyEditorBean
public class DefaultZKPropertyEditorBean extends DefaultPropertyEditorBean implements ZKPropertyEditorBean
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINVALID_SCLASSThe style class which is set at the view root component to signal that the editor's invalid flag.static java.lang.StringREADONLY_SCLASSThe style class which is set at the view root component to signal that the editor is read-only.-
Fields inherited from interface de.hybris.platform.cockpit.model.meta.ZKPropertyEditorBean
EDITOR_BEAN_ID
-
-
Constructor Summary
Constructors Constructor Description DefaultZKPropertyEditorBean(DefaultPropertyEditorDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zk.ui.ComponentcreateView(org.zkoss.zk.ui.Page page)protected org.zkoss.zkplus.databind.AnnotateDataBindergetBinder()org.zkoss.zk.ui.ComponentgetOrCreateViewComponent(org.zkoss.zk.ui.Page page)Returns the view component bound to this value editor bean.protected java.util.Map<java.lang.String,java.lang.Object>getViewCreationArgs()Provides view component creation arguments (available via ${arg.*}.protected java.util.Map<java.lang.String,java.lang.Object>getViewLocalVariables()Provides local attributes to be available inside the view component.protected voidinitView(org.zkoss.zk.ui.Component view)Called right after view component creation.protected voidupdateEditable(boolean newEditable)Called each time the editable flag has been changed.protected voidupdateInvalid(boolean newInvalid)Called each time the invalid flag has been changed.-
Methods inherited from class de.hybris.platform.cockpit.model.meta.impl.DefaultPropertyEditorBean
getDescriptor, getValue, getValues, initialize, isEditable, isInvalid, isModified, reset, setEditable, setInvalid, setValue, setValues
-
-
-
-
Field Detail
-
INVALID_SCLASS
public static final java.lang.String INVALID_SCLASS
The style class which is set at the view root component to signal that the editor's invalid flag.- See Also:
- Constant Field Values
-
READONLY_SCLASS
public static final java.lang.String READONLY_SCLASS
The style class which is set at the view root component to signal that the editor is read-only.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultZKPropertyEditorBean
public DefaultZKPropertyEditorBean(DefaultPropertyEditorDescriptor descriptor)
-
-
Method Detail
-
getBinder
protected org.zkoss.zkplus.databind.AnnotateDataBinder getBinder()
-
getOrCreateViewComponent
public final org.zkoss.zk.ui.Component getOrCreateViewComponent(org.zkoss.zk.ui.Page page)
Description copied from interface:ZKPropertyEditorBeanReturns the view component bound to this value editor bean.- Specified by:
getOrCreateViewComponentin interfaceZKPropertyEditorBean- Parameters:
page- TODO- See Also:
ZKPropertyEditorBean.getOrCreateViewComponent(Page)
-
getViewCreationArgs
protected java.util.Map<java.lang.String,java.lang.Object> getViewCreationArgs()
Provides view component creation arguments (available via ${arg.*}.
-
getViewLocalVariables
protected java.util.Map<java.lang.String,java.lang.Object> getViewLocalVariables()
Provides local attributes to be available inside the view component.
-
initView
protected void initView(org.zkoss.zk.ui.Component view)
Called right after view component creation. Override to do additional initialization.- Parameters:
view- the new view component
-
createView
protected org.zkoss.zk.ui.Component createView(org.zkoss.zk.ui.Page page)
-
updateEditable
protected void updateEditable(boolean newEditable)
Description copied from class:DefaultPropertyEditorBeanCalled each time the editable flag has been changed. The component should be modified to block or allow user input.- Overrides:
updateEditablein classDefaultPropertyEditorBean- Parameters:
newEditable- the new editable flag value
-
updateInvalid
protected void updateInvalid(boolean newInvalid)
Description copied from class:DefaultPropertyEditorBeanCalled each time the invalid flag has been changed. The component may signal this fact accordingly.- Overrides:
updateInvalidin classDefaultPropertyEditorBean- Parameters:
newInvalid- the new invalid flag value
-
-