Class 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.String KEY_OLD_VALUE
      Key under which current editor's value is stored in Editor.getParameters() when displaying underlying editor.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected Editor getEditor()  
      protected org.zkoss.zul.Div getEditorContainer()  
      protected org.zkoss.zul.Label getLabel()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.7
      protected org.zkoss.zk.ui.HtmlBasedComponent getLabelContainer()  
      protected void switchToEditor()  
      protected void switchToLabel()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.zkoss.zk.ui.event.EventListener

        onEvent
    • Field Detail

      • KEY_OLD_VALUE

        public static final java.lang.String KEY_OLD_VALUE
        Key under which current editor's value is stored in Editor.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 data
        editorContainer - container component for the underlying editor
        editor - 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()