Class GridViewCollectionBrowserMoldStrategy

    • Field Detail

      • DEFAULT_GRID_VIEW_CONFIG_CTX

        public static final java.lang.String DEFAULT_GRID_VIEW_CONFIG_CTX
        See Also:
        Constant Field Values
      • SETTING_GRID_VIEW_CONFIG_CTX

        public static final java.lang.String SETTING_GRID_VIEW_CONFIG_CTX
        See Also:
        Constant Field Values
      • YTEST_ID_GRID_VIEW

        public static final java.lang.String YTEST_ID_GRID_VIEW
        See Also:
        Constant Field Values
      • TOOLTIP_PROPERTY_KEY

        public static final java.lang.String TOOLTIP_PROPERTY_KEY
        See Also:
        Constant Field Values
      • SCLASS_GRID_VIEW_CONTAINER

        public static final java.lang.String SCLASS_GRID_VIEW_CONTAINER
        See Also:
        Constant Field Values
      • YW_DRAGGABLE_SCLASS

        public static final java.lang.String YW_DRAGGABLE_SCLASS
        See Also:
        Constant Field Values
    • Constructor Detail

      • GridViewCollectionBrowserMoldStrategy

        public GridViewCollectionBrowserMoldStrategy()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           SinglePage singlePage)
        Description copied from interface: CollectionBrowserMoldStrategy
        Render mold inside given parent component with single page.
      • addLink

        protected void addLink​(org.zkoss.zk.ui.HtmlBasedComponent component,
                               java.lang.Object entry)
      • onClickEvent

        @Deprecated(since="6.7",
                    forRemoval=true)
        protected void onClickEvent​(org.zkoss.zk.ui.event.Event event)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.7, use onSelectEvent(Event) instead
      • onSelectEvent

        protected void onSelectEvent​(org.zkoss.zk.ui.event.Event event)
      • onFocusEvent

        protected void onFocusEvent​(org.zkoss.zk.ui.event.Event event)
      • userSelectionStyle

        protected void userSelectionStyle​(boolean isShiftPressed)
      • getSelectedObjectsFromModel

        protected java.util.Set getSelectedObjectsFromModel()
      • loadConfiguration

        protected GridView loadConfiguration​(java.lang.String typeCode)
      • processViewWith

        protected void processViewWith​(java.util.List<?> list,
                                       SinglePage singlePage)
      • getDataType

        protected DataType getDataType()
      • getUiElementAt

        protected java.util.Optional<java.lang.Object> getUiElementAt​(int index)
        Overrides:
        getUiElementAt in class AbstractMoldStrategy<org.zkoss.zk.ui.Component,​GridView,​java.lang.Object>
      • handleObjectDeleteEvent

        public void handleObjectDeleteEvent​(CockpitEvent event)
        Description copied from interface: CollectionBrowserMoldStrategy
        Additional logic to perform on object deleted event.
      • updateModelData

        protected void updateModelData​(org.zkoss.zul.ListModelList<java.lang.Object> model,
                                       java.lang.Object data)
      • handleObjectCreateEvent

        public void handleObjectCreateEvent​(CockpitEvent event)
        Description copied from interface: CollectionBrowserMoldStrategy
        Additional logic to perform on object create event.
      • selectItems

        public void selectItems​(java.util.Set<?> items)
        Description copied from interface: CollectionBrowserMoldStrategy
        Select given items.

        No notifications should be sent.

        Parameters:
        items - items to be selected.
      • deselectItems

        public void deselectItems()
        Description copied from interface: CollectionBrowserMoldStrategy
        Deselects all items.

        No notifications should be sent.

      • focusItem

        public void focusItem​(java.lang.Object oldFocus,
                              java.lang.Object newFocus)
        Description copied from interface: CollectionBrowserMoldStrategy
        Mark provided item as focused. Only one item may be focused at the time.
        Parameters:
        oldFocus - item that was focused up until now
        newFocus - item to be marked as focused
      • setTileFocused

        protected void setTileFocused​(org.zkoss.zk.ui.HtmlBasedComponent tile,
                                      boolean focused)
      • release

        public void release()
        Description copied from interface: CollectionBrowserMoldStrategy
        Method called by the controller when mold is turned off. It should remove itself from its parent and free resources.
      • getName

        public java.lang.String getName()
        Returns:
        name of the mold for internal use (e.g. to determine CSS class of (in)active mold selection button).
      • getTooltipText

        public java.lang.String getTooltipText()
        Returns:
        tooltip text that should appear on a mold selection button.
      • reset

        public void reset()
        Description copied from interface: CollectionBrowserMoldStrategy
        Resets the mold to the initial state, displaying no data.
      • getGrid

        public GridBox getGrid()