Package org.opencms.ui.components
Class CmsResourceTable.CategoryLabel
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.Composite
org.opencms.ui.components.CmsResourceTable.CategoryLabel
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier,com.vaadin.event.MethodEventSource,com.vaadin.server.ClientConnector,com.vaadin.server.Sizeable,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.HasComponents,Serializable,Comparable<CmsResourceTable.CategoryLabel>,Iterable<com.vaadin.ui.Component>
- Enclosing class:
CmsResourceTable
public static class CmsResourceTable.CategoryLabel
extends com.vaadin.ui.Composite
implements Comparable<CmsResourceTable.CategoryLabel>
Widget for displaying a resource's categories in a table column.
For user experience reasons, this widget only loads the category data when needed, which is either when it is attached, or when other operations (sorting, filtering) need it.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.ListenerNested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit -
Field Summary
Fields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXTFields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS -
Constructor Summary
ConstructorsConstructorDescriptionCategoryLabel(CmsResourceUtil resUtil, Locale locale) Creates a new instance. -
Method Summary
Methods inherited from class com.vaadin.ui.Composite
addStyleName, beforeClientResponse, getCaption, getComponentError, getCompositionRoot, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isEnabled, iterator, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setCompositionRoot, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setPrimaryStyleName, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setWidth, setWidth, setWidthUndefinedMethods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCustomAttributes, getData, getLocale, getParent, isConnectorEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, setData, setHeightFull, setLocale, setParent, setReadOnly, setRequiredIndicatorVisible, setResponsive, setVisible, setWidthFull, writeDesignMethods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.Component
addListener, addStyleNames, getLocale, getParent, getUI, isVisible, readDesign, removeListener, removeStyleNames, setParent, setVisible, writeDesignMethods inherited from interface com.vaadin.shared.Connector
getConnectorIdMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.vaadin.server.Sizeable
setHeightFull, setWidthFull
-
Constructor Details
-
CategoryLabel
Creates a new instance.- Parameters:
resUtil- the resource utility wrapperlocale- the workplace locale
-
-
Method Details
-
attach
- Specified by:
attachin interfacecom.vaadin.server.ClientConnector- Specified by:
attachin interfacecom.vaadin.ui.Component- Overrides:
attachin classcom.vaadin.ui.AbstractComponent- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<CmsResourceTable.CategoryLabel>- See Also:
-
getValue
Gets the categories as a string (for tooltips, sorting and filtering).- Returns:
- the category values
-
toString
Needed for filtering. -
init
Initializes the category data and the actual widget, unless it has already been initialized.
-