Class AbstractInstantEditorMouseEventListener
- java.lang.Object
-
- com.hybris.cockpitng.editor.instant.listeners.AbstractInstantEditorMouseEventListener
-
- All Implemented Interfaces:
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.MouseEvent>
- Direct Known Subclasses:
InstantEditorConfirmButtonClickListener,InstantEditorLabelClickListener
public abstract class AbstractInstantEditorMouseEventListener extends java.lang.Object implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.MouseEvent>Abstract MouseEvent EventListener for Instant Editor.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_OLD_VALUEKey under which current editor's value is stored inEditor.getParameters()when displaying underlying editor.
-
Constructor Summary
Constructors Constructor Description AbstractInstantEditorMouseEventListener(org.zkoss.zk.ui.HtmlBasedComponent labelContainer, org.zkoss.zul.Div editorContainer, Editor editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected EditorgetEditor()protected org.zkoss.zul.DivgetEditorContainer()protected org.zkoss.zul.LabelgetLabel()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7protected org.zkoss.zk.ui.HtmlBasedComponentgetLabelContainer()protected voidswitchToEditor()protected voidswitchToLabel()
-
-
-
Field Detail
-
KEY_OLD_VALUE
public static final java.lang.String KEY_OLD_VALUE
Key under which current editor's value is stored inEditor.getParameters()when displaying underlying editor. If user cancels the edit it is used to rollback editor's value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractInstantEditorMouseEventListener
public AbstractInstantEditorMouseEventListener(org.zkoss.zk.ui.HtmlBasedComponent labelContainer, org.zkoss.zul.Div editorContainer, Editor editor)- Parameters:
labelContainer- label component containing string representation of the dataeditorContainer- container component for the underlying editoreditor- instant editor's underlying editor
-
-
Method Detail
-
switchToLabel
protected void switchToLabel()
-
switchToEditor
protected void switchToEditor()
-
getLabel
@Deprecated(since="6.7", forRemoval=true) protected org.zkoss.zul.Label getLabel()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7- See Also:
getLabelContainer()
-
getLabelContainer
protected org.zkoss.zk.ui.HtmlBasedComponent getLabelContainer()
-
getEditorContainer
protected org.zkoss.zul.Div getEditorContainer()
-
getEditor
protected Editor getEditor()
-
-