|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.container.Container
com.sencha.gxt.widget.core.client.container.ResizeContainer
com.sencha.gxt.widget.core.client.container.SimpleContainer
com.sencha.gxt.widget.core.client.form.FieldLabel
public class FieldLabel
Form field wrapper to add a label and validation error text.
| Nested Class Summary | |
|---|---|
static interface |
FieldLabel.FieldLabelAppearance
Describes the appearance for a FieldLabel object. |
class |
FieldLabel.FieldLabelOptions
A set of configuration parameters for a FieldLabel. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
FieldLabel()
Creates a field label with the default appearance. |
|
FieldLabel(Widget widget)
Creates a field label with the default appearance for the specified widget. |
|
FieldLabel(Widget widget,
FieldLabel.FieldLabelAppearance appearance)
Creates a field label with the specified the specified widget and appearance. |
|
FieldLabel(Widget widget,
java.lang.String label)
Creates a field label with the default appearance and the specified widget and label. |
|
FieldLabel(Widget widget,
java.lang.String label,
FieldLabel.FieldLabelAppearance appearance)
Creates a field label with the specified widget, label and appearance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHTML()
|
FormPanel.LabelAlign |
getLabelAlign()
Returns the justification of a field label inside its available space. |
int |
getLabelPad()
Returns the width of the padding between the label and the control to which the label applies. |
java.lang.String |
getLabelSeparator()
Returns the label separator. |
int |
getLabelWidth()
Returns the label width. |
java.lang.String |
getText()
|
void |
setHTML(SafeHtml html)
|
void |
setHTML(java.lang.String html)
|
void |
setLabelAlign(FormPanel.LabelAlign labelAlign)
Sets the justification of a field label inside its available space. |
void |
setLabelPad(int labelPad)
Sets the width of the padding between the label and the control to which the label applies. |
void |
setLabelSeparator(java.lang.String labelSeparator)
The standard separator to display after the text of each form label (defaults to colon ':'). |
void |
setLabelWidth(int labelWidth)
Sets the label width (defaults to 100). |
void |
setText(java.lang.String text)
|
void |
setWidget(Widget w)
|
| Methods inherited from class com.sencha.gxt.widget.core.client.container.SimpleContainer |
|---|
add, add, getWidget, isResize, setResize, setWidget |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.Container |
|---|
add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldLabel()
setWidget(Widget) to set the widget and setText(String)
to set the label.
public FieldLabel(Widget widget)
widget - the widget to label
public FieldLabel(Widget widget,
FieldLabel.FieldLabelAppearance appearance)
widget - the widget to labelappearance - the appearance of the field label
public FieldLabel(Widget widget,
java.lang.String label)
widget - the widget to labellabel - the text to use for the label
public FieldLabel(Widget widget,
java.lang.String label,
FieldLabel.FieldLabelAppearance appearance)
widget - the widget to labellabel - the text to use for the labelappearance - the appearance of the field label| Method Detail |
|---|
public java.lang.String getHTML()
getHTML in interface HasHTMLpublic FormPanel.LabelAlign getLabelAlign()
public int getLabelPad()
public java.lang.String getLabelSeparator()
public int getLabelWidth()
public java.lang.String getText()
getText in interface HasTextpublic void setHTML(SafeHtml html)
setHTML in interface HasSafeHtmlpublic void setHTML(java.lang.String html)
setHTML in interface HasHTMLpublic void setLabelAlign(FormPanel.LabelAlign labelAlign)
labelAlign - the justification of a field label inside its available
spacepublic void setLabelPad(int labelPad)
labelPad - the width of the padding between the label and the control
to which the label appliespublic void setLabelSeparator(java.lang.String labelSeparator)
labelSeparator - the label separator or "" for nonepublic void setLabelWidth(int labelWidth)
labelWidth - the label widthpublic void setText(java.lang.String text)
setText in interface HasTextpublic void setWidget(Widget w)
setWidget in interface HasOneWidgetsetWidget in class SimpleContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||