Class ListView
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Div
-
- de.hybris.platform.cockpit.model.general.impl.AbstractItemView
-
- de.hybris.platform.cockpit.model.listview.impl.AbstractListView
-
- de.hybris.platform.cockpit.model.listview.impl.ListView
-
- All Implemented Interfaces:
UIItemView
,UIViewComponent
,UIListView
,EditableComponent
,java.io.Serializable
,java.lang.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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.general.impl.AbstractItemView
AbstractItemView.LoadImage
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ACTIVATED_ROW_SCLASS
The Constant ACTIVATED_ROW_SCLASS.protected static java.lang.String
ACTIVATED_ROW_SCLASS_COMP
The Constant ACTIVATED_ROW_SCLASS_COMP.protected java.lang.String
activatedRowSclass
protected CellRenderer
cellRenderer
The cell renderer.protected static java.lang.String
COL_DRAG_N_DROP
The Constant COL_DRAG_N_DROP.protected static java.lang.String
COLUMN_CONTENT_FIXED_SCLASS
The Constant COLUMN_CONTENT_FIXED_SCLASS.protected static java.lang.String
COLUMN_CONTENT_SCLASS
The Constant COLUMN_CONTENT_SCLASS.protected static java.lang.String
COLUMN_HEADER_ASC_SCLASS
The Constant COLUMN_HEADER_ASC_SCLASS.protected static java.lang.String
COLUMN_HEADER_DESC_SCLASS
The Constant COLUMN_HEADER_DESC_SCLASS.protected static java.lang.String
COLUMN_HEADER_SCLASS
The Constant COLUMN_HEADER_SCLASS.protected static java.lang.String
COLUMN_SCLASS
The Constant COLUMN_SCLASS.protected static java.lang.String
DEFAULT_CELL_SCLASS
The Constant DEFAULT_CELL_SCLASS.protected static java.lang.String
DEFAULT_CELL_SCLASS_COMP
The Constant DEFAULT_CELL_SCLASS_COMP.protected static java.lang.String
DEFAULT_SCLASS
The Constant DEFAULT_SCLASS.protected java.lang.String
defaultCellSclass
protected static java.lang.String
EDITABLE_CELL_SCLASS
The Constant EDITABLE_CELL_SCLASS.protected static java.lang.String
EDITABLE_CELL_SCLASS_COMP
The Constant EDITABLE_CELL_SCLASS_COMP.protected java.lang.String
editableCellSclass
The Constant EDITABLE_CELL_SCLASS.protected boolean
editing
The editing.protected int
editingColumn
The editing column.protected int
editingRow
The editing row.protected org.zkoss.zul.Checkbox
focusComponent
The focus component.protected boolean
initialized
The initialized.protected static java.lang.String
MAIN_DIV_SCLASS
The Constant MAIN_DIV_SCLASS.protected TableModel
model
The model.protected static java.lang.String
PADDING_SCLASS
The Constant PADDING_SCLASS.protected static java.lang.String
SELECTED_CELL_SCLASS
The Constant SELECTED_CELL_SCLASS.protected static java.lang.String
SELECTED_CELL_SCLASS_COMP
The Constant SELECTED_CELL_SCLASS_COMP.protected static java.lang.String
SELECTED_ROW_SCLASS
The Constant SELECTED_ROW_SCLASS.protected static java.lang.String
SELECTED_ROW_SCLASS_COMP
The Constant SELECTED_ROW_SCLASS.protected java.lang.String
selectedCellSclass
protected java.lang.String
selectedRowSclass
protected boolean
showColumnHeaders
The show column headers.protected static java.lang.String
SPLITTER_SCLASS
The Constant SPLITTER_SCLASS.protected static java.lang.String
VERTICAL_SCROLL_DIV_SCLASS
The Constant VERTICAL_SCROLL_DIV_SCLASS.protected static java.lang.String
VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS
The Constant VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS.protected static java.lang.String
VERTICAL_SCROLL_DN_BTN_SCLASS
The Constant VERTICAL_SCROLL_DN_BTN_SCLASS.protected static java.lang.String
VERTICAL_SCROLL_SCLASS
The Constant VERTICAL_SCROLL_SCLASS.protected static java.lang.String
VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS
The Constant VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS.protected static java.lang.String
VERTICAL_SCROLL_UP_BTN_SCLASS
The Constant VERTICAL_SCROLL_UP_BTN_SCLASS.protected static java.lang.String
WRAPPING_BOX
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
-
-
Constructor Summary
Constructors Constructor Description ListView()
Instantiates a new list view.
-
Method Summary
All Methods Instance Methods Concrete Methods 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
assureModelLoaded()
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
createListViewBackgroundColumn()
Creates the list view background column.protected void
doUserEvent(java.lang.Object[] data)
Do user event.void
editCellAt(int columnIndex, int rowIndex)
void
editCellAt(int columnIndex, int rowIndex, java.lang.Object creationValue)
Edits the cell at.void
focusFocusComponent()
Focus focus component.protected java.util.Collection<java.lang.Integer>
getActivationIndexes()
Gets the activation indexes.protected CellRenderer
getCellRenderer()
Gets the cell renderer.ListViewMenuPopupBuilder
getMenuPopupBuilder()
Gets the menu popup builder.TableModel
getModel()
protected ModelService
getModelService()
protected CockpitValidationService
getValidationService()
java.lang.Object
getValueAt(int columnIndex, int rowIndex)
protected ValueService
getValueService()
boolean
initialize()
Initializes this view component.boolean
isDoubleClickDisabled()
boolean
isEditing()
boolean
isEditMode()
protected void
removeScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)
Removes the scroll into view component.void
removeSelectedItems()
org.zkoss.zul.Div
renderColumnContentDiv()
Render column content div.protected void
rollback(java.util.List<java.lang.Object> initialEditValueList, int columnIndex)
void
setDoubleClickDisabled(boolean value)
void
setEditing(boolean editing)
void
setEditMode(boolean editMode)
void
setModel(TableModel model)
void
setShowColumnHeaders(boolean showColumnHeaders)
void
setValueAt(int columnIndex, int rowIndex, java.lang.Object data)
void
stopEditing()
boolean
update()
Updates this view component completely.void
updateActivation()
Called whenever the activation needs to be updated i.e.void
updateActiveItems()
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
updateColumns()
Called whenever a column's visibility has changed.void
updateColumns(java.lang.Integer colIndex)
Called whenever a column's visibility has changed (and column is not shown as last column).int
updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
try to update rows containing the specified itemsvoid
updateItems()
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
updateRowState(java.lang.Integer rowIndex)
Update row state.void
updateSelection()
Called whenever the selection is changed in some way and the view needs to update itself accordingly.void
updateVisibleColumns()
Called whenever the visible columns have changed in some way i.e.void
validate(java.util.Set<java.lang.String> forceWritePks, PropertyDescriptor propertyDescriptor, UIEditor editor, int rowIndex, int columnIndex, java.util.List<java.lang.Object> initialEditValueList, org.zkoss.zk.ui.HtmlBasedComponent parent)
-
Methods inherited from class de.hybris.platform.cockpit.model.listview.impl.AbstractListView
addListViewListener, fireActivate, fireBlacklist, fireChangeCellValue, fireChangeSelection, fireChangeSelection, fireDroped, fireHideColumn, fireMarkAllAsSelected, fireMove, fireMoveColumn, fireMultiEdit, fireOpenExternal, firePageRequest, fireRemove, fireShowColumn, fireSortColumn, removeListViewListener
-
Methods inherited from class de.hybris.platform.cockpit.model.general.impl.AbstractItemView
delayLazyload, getDDContext, getInitialPackageSize, getLazyloadPackageSize, isSimpleSelectionMode, setDDContext, setSimpleSelectionMode, setupLazyLoading
-
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
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, 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, equals, 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
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 Detail
-
COLUMN_SCLASS
protected static final java.lang.String COLUMN_SCLASS
The Constant COLUMN_SCLASS.- See Also:
- Constant Field Values
-
COLUMN_HEADER_SCLASS
protected static final java.lang.String COLUMN_HEADER_SCLASS
The Constant COLUMN_HEADER_SCLASS.- See Also:
- Constant Field Values
-
COLUMN_HEADER_ASC_SCLASS
protected static final java.lang.String COLUMN_HEADER_ASC_SCLASS
The Constant COLUMN_HEADER_ASC_SCLASS.- See Also:
- Constant Field Values
-
COLUMN_HEADER_DESC_SCLASS
protected static final java.lang.String COLUMN_HEADER_DESC_SCLASS
The Constant COLUMN_HEADER_DESC_SCLASS.- See Also:
- Constant Field Values
-
DEFAULT_SCLASS
protected static final java.lang.String DEFAULT_SCLASS
The Constant DEFAULT_SCLASS.- See Also:
- Constant Field Values
-
COLUMN_CONTENT_SCLASS
protected static final java.lang.String COLUMN_CONTENT_SCLASS
The Constant COLUMN_CONTENT_SCLASS.- See Also:
- Constant Field Values
-
COLUMN_CONTENT_FIXED_SCLASS
protected static final java.lang.String COLUMN_CONTENT_FIXED_SCLASS
The Constant COLUMN_CONTENT_FIXED_SCLASS.- See Also:
- Constant Field Values
-
SPLITTER_SCLASS
protected static final java.lang.String SPLITTER_SCLASS
The Constant SPLITTER_SCLASS.- See Also:
- Constant Field Values
-
PADDING_SCLASS
protected static final java.lang.String PADDING_SCLASS
The Constant PADDING_SCLASS.- See Also:
- Constant Field Values
-
MAIN_DIV_SCLASS
protected static final java.lang.String MAIN_DIV_SCLASS
The Constant MAIN_DIV_SCLASS.- See Also:
- Constant Field Values
-
DEFAULT_CELL_SCLASS
protected static final java.lang.String DEFAULT_CELL_SCLASS
The Constant DEFAULT_CELL_SCLASS.- See Also:
- Constant Field Values
-
DEFAULT_CELL_SCLASS_COMP
protected static final java.lang.String DEFAULT_CELL_SCLASS_COMP
The Constant DEFAULT_CELL_SCLASS_COMP.- See Also:
- Constant Field Values
-
defaultCellSclass
protected java.lang.String defaultCellSclass
-
EDITABLE_CELL_SCLASS
protected static final java.lang.String EDITABLE_CELL_SCLASS
The Constant EDITABLE_CELL_SCLASS.- See Also:
- Constant Field Values
-
EDITABLE_CELL_SCLASS_COMP
protected static final java.lang.String EDITABLE_CELL_SCLASS_COMP
The Constant EDITABLE_CELL_SCLASS_COMP.- See Also:
- Constant Field Values
-
editableCellSclass
protected java.lang.String editableCellSclass
The Constant EDITABLE_CELL_SCLASS.
-
SELECTED_CELL_SCLASS
protected static final java.lang.String SELECTED_CELL_SCLASS
The Constant SELECTED_CELL_SCLASS.- See Also:
- Constant Field Values
-
SELECTED_CELL_SCLASS_COMP
protected static final java.lang.String SELECTED_CELL_SCLASS_COMP
The Constant SELECTED_CELL_SCLASS_COMP.- See Also:
- Constant Field Values
-
selectedCellSclass
protected java.lang.String selectedCellSclass
-
SELECTED_ROW_SCLASS_COMP
protected static final java.lang.String SELECTED_ROW_SCLASS_COMP
The Constant SELECTED_ROW_SCLASS.- See Also:
- Constant Field Values
-
SELECTED_ROW_SCLASS
protected static final java.lang.String SELECTED_ROW_SCLASS
The Constant SELECTED_ROW_SCLASS.- See Also:
- Constant Field Values
-
selectedRowSclass
protected java.lang.String selectedRowSclass
-
ACTIVATED_ROW_SCLASS
protected static final java.lang.String ACTIVATED_ROW_SCLASS
The Constant ACTIVATED_ROW_SCLASS.- See Also:
- Constant Field Values
-
ACTIVATED_ROW_SCLASS_COMP
protected static final java.lang.String ACTIVATED_ROW_SCLASS_COMP
The Constant ACTIVATED_ROW_SCLASS_COMP.- See Also:
- Constant Field Values
-
activatedRowSclass
protected java.lang.String activatedRowSclass
-
VERTICAL_SCROLL_SCLASS
protected static final java.lang.String VERTICAL_SCROLL_SCLASS
The Constant VERTICAL_SCROLL_SCLASS.- See Also:
- Constant Field Values
-
VERTICAL_SCROLL_DIV_SCLASS
protected static final java.lang.String VERTICAL_SCROLL_DIV_SCLASS
The Constant VERTICAL_SCROLL_DIV_SCLASS.- See Also:
- Constant Field Values
-
COL_DRAG_N_DROP
protected static final java.lang.String COL_DRAG_N_DROP
The Constant COL_DRAG_N_DROP.- See Also:
- Constant Field Values
-
WRAPPING_BOX
protected static final java.lang.String WRAPPING_BOX
The Constant WRAPPING_BOX.- See Also:
- Constant Field Values
-
VERTICAL_SCROLL_UP_BTN_SCLASS
protected static final java.lang.String VERTICAL_SCROLL_UP_BTN_SCLASS
The Constant VERTICAL_SCROLL_UP_BTN_SCLASS.- See Also:
- Constant Field Values
-
VERTICAL_SCROLL_DN_BTN_SCLASS
protected static final java.lang.String VERTICAL_SCROLL_DN_BTN_SCLASS
The Constant VERTICAL_SCROLL_DN_BTN_SCLASS.- See Also:
- Constant Field Values
-
VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS
protected static final java.lang.String VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS
The Constant VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS.- See Also:
- Constant Field Values
-
VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS
protected static final java.lang.String VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS
The Constant VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS.- See Also:
- Constant Field Values
-
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.
-
-
Method Detail
-
editCellAt
public void editCellAt(int columnIndex, int rowIndex)
- Specified by:
editCellAt
in interfaceUIListView
-
editCellAt
public void editCellAt(int columnIndex, int rowIndex, java.lang.Object creationValue)
Edits the cell at.- Parameters:
columnIndex
- the column indexrowIndex
- the row indexcreationValue
- the creation value
-
rollback
protected void rollback(java.util.List<java.lang.Object> initialEditValueList, int columnIndex)
-
validate
public void validate(java.util.Set<java.lang.String> forceWritePks, PropertyDescriptor propertyDescriptor, UIEditor editor, int rowIndex, int columnIndex, java.util.List<java.lang.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 interfaceUIListView
-
getValueAt
public java.lang.Object getValueAt(int columnIndex, int rowIndex)
- Specified by:
getValueAt
in interfaceUIListView
-
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 interfaceUIViewComponent
- Returns:
true
if initialize was successful,false
otherwise
-
isEditing
public boolean isEditing()
- Specified by:
isEditing
in interfaceEditableComponent
- 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 interfaceUIListView
-
setShowColumnHeaders
public void setShowColumnHeaders(boolean showColumnHeaders)
- Specified by:
setShowColumnHeaders
in interfaceUIListView
-
setValueAt
public void setValueAt(int columnIndex, int rowIndex, java.lang.Object data)
- Specified by:
setValueAt
in interfaceUIListView
-
stopEditing
public void stopEditing()
- Specified by:
stopEditing
in interfaceEditableComponent
-
update
public boolean update()
Description copied from interface:UIViewComponent
Updates this view component completely.- Specified by:
update
in interfaceUIViewComponent
- 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 useUIItemView.updateActiveItems()
.- Specified by:
updateActivation
in interfaceUIItemView
-
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 useUIItemView.updateActivation()
.- Specified by:
updateActiveItems
in interfaceUIItemView
- See Also:
UIItemView.updateActivation()
-
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 interfaceUIListView
- Parameters:
columnIndex
- zero based column position index of the cell to re-renderrowIndex
- 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 interfaceUIListView
-
updateColumns
public void updateColumns(java.lang.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 interfaceUIListView
-
updateItem
public int updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
Description copied from interface:UIItemView
try to update rows containing the specified items- Specified by:
updateItem
in interfaceUIItemView
- Parameters:
item
- the itemmodifiedProperties
- 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 interfaceUIItemView
-
updateRow
public void updateRow(int row)
Description copied from interface:UIListView
Called whenever a row needs to be re-rendered.- Specified by:
updateRow
in interfaceUIListView
- 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 interfaceUIItemView
-
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 interfaceUIListView
-
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(java.lang.Object[] data)
Do user event.- Parameters:
data
- the data
-
getActivationIndexes
protected java.util.Collection<java.lang.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 indexrowIndex
- the row index
-
updateCellState
protected void updateCellState(int columnIndex, int rowIndex, org.zkoss.zk.ui.HtmlBasedComponent cell)
Update cell state.- Parameters:
columnIndex
- the column indexrowIndex
- the row indexcell
- the cell
-
updateRowState
protected void updateRowState(java.lang.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()
-
-