Class EditorAreaRendererUtils

    • Field Detail

      • MODEL_EDITOR_AREA_AFTER_SAVE_LISTENERS_MAP

        public static final java.lang.String MODEL_EDITOR_AREA_AFTER_SAVE_LISTENERS_MAP
        See Also:
        Constant Field Values
      • MODEL_EDITOR_AREA_AFTER_CANCEL_LISTENERS_MAP

        public static final java.lang.String MODEL_EDITOR_AREA_AFTER_CANCEL_LISTENERS_MAP
        See Also:
        Constant Field Values
      • MODEL_EDITOR_AREA_BEFORE_CANCEL_LISTENERS_MAP

        public static final java.lang.String MODEL_EDITOR_AREA_BEFORE_CANCEL_LISTENERS_MAP
        See Also:
        Constant Field Values
      • MODEL_EDITOR_AREA_RENDERER_LISTENER

        public static final java.lang.String MODEL_EDITOR_AREA_RENDERER_LISTENER
        See Also:
        Constant Field Values
    • Method Detail

      • getEditorAnchorAttributeName

        public static java.lang.String getEditorAnchorAttributeName()
      • getEditorAnchor

        public static java.lang.String getEditorAnchor​(java.lang.String property)
      • getEditorAnchor

        public static java.lang.String getEditorAnchor​(Editor editor)
      • setAfterSaveListener

        public static void setAfterSaveListener​(WidgetModel widgetModel,
                                                java.lang.String id,
                                                org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener,
                                                boolean notifyChange)
        Attaches a listener to the after-save listeners map in the widgetModel. This map is usually processed by the corresponding widget controller, e.g. by the editorArea save button event listener.
      • removeAfterSaveListener

        public static void removeAfterSaveListener​(WidgetModel widgetModel,
                                                   java.lang.String id)
        Removes the after-save listener with the given id from the model.
      • getAfterSaveListeners

        public static java.util.Map<java.lang.String,​org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>> getAfterSaveListeners​(WidgetModel widgetModel)
        Returns all after-save listeners stored at the model.
      • clearAfterSaveListeners

        public static void clearAfterSaveListeners​(WidgetModel widgetModel)
        Removes all after-save listeners stored at the model.
      • setAfterCancelListener

        public static void setAfterCancelListener​(WidgetModel widgetModel,
                                                  java.lang.String id,
                                                  org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener,
                                                  boolean notifyChange)
        Attaches a listener to the after-cancel listeners map in the widgetModel. This map is usually processed by the corresponding widget controller, e.g. by the editorArea cancel button event listener.
      • setBeforeCancelListener

        public static void setBeforeCancelListener​(WidgetModel widgetModel,
                                                   java.lang.String id,
                                                   org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener,
                                                   boolean notifyChange)
        Attaches a listener to the before-cancel listeners map in the widgetModel. This map is usually processed by the corresponding widget controller, e.g. by the editorArea cancel button event listener.
      • removeAfterCancelListener

        public static void removeAfterCancelListener​(WidgetModel widgetModel,
                                                     java.lang.String id)
        Removes the after-cancel listener with the given id from the model.
      • removeBeforeCancelListener

        public static void removeBeforeCancelListener​(WidgetModel widgetModel,
                                                      java.lang.String id)
        Removes the before-cancel listener with the given id from the model.
      • getAfterCancelListeners

        public static java.util.Map<java.lang.String,​org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>> getAfterCancelListeners​(WidgetModel widgetModel)
        Returns all after-cancel listeners stored at the model.
      • getBeforeCancelListeners

        public static java.util.Map<java.lang.String,​org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>> getBeforeCancelListeners​(WidgetModel widgetModel)
        Returns all before-cancel listeners stored at the model.
      • clearAfterCancelListeners

        public static void clearAfterCancelListeners​(WidgetModel widgetModel)
        Removes all after-cancel listeners stored at the model.
      • clearBeforeCancelListeners

        public static void clearBeforeCancelListeners​(WidgetModel widgetModel)
        Removes all before-cancel listeners stored at the model.
      • getAbsoluteAttributePath

        public static java.lang.String getAbsoluteAttributePath​(java.lang.String qualifier)
      • getRelativeAttributePath

        public static java.lang.String getRelativeAttributePath​(java.lang.String path)
      • getSections

        public static java.util.Collection<AbstractSection> getSections​(Tab tab)