Interface MultiReferenceEditorLogic<D extends AbstractEditorData,​V>

    • Method Detail

      • getContext

        java.lang.String getContext()
        Returns the editor context.
        Returns:
        the editor context
      • isSortable

        boolean isSortable()
        Returns whether the editor items can be sorted.
        Returns:
        true if the editor items can be sorted, false otherwise
      • getColumns

        java.util.Collection<java.lang.String> getColumns()
        Returns the columns.
        Returns:
        the columns
      • getEditableColumns

        java.util.Collection<java.lang.String> getEditableColumns()
        Returns the editable columns.
        Returns:
        the editable columns
      • getDataHandler

        DataHandler<D,​V> getDataHandler()
        Returns the data handler.
        Returns:
        the data handler
      • getListModel

        org.zkoss.zul.ListModel<D> getListModel()
        Returns the list model.
        Returns:
        the list model
      • getItemMasterRenderer

        EditorRenderer getItemMasterRenderer()
        Returns the renderer for the item master section.
        Returns:
        the renderer for the item master section
      • getItemDetailRenderer

        EditorRenderer getItemDetailRenderer()
        Returns the renderer for the item detail section.
        Returns:
        the renderer for the item detail section
      • isOpen

        boolean isOpen​(org.zkoss.zk.ui.Component component)
        Returns whether the given component is open. This can be used, for example, to check if an editor item is open.
        Parameters:
        component - - the component
        Returns:
        true if the component is open, false otherwise
      • setOpen

        void setOpen​(org.zkoss.zk.ui.Component component,
                     boolean open)
        Changes the open status of a component.
        Parameters:
        component - - the component
        open - - the new open status
      • findEditor

        com.hybris.cockpitng.components.Editor findEditor​(org.zkoss.zk.ui.Component component)
        Finds the nearest editor component.
        Returns:
        the nearest editor component or null if it could not be found
      • findEditorItem

        org.zkoss.zk.ui.Component findEditorItem​(org.zkoss.zk.ui.Component component)
        Finds the nearest editor item component.
        Returns:
        the nearest editor item component or null if it could not be found
      • updateValue

        void updateValue​(java.util.Collection<V> value)
        Updates the value of the editor.
        Parameters:
        value - - the value
      • updateAttributeValue

        void updateAttributeValue​(D data,
                                  java.lang.String attributeName,
                                  java.lang.Object attributeValue)
        Updates the value of an item attribute.
        Parameters:
        data - - the item data
        attributeName - - the attribute name
        attributeValue - - the attribute value
      • triggerCreateReference

        void triggerCreateReference()
        Triggers the creation of a new item.
      • triggerUpdateReference

        void triggerUpdateReference​(D data)
        Triggers the update of an existing item.
        Parameters:
        data - - the item data