Class AbstractContentBrowser
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.AbstractContentBrowser
- All Implemented Interfaces:
DesktopRemovalAwareComponent,Serializable,Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl
- Direct Known Subclasses:
AbstractContentContextBrowser,AbstractSimpleContentBrowser
public abstract class AbstractContentBrowser
extends org.zkoss.zul.Div
implements DesktopRemovalAwareComponent
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrlNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractBrowserComponentstatic final Stringprotected AbstractBrowserComponentstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanIndicates whether this content browser has been initialized or not.protected AbstractBrowserComponentprotected org.zkoss.zul.Divprotected AbstractBrowserComponentFields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclassFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup()voiddesktopRemoved(org.zkoss.zk.ui.Desktop desktop) voiddetach()protected org.zkoss.zk.ui.HtmlBasedComponentprotected DragAndDropWrapperprotected org.zkoss.zk.ui.HtmlBasedComponentgetModel()protected abstract booleanInitializes this content browser i.e.booleanbooleanabstract voidresize()voidsetActiveWhenUnfocused(boolean activeWhenUnfocused) voidsetContentBrowserComponent(org.zkoss.zk.ui.HtmlBasedComponent contentBrowserComponent) voidsetFocus(boolean focus) voidsetFocusComponent(org.zkoss.zk.ui.HtmlBasedComponent focusComponent) voidsetModel(BrowserModel model) voidsetParent(org.zkoss.zk.ui.Component parent) voidsetRealSclass(String sclass) voidabstract booleanupdate()Updates this content browser i.e.abstract voidThis method makes it possible to force the view to get the currently active item(s) from its model, thus synchronizing itself.abstract voidThis method makes it possible to force the view to re-render the items which are considered "active".abstract voidabstract voidvoidupdateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties) abstract voidupdateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties, Object reason) This method makes it possible to force the view to re-render a list of items.abstract voidabstract voidThis method makes it possible to force the view to re-render the items which are considered "selected".voidabstract voidabstract voidMethods inherited from class org.zkoss.zul.Div
getAlign, renderProperties, setAlignMethods inherited from class org.zkoss.zul.impl.XulElement
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods 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, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyMethods 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, 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
-
Field Details
-
CONTENT_BROWSER_CHANGE
- See Also:
-
DEFAULT_SCLASS
- See Also:
-
FOCUSED_SCLASS
- See Also:
-
DEFAULT_OVERLAY_SCLASS
- See Also:
-
FOCUSED_OVERLAY_SCLASS
- See Also:
-
captionComponent
-
toolbarComponent
-
mainAreaComponent
-
contextAreaComponent
-
statusBar
protected transient org.zkoss.zul.Div statusBar -
initialized
protected boolean initializedIndicates whether this content browser has been initialized or not.
-
-
Constructor Details
-
AbstractContentBrowser
public AbstractContentBrowser()
-
-
Method Details
-
setFocus
public void setFocus(boolean focus) - Overrides:
setFocusin classorg.zkoss.zk.ui.HtmlBasedComponent
-
getDDWrapper
-
setSclass
- Overrides:
setSclassin classorg.zkoss.zk.ui.HtmlBasedComponent
-
setRealSclass
-
setFocusComponent
public void setFocusComponent(org.zkoss.zk.ui.HtmlBasedComponent focusComponent) -
getFocusComponent
protected org.zkoss.zk.ui.HtmlBasedComponent getFocusComponent() -
setContentBrowserComponent
public void setContentBrowserComponent(org.zkoss.zk.ui.HtmlBasedComponent contentBrowserComponent) -
getContentBrowserComponent
protected org.zkoss.zk.ui.HtmlBasedComponent getContentBrowserComponent() -
getModel
-
setModel
-
updateActiveItems
public abstract void updateActiveItems()This method makes it possible to force the view to re-render the items which are considered "active". Note: This will not affect which items are considered active or not.- See Also:
-
updateSelectedItems
public abstract void updateSelectedItems()This method makes it possible to force the view to re-render the items which are considered "selected". -
updateItem
public abstract void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties, Object reason) This method makes it possible to force the view to re-render a list of items.- Parameters:
item- the item which should be re-renderedmodifiedProperties- set of modified propertiesreason- the object that causes the update, can be null
-
updateItem
-
updateActivation
public abstract void updateActivation()This method makes it possible to force the view to get the currently active item(s) from its model, thus synchronizing itself.- See Also:
-
updateMainArea
public abstract void updateMainArea() -
updateViewMode
public abstract void updateViewMode() -
updateContextArea
public abstract void updateContextArea() -
updateCaption
public abstract void updateCaption() -
updateToolbar
public abstract void updateToolbar() -
update
public abstract boolean update()Updates this content browser i.e. synchronizes its view width the underlying model.- Returns:
trueif this browser was successfully updated,falseotherwise
-
initialize
protected abstract boolean initialize()Initializes this content browser i.e. creates all required components, adds event listeners etc. Note: This method is automatically called when amodelis set. Implementation note: Do not forget to set theinitializedflag before returning.- Returns:
trueif initialization was successful,falseotherwise- See Also:
-
resize
public abstract void resize() -
updateStatusBar
public void updateStatusBar() -
setActiveWhenUnfocused
public void setActiveWhenUnfocused(boolean activeWhenUnfocused) - Parameters:
activeWhenUnfocused- the activeWhenUnfocused to set
-
isActiveWhenUnfocused
public boolean isActiveWhenUnfocused()- Returns:
- the activeWhenUnfocused
-
isInitialized
public boolean isInitialized() -
getCaptionComponent
-
getToolbarComponent
-
getMainAreaComponent
-
getContextAreaComponent
-
getActionConfiguration
-
setParent
public void setParent(org.zkoss.zk.ui.Component parent) - Specified by:
setParentin interfaceorg.zkoss.zk.ui.Component- Overrides:
setParentin classorg.zkoss.zk.ui.AbstractComponent
-
detach
public void detach()- Specified by:
detachin interfaceorg.zkoss.zk.ui.Component- Overrides:
detachin classorg.zkoss.zk.ui.AbstractComponent
-
desktopRemoved
public void desktopRemoved(org.zkoss.zk.ui.Desktop desktop) - Specified by:
desktopRemovedin interfaceDesktopRemovalAwareComponent
-
cleanup
protected void cleanup()
-