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 Classes
    Modifier and Type
    Class
    Description
    class 
     

    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
     
    static final String
     
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    protected boolean
    Indicates whether this content browser has been initialized or not.
     
    protected org.zkoss.zul.Div
     
     

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
    desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
     
    void
     
     
     
    protected org.zkoss.zk.ui.HtmlBasedComponent
     
     
     
    protected org.zkoss.zk.ui.HtmlBasedComponent
     
     
     
     
    protected abstract boolean
    Initializes this content browser i.e.
    boolean
     
    boolean
     
    abstract void
     
    void
    setActiveWhenUnfocused(boolean activeWhenUnfocused)
     
    void
    setContentBrowserComponent(org.zkoss.zk.ui.HtmlBasedComponent contentBrowserComponent)
     
    void
    setFocus(boolean focus)
     
    void
    setFocusComponent(org.zkoss.zk.ui.HtmlBasedComponent focusComponent)
     
    void
     
    void
    setParent(org.zkoss.zk.ui.Component parent)
     
    void
     
    void
    setSclass(String sclass)
     
    abstract boolean
    Updates this content browser i.e.
    abstract void
    This method makes it possible to force the view to get the currently active item(s) from its model, thus synchronizing itself.
    abstract void
    This method makes it possible to force the view to re-render the items which are considered "active".
    abstract void
     
    abstract void
     
    void
    updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
     
    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.
    abstract void
     
    abstract void
    This method makes it possible to force the view to re-render the items which are considered "selected".
    void
     
    abstract void
     
    abstract void
     

    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, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, 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, 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

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • AbstractContentBrowser

      public AbstractContentBrowser()
  • Method Details

    • setFocus

      public void setFocus(boolean focus)
      Overrides:
      setFocus in class org.zkoss.zk.ui.HtmlBasedComponent
    • getDDWrapper

      protected DragAndDropWrapper getDDWrapper()
    • setSclass

      public void setSclass(String sclass)
      Overrides:
      setSclass in class org.zkoss.zk.ui.HtmlBasedComponent
    • setRealSclass

      public void setRealSclass(String sclass)
    • 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

      public BrowserModel getModel()
    • setModel

      public void setModel(BrowserModel model)
    • 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-rendered
      modifiedProperties - set of modified properties
      reason - the object that causes the update, can be null
    • updateItem

      public void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
    • 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:
      true if this browser was successfully updated, false otherwise
    • 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 a model is set.

      Implementation note: Do not forget to set the initialized flag before returning.

      Returns:
      true if initialization was successful, false otherwise
      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

      public AbstractBrowserComponent getCaptionComponent()
    • getToolbarComponent

      public AbstractBrowserComponent getToolbarComponent()
    • getMainAreaComponent

      public AbstractBrowserComponent getMainAreaComponent()
    • getContextAreaComponent

      public AbstractBrowserComponent getContextAreaComponent()
    • getActionConfiguration

      public ActionColumnConfiguration getActionConfiguration()
    • setParent

      public void setParent(org.zkoss.zk.ui.Component parent)
      Specified by:
      setParent in interface org.zkoss.zk.ui.Component
      Overrides:
      setParent in class org.zkoss.zk.ui.AbstractComponent
    • detach

      public void detach()
      Specified by:
      detach in interface org.zkoss.zk.ui.Component
      Overrides:
      detach in class org.zkoss.zk.ui.AbstractComponent
    • desktopRemoved

      public void desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
      Specified by:
      desktopRemoved in interface DesktopRemovalAwareComponent
    • cleanup

      protected void cleanup()