public class XdevLabel extends Label implements XdevComponent
ContentMode
The contents of the label may contain simple formatting:
Label.ValueChangeEvent
ExtendableObject.Extensions
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
CONTENT_DEFAULT, CONTENT_PREFORMATTED, CONTENT_RAW, CONTENT_TEXT, CONTENT_XHTML, CONTENT_XML
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Constructor and Description |
---|
XdevLabel()
Creates an empty Label.
|
XdevLabel(Property<?> contentSource)
Creates a new instance of Label with text-contents read from given
datasource.
|
XdevLabel(Property<?> contentSource,
ContentMode contentMode)
Creates a new instance of Label with text-contents read from given
datasource.
|
XdevLabel(String content)
Creates a new instance of Label with text-contents.
|
XdevLabel(String content,
ContentMode contentMode)
Creates a new instance of Label with text-contents.
|
Modifier and Type | Method and Description |
---|---|
<E> E |
addExtension(Class<? super E> type,
E extension)
Adds an extension to this component.
|
<E> E |
getExtension(Class<E> type)
Gets the registered extension for the specified type.
|
addListener, addValueChangeListener, attach, compareTo, getContentMode, getConverter, getPropertyDataSource, getType, getValue, readDesign, removeListener, removeValueChangeListener, setContentMode, setConverter, setLocale, setPropertyDataSource, setValue, toString, valueChange, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, findAncestor, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addListener, addListener, encodeState, equals, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getRpcManager, getStateType, getUI, handleConnectorRequest, hashCode, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
isEnabled, isReadOnly, isVisible, setEnabled, setReadOnly, setVisible
isReadOnly, setReadOnly
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
public XdevLabel()
public XdevLabel(Property<?> contentSource, ContentMode contentMode)
contentSource
- contentMode
- public XdevLabel(Property<?> contentSource)
contentSource
- public XdevLabel(String content, ContentMode contentMode)
content
- contentMode
- public XdevLabel(String content)
content
- public <E> E addExtension(Class<? super E> type, E extension)
addExtension
in interface ExtendableObject
type
- the type to register the extension forextension
- the extensionnull
ExtendableObject.getExtension(Class)
public <E> E getExtension(Class<E> type)
getExtension
in interface ExtendableObject
type
- the type the extension was registered withnull
if none was added before for
this typeExtendableObject.addExtension(Class, Object)