public abstract class AbstractSideBar<CR extends ComponentContainer> extends CustomComponent
SideBarUtils
that will provide information about the sections and items to show.| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractSideBar.ItemComponentFactory
Interface defining a factory for creating components that correspond to items in a side bar section.
|
static interface |
AbstractSideBar.ItemFilter
Interface defining a filter that can limit which items show up in the side bar.
|
static interface |
AbstractSideBar.SectionComponentFactory<CR extends ComponentContainer>
Interface defining a factory for creating components that correspond to sections in a side bar.
|
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListenerComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitDESIGN_ATTR_PLAIN_TEXTSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSideBar(SideBarUtils sideBarUtils)
Protected constructor.
|
getComponentCount, iterator, setCompositionRootaddContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesignaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedforEach, spliteratorprotected AbstractSideBar(SideBarUtils sideBarUtils)
SideBarUtils should come from the Spring application context.protected abstract CR createCompositionRoot()
null.protected CR getCompositionRoot()
When the side bar is not attached to a UI, this method will always return null.
getCompositionRoot in class CustomComponentcreateCompositionRoot()public void attach()
attach in interface ClientConnectorattach in interface Componentattach in class AbstractComponentprotected abstract AbstractSideBar.SectionComponentFactory<CR> createDefaultSectionComponentFactory()
AbstractSideBar.SectionComponentFactory to use.
This method must never return null.protected AbstractSideBar.SectionComponentFactory<CR> getSectionComponentFactory()
AbstractSideBar.SectionComponentFactory. If no
factory has been set, a default factory is created.protected void setSectionComponentFactory(AbstractSideBar.SectionComponentFactory<CR> sectionComponentFactory)
AbstractSideBar.SectionComponentFactory to use.protected abstract AbstractSideBar.ItemComponentFactory createDefaultItemComponentFactory()
AbstractSideBar.ItemComponentFactory to use.
This method must never return null.protected AbstractSideBar.ItemComponentFactory getItemComponentFactory()
AbstractSideBar.ItemComponentFactory. If no
factory has been set, a default factory is created.protected void setItemComponentFactory(AbstractSideBar.ItemComponentFactory itemComponentFactory)
AbstractSideBar.ItemComponentFactory to use.public void setItemFilter(AbstractSideBar.ItemFilter itemFilter)
public AbstractSideBar.ItemFilter getItemFilter()
null if not set.public void detach()
detach in interface ClientConnectordetach in class AbstractComponentCopyright © 2016. All rights reserved.