Package org.opencms.gwt.client.ui.input
Class CmsLabelSelectCell
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.input.A_CmsSelectCell
org.opencms.gwt.client.ui.input.CmsLabelSelectCell
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,I_CmsTruncable
This class represents a single select option in the selector of the select box.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
FieldsFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCmsLabelSelectCell(String value, String text) Creates a new select cell.CmsLabelSelectCell(String value, String text, String title) Creates a new select cell. -
Method Summary
Modifier and TypeMethodDescriptionGets the opener text.intMeasures the required width for this cell.getText()Returns the text as which the select option should be displayed to the user.getValue()Returns the value of the select option as a string.voidsetOpenerText(String openerText) Sets the opener text.voidSets the text of the label.voidTruncates long text and sets the original text to the title attribute.Methods inherited from class org.opencms.gwt.client.ui.input.A_CmsSelectCell
registerDomHandlerMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
m_value
The value of the select option.
-
-
Constructor Details
-
CmsLabelSelectCell
Creates a new select cell.- Parameters:
value- the value of the select optiontext- the text to display for the select option
-
CmsLabelSelectCell
Creates a new select cell.- Parameters:
value- the value of the select optiontext- the text to display for the select optiontitle- the title to display on mouseover
-
-
Method Details
-
getOpenerText
Gets the opener text.- Returns:
- the opener text
-
getRequiredWidth
Measures the required width for this cell.- Overrides:
getRequiredWidthin classA_CmsSelectCell- Returns:
- the required width
-
getText
Returns the text as which the select option should be displayed to the user.- Returns:
- the text of the select option
-
getValue
Description copied from class:A_CmsSelectCellReturns the value of the select option as a string.- Specified by:
getValuein classA_CmsSelectCell- Returns:
- the value of the select option
- See Also:
-
setOpenerText
Sets the opener text.- Parameters:
openerText- the new opener text
-
setText
Sets the text of the label.- Parameters:
text- the new text
-
truncate
Description copied from interface:I_CmsTruncableTruncates long text and sets the original text to the title attribute.- Specified by:
truncatein interfaceI_CmsTruncable- Parameters:
textMetricsKey- the key identifying the text metrics to uselabelWidth- the width to use in pixels- See Also:
-