java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
All Implemented Interfaces:
UIItemView, UIViewComponent, UIListView, EditableComponent, Serializable, Cloneable, org.zkoss.zk.ui.api.HtmlBasedComponent, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.sys.ComponentCtrl
Direct Known Subclasses:
TaskListView

public class ListView extends AbstractListView implements EditableComponent
The Class ListView.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.general.impl.AbstractItemView

    AbstractItemView.LoadImage

    Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent

    org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl

    Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent

    org.zkoss.zk.ui.AbstractComponent.Children
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    The Constant ACTIVATED_ROW_SCLASS.
    protected static final String
    The Constant ACTIVATED_ROW_SCLASS_COMP.
    protected String
     
    protected CellRenderer
    The cell renderer.
    protected static final String
    The Constant COL_DRAG_N_DROP.
    protected static final String
    The Constant COLUMN_CONTENT_FIXED_SCLASS.
    protected static final String
    The Constant COLUMN_CONTENT_SCLASS.
    protected static final String
    The Constant COLUMN_HEADER_ASC_SCLASS.
    protected static final String
    The Constant COLUMN_HEADER_DESC_SCLASS.
    protected static final String
    The Constant COLUMN_HEADER_SCLASS.
    protected static final String
    The Constant COLUMN_SCLASS.
    protected static final String
    The Constant DEFAULT_CELL_SCLASS.
    protected static final String
    The Constant DEFAULT_CELL_SCLASS_COMP.
    protected static final String
    The Constant DEFAULT_SCLASS.
    protected String
     
    protected static final String
    The Constant EDITABLE_CELL_SCLASS.
    protected static final String
    The Constant EDITABLE_CELL_SCLASS_COMP.
    protected String
    The Constant EDITABLE_CELL_SCLASS.
    protected boolean
    The editing.
    protected int
    The editing column.
    protected int
    The editing row.
    protected org.zkoss.zul.Checkbox
    The focus component.
    protected boolean
    The initialized.
    protected static final String
    The Constant MAIN_DIV_SCLASS.
    protected TableModel
    The model.
    protected static final String
    The Constant PADDING_SCLASS.
    protected static final String
    The Constant SELECTED_CELL_SCLASS.
    protected static final String
    The Constant SELECTED_CELL_SCLASS_COMP.
    protected static final String
    The Constant SELECTED_ROW_SCLASS.
    protected static final String
    The Constant SELECTED_ROW_SCLASS.
    protected String
     
    protected String
     
    protected boolean
    The show column headers.
    protected static final String
    The Constant SPLITTER_SCLASS.
    protected static final String
    The Constant VERTICAL_SCROLL_DIV_SCLASS.
    protected static final String
    The Constant VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS.
    protected static final String
    The Constant VERTICAL_SCROLL_DN_BTN_SCLASS.
    protected static final String
    The Constant VERTICAL_SCROLL_SCLASS.
    protected static final String
    The Constant VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS.
    protected static final String
    The Constant VERTICAL_SCROLL_UP_BTN_SCLASS.
    protected static final String
    The Constant WRAPPING_BOX.

    Fields inherited from class de.hybris.platform.cockpit.model.listview.impl.AbstractListView

    listeners

    Fields inherited from class de.hybris.platform.cockpit.model.general.impl.AbstractItemView

    loadingProgressContainer, ON_CONTINUE_LOADING

    Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent

    _zclass

    Fields inherited from interface org.zkoss.zk.ui.Component

    APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE

    Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl

    AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new list view.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addStopEditListener(org.zkoss.zul.impl.XulElement headerDiv)
     
    protected org.zkoss.zul.Menupopup
    adjustHeaderMenu(org.zkoss.zul.Menupopup popup)
     
    protected void
    appendScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)
    Append scroll into view component.
    protected boolean
    Assure model loaded.
    protected org.zkoss.zul.Menupopup
    createHeaderMenu(ColumnLayoutComponent columnLayoutComponent)
     
    protected org.zkoss.zul.Menupopup
    createHeaderMenu(ColumnDescriptor descriptor, int columnIndex)
     
    protected org.zkoss.zk.ui.Component
    Creates the list view background column.
    protected void
    Do user event.
    void
    editCellAt(int columnIndex, int rowIndex)
     
    void
    editCellAt(int columnIndex, int rowIndex, Object creationValue)
    Edits the cell at.
    void
    Focus focus component.
    protected Collection<Integer>
    Gets the activation indexes.
    protected CellRenderer
    Gets the cell renderer.
    Gets the menu popup builder.
     
    protected ModelService
     
     
    getValueAt(int columnIndex, int rowIndex)
     
    protected ValueService
     
    boolean
    Initializes this view component.
    boolean
     
    boolean
     
    boolean
     
    protected void
    removeScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)
    Removes the scroll into view component.
    void
     
    org.zkoss.zul.Div
    Render column content div.
    protected void
    rollback(List<Object> initialEditValueList, int columnIndex)
     
    void
    setDoubleClickDisabled(boolean value)
     
    void
    setEditing(boolean editing)
     
    void
    setEditMode(boolean editMode)
     
    void
     
    void
    setShowColumnHeaders(boolean showColumnHeaders)
     
    void
    setValueAt(int columnIndex, int rowIndex, Object data)
     
    void
     
    boolean
    Updates this view component completely.
    void
    Called whenever the activation needs to be updated i.e.
    void
    Called whenever the currently active items need to be re-rendered.
    void
    updateCell(int columnIndex, int rowIndex)
    Called whenever a cell's content needs to be re-rendered.
    protected void
    updateCellState(int columnIndex, int rowIndex)
    Update cell state.
    protected void
    updateCellState(int columnIndex, int rowIndex, org.zkoss.zk.ui.HtmlBasedComponent cell)
    Update cell state.
    void
    Called whenever a column's visibility has changed.
    void
    Called whenever a column's visibility has changed (and column is not shown as last column).
    int
    updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
    try to update rows containing the specified items
    void
    Called whenever the items have changed in some way e.g.
    void
    updateRow(int row)
    Called whenever a row needs to be re-rendered.
    protected void
    Update row state.
    void
    Called whenever the selection is changed in some way and the view needs to update itself accordingly.
    void
    Called whenever the visible columns have changed in some way i.e.
    void
    validate(Set<String> forceWritePks, PropertyDescriptor propertyDescriptor, UIEditor editor, int rowIndex, int columnIndex, List<Object> initialEditValueList, org.zkoss.zk.ui.HtmlBasedComponent parent)
     

    Methods inherited from class org.zkoss.zul.Div

    getAlign, renderProperties, setAlign

    Methods inherited from class org.zkoss.zul.impl.XulElement

    clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes

    Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent

    addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly

    Methods inherited from class org.zkoss.zk.ui.AbstractComponent

    addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.zkoss.zk.ui.Component

    addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride

    Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent

    focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex

    Methods inherited from interface org.zkoss.zk.ui.ext.Scope

    addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute

    Methods inherited from interface de.hybris.platform.cockpit.model.general.UIItemView

    setDDContext
  • Field Details

    • COLUMN_SCLASS

      protected static final String COLUMN_SCLASS
      The Constant COLUMN_SCLASS.
      See Also:
    • COLUMN_HEADER_SCLASS

      protected static final String COLUMN_HEADER_SCLASS
      The Constant COLUMN_HEADER_SCLASS.
      See Also:
    • COLUMN_HEADER_ASC_SCLASS

      protected static final String COLUMN_HEADER_ASC_SCLASS
      The Constant COLUMN_HEADER_ASC_SCLASS.
      See Also:
    • COLUMN_HEADER_DESC_SCLASS

      protected static final String COLUMN_HEADER_DESC_SCLASS
      The Constant COLUMN_HEADER_DESC_SCLASS.
      See Also:
    • DEFAULT_SCLASS

      protected static final String DEFAULT_SCLASS
      The Constant DEFAULT_SCLASS.
      See Also:
    • COLUMN_CONTENT_SCLASS

      protected static final String COLUMN_CONTENT_SCLASS
      The Constant COLUMN_CONTENT_SCLASS.
      See Also:
    • COLUMN_CONTENT_FIXED_SCLASS

      protected static final String COLUMN_CONTENT_FIXED_SCLASS
      The Constant COLUMN_CONTENT_FIXED_SCLASS.
      See Also:
    • SPLITTER_SCLASS

      protected static final String SPLITTER_SCLASS
      The Constant SPLITTER_SCLASS.
      See Also:
    • PADDING_SCLASS

      protected static final String PADDING_SCLASS
      The Constant PADDING_SCLASS.
      See Also:
    • MAIN_DIV_SCLASS

      protected static final String MAIN_DIV_SCLASS
      The Constant MAIN_DIV_SCLASS.
      See Also:
    • DEFAULT_CELL_SCLASS

      protected static final String DEFAULT_CELL_SCLASS
      The Constant DEFAULT_CELL_SCLASS.
      See Also:
    • DEFAULT_CELL_SCLASS_COMP

      protected static final String DEFAULT_CELL_SCLASS_COMP
      The Constant DEFAULT_CELL_SCLASS_COMP.
      See Also:
    • defaultCellSclass

      protected String defaultCellSclass
    • EDITABLE_CELL_SCLASS

      protected static final String EDITABLE_CELL_SCLASS
      The Constant EDITABLE_CELL_SCLASS.
      See Also:
    • EDITABLE_CELL_SCLASS_COMP

      protected static final String EDITABLE_CELL_SCLASS_COMP
      The Constant EDITABLE_CELL_SCLASS_COMP.
      See Also:
    • editableCellSclass

      protected String editableCellSclass
      The Constant EDITABLE_CELL_SCLASS.
    • SELECTED_CELL_SCLASS

      protected static final String SELECTED_CELL_SCLASS
      The Constant SELECTED_CELL_SCLASS.
      See Also:
    • SELECTED_CELL_SCLASS_COMP

      protected static final String SELECTED_CELL_SCLASS_COMP
      The Constant SELECTED_CELL_SCLASS_COMP.
      See Also:
    • selectedCellSclass

      protected String selectedCellSclass
    • SELECTED_ROW_SCLASS_COMP

      protected static final String SELECTED_ROW_SCLASS_COMP
      The Constant SELECTED_ROW_SCLASS.
      See Also:
    • SELECTED_ROW_SCLASS

      protected static final String SELECTED_ROW_SCLASS
      The Constant SELECTED_ROW_SCLASS.
      See Also:
    • selectedRowSclass

      protected String selectedRowSclass
    • ACTIVATED_ROW_SCLASS

      protected static final String ACTIVATED_ROW_SCLASS
      The Constant ACTIVATED_ROW_SCLASS.
      See Also:
    • ACTIVATED_ROW_SCLASS_COMP

      protected static final String ACTIVATED_ROW_SCLASS_COMP
      The Constant ACTIVATED_ROW_SCLASS_COMP.
      See Also:
    • activatedRowSclass

      protected String activatedRowSclass
    • VERTICAL_SCROLL_SCLASS

      protected static final String VERTICAL_SCROLL_SCLASS
      The Constant VERTICAL_SCROLL_SCLASS.
      See Also:
    • VERTICAL_SCROLL_DIV_SCLASS

      protected static final String VERTICAL_SCROLL_DIV_SCLASS
      The Constant VERTICAL_SCROLL_DIV_SCLASS.
      See Also:
    • COL_DRAG_N_DROP

      protected static final String COL_DRAG_N_DROP
      The Constant COL_DRAG_N_DROP.
      See Also:
    • WRAPPING_BOX

      protected static final String WRAPPING_BOX
      The Constant WRAPPING_BOX.
      See Also:
    • VERTICAL_SCROLL_UP_BTN_SCLASS

      protected static final String VERTICAL_SCROLL_UP_BTN_SCLASS
      The Constant VERTICAL_SCROLL_UP_BTN_SCLASS.
      See Also:
    • VERTICAL_SCROLL_DN_BTN_SCLASS

      protected static final String VERTICAL_SCROLL_DN_BTN_SCLASS
      The Constant VERTICAL_SCROLL_DN_BTN_SCLASS.
      See Also:
    • VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS

      protected static final String VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS
      The Constant VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS.
      See Also:
    • VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS

      protected static final String VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS
      The Constant VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS.
      See Also:
    • showColumnHeaders

      protected boolean showColumnHeaders
      The show column headers.
    • editing

      protected boolean editing
      The editing.
    • editingColumn

      protected int editingColumn
      The editing column.
    • editingRow

      protected int editingRow
      The editing row.
    • initialized

      protected boolean initialized
      The initialized.
    • model

      protected TableModel model
      The model.
    • cellRenderer

      protected CellRenderer cellRenderer
      The cell renderer.
    • focusComponent

      protected org.zkoss.zul.Checkbox focusComponent
      The focus component.
  • Constructor Details

    • ListView

      public ListView()
      Instantiates a new list view.
  • Method Details

    • editCellAt

      public void editCellAt(int columnIndex, int rowIndex)
      Specified by:
      editCellAt in interface UIListView
    • editCellAt

      public void editCellAt(int columnIndex, int rowIndex, Object creationValue)
      Edits the cell at.
      Parameters:
      columnIndex - the column index
      rowIndex - the row index
      creationValue - the creation value
    • rollback

      protected void rollback(List<Object> initialEditValueList, int columnIndex)
    • validate

      public void validate(Set<String> forceWritePks, PropertyDescriptor propertyDescriptor, UIEditor editor, int rowIndex, int columnIndex, List<Object> initialEditValueList, org.zkoss.zk.ui.HtmlBasedComponent parent)
    • focusFocusComponent

      public void focusFocusComponent()
      Focus focus component.
    • getMenuPopupBuilder

      public ListViewMenuPopupBuilder getMenuPopupBuilder()
      Gets the menu popup builder.
      Returns:
      the menuPopupBuilder
    • getModel

      public TableModel getModel()
      Specified by:
      getModel in interface UIListView
    • getValueAt

      public Object getValueAt(int columnIndex, int rowIndex)
      Specified by:
      getValueAt in interface UIListView
    • initialize

      public boolean initialize()
      Description copied from interface: UIViewComponent
      Initializes this view component.

      Note: Should not be called during object creation i.e. from constructor.

      Specified by:
      initialize in interface UIViewComponent
      Returns:
      true if initialize was successful, false otherwise
    • isEditing

      public boolean isEditing()
      Specified by:
      isEditing in interface EditableComponent
      Returns:
      the editing
    • renderColumnContentDiv

      public org.zkoss.zul.Div renderColumnContentDiv()
      Render column content div.
      Returns:
      the div
    • setEditing

      public void setEditing(boolean editing)
      Parameters:
      editing - the editing to set
    • setModel

      public void setModel(TableModel model)
      Specified by:
      setModel in interface UIListView
    • setShowColumnHeaders

      public void setShowColumnHeaders(boolean showColumnHeaders)
      Specified by:
      setShowColumnHeaders in interface UIListView
    • setValueAt

      public void setValueAt(int columnIndex, int rowIndex, Object data)
      Specified by:
      setValueAt in interface UIListView
    • stopEditing

      public void stopEditing()
      Specified by:
      stopEditing in interface EditableComponent
    • update

      public boolean update()
      Description copied from interface: UIViewComponent
      Updates this view component completely.
      Specified by:
      update in interface UIViewComponent
      Returns:
      true if update was successful, false otherwise
    • updateActivation

      public void updateActivation()
      Description copied from interface: UIItemView
      Called whenever the activation needs to be updated i.e. which items are currently rendered as "active".

      Note: Does not re-render the items themselves, only the activation state of them. In order to update the items use UIItemView.updateActiveItems().

      Specified by:
      updateActivation in interface UIItemView
    • updateActiveItems

      public void updateActiveItems()
      Description copied from interface: UIItemView
      Called whenever the currently active items need to be re-rendered.

      Note: Does not update the activation itself. For that purpose use UIItemView.updateActivation().

      Specified by:
      updateActiveItems in interface UIItemView
      See Also:
    • updateCell

      public void updateCell(int columnIndex, int rowIndex)
      Description copied from interface: UIListView
      Called whenever a cell's content needs to be re-rendered.
      Specified by:
      updateCell in interface UIListView
      Parameters:
      columnIndex - zero based column position index of the cell to re-render
      rowIndex - zero based row position index of the cell to re-render
    • updateColumns

      public void updateColumns()
      Description copied from interface: UIListView
      Called whenever a column's visibility has changed.
      Specified by:
      updateColumns in interface UIListView
    • updateColumns

      public void updateColumns(Integer colIndex)
      Description copied from interface: UIListView
      Called whenever a column's visibility has changed (and column is not shown as last column).
      Specified by:
      updateColumns in interface UIListView
    • updateItem

      public int updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
      Description copied from interface: UIItemView
      try to update rows containing the specified items
      Specified by:
      updateItem in interface UIItemView
      Parameters:
      item - the item
      modifiedProperties - modified properties
      Returns:
      the number of updated rows
    • updateItems

      public void updateItems()
      Description copied from interface: UIItemView
      Called whenever the items have changed in some way e.g. an item has been added or removed.
      Specified by:
      updateItems in interface UIItemView
    • updateRow

      public void updateRow(int row)
      Description copied from interface: UIListView
      Called whenever a row needs to be re-rendered.
      Specified by:
      updateRow in interface UIListView
      Parameters:
      row - zero based position index of the row to re-render
    • updateSelection

      public void updateSelection()
      Description copied from interface: UIItemView
      Called whenever the selection is changed in some way and the view needs to update itself accordingly.
      Specified by:
      updateSelection in interface UIItemView
    • updateVisibleColumns

      public void updateVisibleColumns()
      Description copied from interface: UIListView
      Called whenever the visible columns have changed in some way i.e. when a column has been moved.
      Specified by:
      updateVisibleColumns in interface UIListView
    • appendScrollIntoViewComponent

      protected void appendScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)
      Append scroll into view component.
      Parameters:
      cell - the cell
    • assureModelLoaded

      protected boolean assureModelLoaded()
      Assure model loaded.
      Returns:
      true, if successful
    • createHeaderMenu

      protected org.zkoss.zul.Menupopup createHeaderMenu(ColumnLayoutComponent columnLayoutComponent)
    • createHeaderMenu

      protected org.zkoss.zul.Menupopup createHeaderMenu(ColumnDescriptor descriptor, int columnIndex)
    • adjustHeaderMenu

      protected org.zkoss.zul.Menupopup adjustHeaderMenu(org.zkoss.zul.Menupopup popup)
    • createListViewBackgroundColumn

      protected org.zkoss.zk.ui.Component createListViewBackgroundColumn()
      Creates the list view background column.
      Returns:
      the component
    • doUserEvent

      protected void doUserEvent(Object[] data)
      Do user event.
      Parameters:
      data - the data
    • getActivationIndexes

      protected Collection<Integer> getActivationIndexes()
      Gets the activation indexes.
      Returns:
      the activation indexes
    • getCellRenderer

      protected CellRenderer getCellRenderer()
      Gets the cell renderer.
      Returns:
      the cell renderer
    • removeScrollIntoViewComponent

      protected void removeScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)
      Removes the scroll into view component.
      Parameters:
      cell - the cell
    • updateCellState

      protected void updateCellState(int columnIndex, int rowIndex)
      Update cell state.
      Parameters:
      columnIndex - the column index
      rowIndex - the row index
    • updateCellState

      protected void updateCellState(int columnIndex, int rowIndex, org.zkoss.zk.ui.HtmlBasedComponent cell)
      Update cell state.
      Parameters:
      columnIndex - the column index
      rowIndex - the row index
      cell - the cell
    • updateRowState

      protected void updateRowState(Integer rowIndex)
      Update row state.
      Parameters:
      rowIndex - the row index
    • setDoubleClickDisabled

      public void setDoubleClickDisabled(boolean value)
    • isDoubleClickDisabled

      public boolean isDoubleClickDisabled()
    • removeSelectedItems

      public void removeSelectedItems()
    • addStopEditListener

      protected void addStopEditListener(org.zkoss.zul.impl.XulElement headerDiv)
    • setEditMode

      public void setEditMode(boolean editMode)
    • isEditMode

      public boolean isEditMode()
    • getValidationService

      protected CockpitValidationService getValidationService()
    • getModelService

      protected ModelService getModelService()
    • getValueService

      protected ValueService getValueService()