com.alkacon.geranium.client.ui.input
public class LabelSelectCell extends A_SelectCell implements I_Truncable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_value
The value of the select option.
|
| Constructor and Description |
|---|
LabelSelectCell(java.lang.String value,
java.lang.String text)
Creates a new select cell.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Returns the text as which the select option should be displayed to the user.
|
java.lang.String |
getValue()
Returns the value of the select option as a string.
|
void |
setText(java.lang.String text)
Sets the text of the label.
|
void |
truncate(java.lang.String textMetricsKey,
int labelWidth)
Truncates long text and sets the original text to the title attribute.
|
getRequiredWidth, registerDomHandlerclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventspublic LabelSelectCell(java.lang.String value,
java.lang.String text)
value - the value of the select optiontext - the text to display for the select optionpublic java.lang.String getText()
public java.lang.String getValue()
A_SelectCellgetValue in class A_SelectCellA_SelectCell.getValue()public void setText(java.lang.String text)
text - the new textpublic void truncate(java.lang.String textMetricsKey,
int labelWidth)
I_Truncabletruncate in interface I_TruncabletextMetricsKey - the key identifying the text metrics to uselabelWidth - the width to use in pixelsI_Truncable.truncate(java.lang.String, int)