public class FieldLabel.FieldLabelOptions extends Object
Constructor and Description |
---|
FieldLabelOptions() |
Modifier and Type | Method and Description |
---|---|
SafeHtml |
getContent()
Returns the content of the label.
|
String |
getHTML()
Returns the content of the label as html.
|
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.
|
String |
getLabelSeparator()
Returns the string to use as a suffix on the label to separate it from
the field it labels.
|
int |
getLabelWidth()
Returns the width of area available for label text.
|
String |
getText()
Returns the content of the label as text.
|
boolean |
getWordWrap()
Returns true if the
content should word wrap. |
void |
setContent(SafeHtml html)
Sets the content of the label as html.
|
void |
setHTML(SafeHtml html)
Sets the content of the label as 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(String labelSeparator)
Sets the string to use as a suffix on the label to separate it from the
field it labels.
|
void |
setLabelWidth(int labelWidth)
Sets the width of area available for label text.
|
void |
setText(String text)
Sets the content of the label as text.
|
void |
setWordWrap(boolean wordWrap)
Sets whether
content should word wrap. |
public SafeHtml getContent()
public void setContent(SafeHtml html)
html
- the label content htmlpublic String getText()
getHTML()
public void setText(String text)
text
- the textpublic String getHTML()
public void setHTML(SafeHtml html)
html
- the htmlpublic FormPanel.LabelAlign getLabelAlign()
public int getLabelPad()
public String getLabelSeparator()
public int getLabelWidth()
public boolean getWordWrap()
content
should word wrap.public 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(String labelSeparator)
labelSeparator
- the string to use as a suffix on the label to
separate it from the field it labelspublic void setLabelWidth(int labelWidth)
labelWidth
- the width of area available for label textpublic void setWordWrap(boolean wordWrap)
content
should word wrap.wordWrap
- true to enable word wrappingCopyright © 2018. All rights reserved.