Class ListSectionComponent
- 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.components.contentbrowser.AbstractSectionComponent
-
- de.hybris.platform.cockpit.components.contentbrowser.ListSectionComponent
-
- All Implemented Interfaces:
CockpitComponent
,SectionComponent
,DesktopRemovalAwareComponent
,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
,org.zkoss.zul.api.Div
,org.zkoss.zul.impl.api.XulElement
- Direct Known Subclasses:
EditorListSectionComponent
,ListBrowserSectionComponent
public class ListSectionComponent extends AbstractSectionComponent implements DesktopRemovalAwareComponent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zul.Div
captionContainer
protected ColumnModelListener
columnModelListener
protected org.zkoss.zul.Div
groupBoxContent
protected ObjectTemplate
lastResultType
protected static java.lang.String
LIST_VIEW_CONFIG_CODE
protected UIListView
listView
protected DefaultListModel<TypedObject>
resultModel
protected ComponentController
tableController
-
Fields inherited from class de.hybris.platform.cockpit.components.contentbrowser.AbstractSectionComponent
EMPTY_TEXT
-
-
Constructor Summary
Constructors Constructor Description ListSectionComponent(ListSectionModel sectionModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdvancedGroupbox
createSectionView()
protected AbstractTableController
createTableController(ListSectionModel listSectionModel, MutableTableModel mutableTableModel, UIListView listView)
void
desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
void
detach()
protected ColumnModelListener
getColumnModelListener()
protected ListViewConfiguration
getListViewConfiguration(ObjectTemplate objectTemplate, java.lang.String code)
protected java.lang.String
getListViewConfigurationCode()
protected DefaultListModel<TypedObject>
getResultModel()
protected ObjectTemplate
getRootType()
protected AdvancedGroupbox
getSectionGroupbox()
ListSectionModel
getSectionModel()
protected MutableTableModel
getTableModel()
protected UIConfigurationService
getUIConfigurationService()
boolean
initialize()
Initializes this browser component i.e.protected UIListView
loadListView()
void
setActiveItem(TypedObject activeItem)
Sets the active item of this browser component toactiveItem
.void
setParent(org.zkoss.zk.ui.Component parent)
protected void
setTableModel(MutableTableModel tableModel)
protected void
storeListViewConfiguration()
boolean
update()
Updates this browser component i.e.void
updateActiveItems()
Re-renders the currently active item(s).void
updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
Re-renders the items specified.protected void
updateResult()
void
updateSelectedItems()
Re-renders the currently selected item(s).-
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, 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, 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, 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, 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
-
-
-
-
Field Detail
-
LIST_VIEW_CONFIG_CODE
protected static final java.lang.String LIST_VIEW_CONFIG_CODE
- See Also:
- Constant Field Values
-
lastResultType
protected ObjectTemplate lastResultType
-
resultModel
protected final DefaultListModel<TypedObject> resultModel
-
listView
protected transient UIListView listView
-
groupBoxContent
protected transient org.zkoss.zul.Div groupBoxContent
-
tableController
protected ComponentController tableController
-
columnModelListener
protected ColumnModelListener columnModelListener
-
captionContainer
protected org.zkoss.zul.Div captionContainer
-
-
Constructor Detail
-
ListSectionComponent
public ListSectionComponent(ListSectionModel sectionModel)
-
-
Method Detail
-
loadListView
protected UIListView loadListView()
-
update
public boolean update()
Description copied from interface:CockpitComponent
Updates this browser component i.e. synchronizes its view width the underlying model.- Specified by:
update
in interfaceCockpitComponent
- Returns:
true
if this browser was successfully updated,false
otherwise
-
getSectionModel
public ListSectionModel getSectionModel()
- Specified by:
getSectionModel
in interfaceSectionComponent
- Overrides:
getSectionModel
in classAbstractSectionComponent
-
initialize
public boolean initialize()
Description copied from interface:CockpitComponent
Initializes this browser component i.e. creates all required components, adds event listeners etc.- Specified by:
initialize
in interfaceCockpitComponent
- Returns:
true
if initialization was successful,false
otherwise
-
createSectionView
protected AdvancedGroupbox createSectionView()
-
setActiveItem
public void setActiveItem(TypedObject activeItem)
Description copied from interface:CockpitComponent
Sets the active item of this browser component toactiveItem
.- Specified by:
setActiveItem
in interfaceCockpitComponent
- Parameters:
activeItem
- the new active item
-
updateActiveItems
public void updateActiveItems()
Description copied from interface:CockpitComponent
Re-renders the currently active item(s).- Specified by:
updateActiveItems
in interfaceCockpitComponent
-
updateItem
public void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
Description copied from interface:CockpitComponent
Re-renders the items specified.- Specified by:
updateItem
in interfaceCockpitComponent
- Parameters:
item
- the item to be re-renderedmodifiedProperties
- modified properties
-
updateSelectedItems
public void updateSelectedItems()
Description copied from interface:CockpitComponent
Re-renders the currently selected item(s).- Specified by:
updateSelectedItems
in interfaceCockpitComponent
-
desktopRemoved
public void desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
- Specified by:
desktopRemoved
in interfaceDesktopRemovalAwareComponent
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
detach
in classorg.zkoss.zk.ui.AbstractComponent
-
setParent
public void setParent(org.zkoss.zk.ui.Component parent)
- Specified by:
setParent
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
setParent
in classorg.zkoss.zk.ui.AbstractComponent
-
getResultModel
protected DefaultListModel<TypedObject> getResultModel()
-
updateResult
protected void updateResult()
-
getListViewConfigurationCode
protected java.lang.String getListViewConfigurationCode()
-
createTableController
protected AbstractTableController createTableController(ListSectionModel listSectionModel, MutableTableModel mutableTableModel, UIListView listView)
-
getTableModel
protected MutableTableModel getTableModel()
-
setTableModel
protected void setTableModel(MutableTableModel tableModel)
-
getRootType
protected ObjectTemplate getRootType()
-
getListViewConfiguration
protected ListViewConfiguration getListViewConfiguration(ObjectTemplate objectTemplate, java.lang.String code)
-
getUIConfigurationService
protected UIConfigurationService getUIConfigurationService()
-
getColumnModelListener
protected ColumnModelListener getColumnModelListener()
-
storeListViewConfiguration
protected void storeListViewConfiguration()
-
getSectionGroupbox
protected AdvancedGroupbox getSectionGroupbox()
-
-