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
FieldsModifier and TypeFieldDescriptionstatic final StringThe style class which is set at the view root component to signal that the editor's invalid flag.static final StringThe 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zk.ui.ComponentcreateView(org.zkoss.zk.ui.Page page) protected org.zkoss.zkplus.databind.AnnotateDataBinderfinal org.zkoss.zk.ui.ComponentgetOrCreateViewComponent(org.zkoss.zk.ui.Page page) Returns the view component bound to this value editor bean.Provides view component creation arguments (available via ${arg.*}.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 Details
-
INVALID_SCLASS
The style class which is set at the view root component to signal that the editor's invalid flag.- See Also:
-
READONLY_SCLASS
The style class which is set at the view root component to signal that the editor is read-only.- See Also:
-
-
Constructor Details
-
DefaultZKPropertyEditorBean
-
-
Method Details
-
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:
-
getViewCreationArgs
Provides view component creation arguments (available via ${arg.*}. -
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
-