Class DefaultAsMultiReferenceItemMasterRenderer<D extends AbstractEditorData,​V>

    • Field Detail

      • TOGGLE_DISABLED_SCLASS

        protected static final java.lang.String TOGGLE_DISABLED_SCLASS
        See Also:
        Constant Field Values
      • TOGGLE_ICON_SCLASS

        protected static final java.lang.String TOGGLE_ICON_SCLASS
        See Also:
        Constant Field Values
      • TOGGLE_ICON_OPEN_SCLASS

        protected static final java.lang.String TOGGLE_ICON_OPEN_SCLASS
        See Also:
        Constant Field Values
      • TOGGLE_ICON_CLOSED_SCLASS

        protected static final java.lang.String TOGGLE_ICON_CLOSED_SCLASS
        See Also:
        Constant Field Values
      • INFO_ICON_SCLASS

        protected static final java.lang.String INFO_ICON_SCLASS
        See Also:
        Constant Field Values
      • PROPERTY_SCLASS

        protected static final java.lang.String PROPERTY_SCLASS
        See Also:
        Constant Field Values
      • EDITABLE_SCLASS

        protected static final java.lang.String EDITABLE_SCLASS
        See Also:
        Constant Field Values
      • ACTIONS_CONTEXT_SUFFIX

        protected static final java.lang.String ACTIONS_CONTEXT_SUFFIX
        See Also:
        Constant Field Values
      • EDITOR_LOGIC_KEY

        protected static final java.lang.String EDITOR_LOGIC_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultAsMultiReferenceItemMasterRenderer

        public DefaultAsMultiReferenceItemMasterRenderer()
    • Method Detail

      • canRender

        public boolean canRender​(MultiReferenceEditorLogic<D,​V> logic,
                                 org.zkoss.zk.ui.Component parent,
                                 D data)
        Description copied from interface: EditorRenderer
        Checks if a specific item can be rendered.
        Specified by:
        canRender in interface EditorRenderer<D extends AbstractEditorData,​V>
        Parameters:
        logic - - the editor logic
        parent - - the parent component
        data - - the item data
        Returns:
        true if the item can be rendered, false otherwise
      • render

        public void render​(MultiReferenceEditorLogic<D,​V> logic,
                           org.zkoss.zk.ui.Component parent,
                           D data)
        Description copied from interface: EditorRenderer
        Creates a new editor item component and attaches it to the specified parent component.
        Specified by:
        render in interface EditorRenderer<D extends AbstractEditorData,​V>
        Parameters:
        logic - - the editor logic
        parent - - the parent component
        data - - the item data
      • buildToggleSclass

        protected java.lang.String buildToggleSclass​(boolean enabled)
      • buildToggleIconSclass

        protected java.lang.String buildToggleIconSclass​(boolean open)
      • renderProperties

        protected void renderProperties​(MultiReferenceEditorLogic<D,​V> logic,
                                        org.zkoss.zk.ui.Component parent,
                                        D data)
      • renderProperty

        protected void renderProperty​(MultiReferenceEditorLogic<D,​V> logic,
                                      org.zkoss.zk.ui.Component parent,
                                      D data,
                                      java.lang.String property)
      • buildPropertySclass

        protected java.lang.String buildPropertySclass​(java.lang.String property)