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.StringACTIVATED_ROW_SCLASSThe Constant ACTIVATED_ROW_SCLASS.protected static java.lang.StringACTIVATED_ROW_SCLASS_COMPThe Constant ACTIVATED_ROW_SCLASS_COMP.protected java.lang.StringactivatedRowSclassprotected CellRenderercellRendererThe cell renderer.protected static java.lang.StringCOL_DRAG_N_DROPThe Constant COL_DRAG_N_DROP.protected static java.lang.StringCOLUMN_CONTENT_FIXED_SCLASSThe Constant COLUMN_CONTENT_FIXED_SCLASS.protected static java.lang.StringCOLUMN_CONTENT_SCLASSThe Constant COLUMN_CONTENT_SCLASS.protected static java.lang.StringCOLUMN_HEADER_ASC_SCLASSThe Constant COLUMN_HEADER_ASC_SCLASS.protected static java.lang.StringCOLUMN_HEADER_DESC_SCLASSThe Constant COLUMN_HEADER_DESC_SCLASS.protected static java.lang.StringCOLUMN_HEADER_SCLASSThe Constant COLUMN_HEADER_SCLASS.protected static java.lang.StringCOLUMN_SCLASSThe Constant COLUMN_SCLASS.protected static java.lang.StringDEFAULT_CELL_SCLASSThe Constant DEFAULT_CELL_SCLASS.protected static java.lang.StringDEFAULT_CELL_SCLASS_COMPThe Constant DEFAULT_CELL_SCLASS_COMP.protected static java.lang.StringDEFAULT_SCLASSThe Constant DEFAULT_SCLASS.protected java.lang.StringdefaultCellSclassprotected static java.lang.StringEDITABLE_CELL_SCLASSThe Constant EDITABLE_CELL_SCLASS.protected static java.lang.StringEDITABLE_CELL_SCLASS_COMPThe Constant EDITABLE_CELL_SCLASS_COMP.protected java.lang.StringeditableCellSclassThe Constant EDITABLE_CELL_SCLASS.protected booleaneditingThe editing.protected inteditingColumnThe editing column.protected inteditingRowThe editing row.protected org.zkoss.zul.CheckboxfocusComponentThe focus component.protected booleaninitializedThe initialized.protected static java.lang.StringMAIN_DIV_SCLASSThe Constant MAIN_DIV_SCLASS.protected TableModelmodelThe model.protected static java.lang.StringPADDING_SCLASSThe Constant PADDING_SCLASS.protected static java.lang.StringSELECTED_CELL_SCLASSThe Constant SELECTED_CELL_SCLASS.protected static java.lang.StringSELECTED_CELL_SCLASS_COMPThe Constant SELECTED_CELL_SCLASS_COMP.protected static java.lang.StringSELECTED_ROW_SCLASSThe Constant SELECTED_ROW_SCLASS.protected static java.lang.StringSELECTED_ROW_SCLASS_COMPThe Constant SELECTED_ROW_SCLASS.protected java.lang.StringselectedCellSclassprotected java.lang.StringselectedRowSclassprotected booleanshowColumnHeadersThe show column headers.protected static java.lang.StringSPLITTER_SCLASSThe Constant SPLITTER_SCLASS.protected static java.lang.StringVERTICAL_SCROLL_DIV_SCLASSThe Constant VERTICAL_SCROLL_DIV_SCLASS.protected static java.lang.StringVERTICAL_SCROLL_DN_BTN_DISABLED_SCLASSThe Constant VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS.protected static java.lang.StringVERTICAL_SCROLL_DN_BTN_SCLASSThe Constant VERTICAL_SCROLL_DN_BTN_SCLASS.protected static java.lang.StringVERTICAL_SCROLL_SCLASSThe Constant VERTICAL_SCROLL_SCLASS.protected static java.lang.StringVERTICAL_SCROLL_UP_BTN_DISABLED_SCLASSThe Constant VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS.protected static java.lang.StringVERTICAL_SCROLL_UP_BTN_SCLASSThe Constant VERTICAL_SCROLL_UP_BTN_SCLASS.protected static java.lang.StringWRAPPING_BOXThe 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 voidaddStopEditListener(org.zkoss.zul.impl.XulElement headerDiv)protected org.zkoss.zul.MenupopupadjustHeaderMenu(org.zkoss.zul.Menupopup popup)protected voidappendScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)Append scroll into view component.protected booleanassureModelLoaded()Assure model loaded.protected org.zkoss.zul.MenupopupcreateHeaderMenu(ColumnLayoutComponent columnLayoutComponent)protected org.zkoss.zul.MenupopupcreateHeaderMenu(ColumnDescriptor descriptor, int columnIndex)protected org.zkoss.zk.ui.ComponentcreateListViewBackgroundColumn()Creates the list view background column.protected voiddoUserEvent(java.lang.Object[] data)Do user event.voideditCellAt(int columnIndex, int rowIndex)voideditCellAt(int columnIndex, int rowIndex, java.lang.Object creationValue)Edits the cell at.voidfocusFocusComponent()Focus focus component.protected java.util.Collection<java.lang.Integer>getActivationIndexes()Gets the activation indexes.protected CellRenderergetCellRenderer()Gets the cell renderer.ListViewMenuPopupBuildergetMenuPopupBuilder()Gets the menu popup builder.TableModelgetModel()protected ModelServicegetModelService()protected CockpitValidationServicegetValidationService()java.lang.ObjectgetValueAt(int columnIndex, int rowIndex)protected ValueServicegetValueService()booleaninitialize()Initializes this view component.booleanisDoubleClickDisabled()booleanisEditing()booleanisEditMode()protected voidremoveScrollIntoViewComponent(org.zkoss.zk.ui.HtmlBasedComponent cell)Removes the scroll into view component.voidremoveSelectedItems()org.zkoss.zul.DivrenderColumnContentDiv()Render column content div.protected voidrollback(java.util.List<java.lang.Object> initialEditValueList, int columnIndex)voidsetDoubleClickDisabled(boolean value)voidsetEditing(boolean editing)voidsetEditMode(boolean editMode)voidsetModel(TableModel model)voidsetShowColumnHeaders(boolean showColumnHeaders)voidsetValueAt(int columnIndex, int rowIndex, java.lang.Object data)voidstopEditing()booleanupdate()Updates this view component completely.voidupdateActivation()Called whenever the activation needs to be updated i.e.voidupdateActiveItems()Called whenever the currently active items need to be re-rendered.voidupdateCell(int columnIndex, int rowIndex)Called whenever a cell's content needs to be re-rendered.protected voidupdateCellState(int columnIndex, int rowIndex)Update cell state.protected voidupdateCellState(int columnIndex, int rowIndex, org.zkoss.zk.ui.HtmlBasedComponent cell)Update cell state.voidupdateColumns()Called whenever a column's visibility has changed.voidupdateColumns(java.lang.Integer colIndex)Called whenever a column's visibility has changed (and column is not shown as last column).intupdateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)try to update rows containing the specified itemsvoidupdateItems()Called whenever the items have changed in some way e.g.voidupdateRow(int row)Called whenever a row needs to be re-rendered.protected voidupdateRowState(java.lang.Integer rowIndex)Update row state.voidupdateSelection()Called whenever the selection is changed in some way and the view needs to update itself accordingly.voidupdateVisibleColumns()Called whenever the visible columns have changed in some way i.e.voidvalidate(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:
editCellAtin 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:
getModelin interfaceUIListView
-
getValueAt
public java.lang.Object getValueAt(int columnIndex, int rowIndex)- Specified by:
getValueAtin interfaceUIListView
-
initialize
public boolean initialize()
Description copied from interface:UIViewComponentInitializes this view component. Note: Should not be called during object creation i.e. from constructor.- Specified by:
initializein interfaceUIViewComponent- Returns:
trueif initialize was successful,falseotherwise
-
isEditing
public boolean isEditing()
- Specified by:
isEditingin 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:
setModelin interfaceUIListView
-
setShowColumnHeaders
public void setShowColumnHeaders(boolean showColumnHeaders)
- Specified by:
setShowColumnHeadersin interfaceUIListView
-
setValueAt
public void setValueAt(int columnIndex, int rowIndex, java.lang.Object data)- Specified by:
setValueAtin interfaceUIListView
-
stopEditing
public void stopEditing()
- Specified by:
stopEditingin interfaceEditableComponent
-
update
public boolean update()
Description copied from interface:UIViewComponentUpdates this view component completely.- Specified by:
updatein interfaceUIViewComponent- Returns:
trueif update was successful,falseotherwise
-
updateActivation
public void updateActivation()
Description copied from interface:UIItemViewCalled 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:
updateActivationin interfaceUIItemView
-
updateActiveItems
public void updateActiveItems()
Description copied from interface:UIItemViewCalled whenever the currently active items need to be re-rendered. Note: Does not update the activation itself. For that purpose useUIItemView.updateActivation().- Specified by:
updateActiveItemsin interfaceUIItemView- See Also:
UIItemView.updateActivation()
-
updateCell
public void updateCell(int columnIndex, int rowIndex)Description copied from interface:UIListViewCalled whenever a cell's content needs to be re-rendered.- Specified by:
updateCellin 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:UIListViewCalled whenever a column's visibility has changed.- Specified by:
updateColumnsin interfaceUIListView
-
updateColumns
public void updateColumns(java.lang.Integer colIndex)
Description copied from interface:UIListViewCalled whenever a column's visibility has changed (and column is not shown as last column).- Specified by:
updateColumnsin interfaceUIListView
-
updateItem
public int updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
Description copied from interface:UIItemViewtry to update rows containing the specified items- Specified by:
updateItemin interfaceUIItemView- Parameters:
item- the itemmodifiedProperties- modified properties- Returns:
- the number of updated rows
-
updateItems
public void updateItems()
Description copied from interface:UIItemViewCalled whenever the items have changed in some way e.g. an item has been added or removed.- Specified by:
updateItemsin interfaceUIItemView
-
updateRow
public void updateRow(int row)
Description copied from interface:UIListViewCalled whenever a row needs to be re-rendered.- Specified by:
updateRowin interfaceUIListView- Parameters:
row- zero based position index of the row to re-render
-
updateSelection
public void updateSelection()
Description copied from interface:UIItemViewCalled whenever the selection is changed in some way and the view needs to update itself accordingly.- Specified by:
updateSelectionin interfaceUIItemView
-
updateVisibleColumns
public void updateVisibleColumns()
Description copied from interface:UIListViewCalled whenever the visible columns have changed in some way i.e. when a column has been moved.- Specified by:
updateVisibleColumnsin 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()
-
-