public class FieldLabel.FieldLabelOptions extends Object implements HasHTML, HasSafeHtml, HasWordWrap
Constructor and Description |
---|
FieldLabel.FieldLabelOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Returns the content of the label.
|
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.
|
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() |
boolean |
getWordWrap()
Returns true if the
content should word wrap. |
boolean |
isHtmlContent()
Returns true if the
content should be treated as HTML markup. |
void |
setHTML(SafeHtml html) |
void |
setHTML(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(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) |
void |
setWordWrap(boolean wordWrap)
Sets whether
content should word wrap. |
public String getContent()
htmlContent
.public FormPanel.LabelAlign getLabelAlign()
public int getLabelPad()
public String getLabelSeparator()
public int getLabelWidth()
public boolean getWordWrap()
content
should word wrap.getWordWrap
in interface HasWordWrap
public boolean isHtmlContent()
content
should be treated as HTML markup.
This is set depending on whether setText(String)
or
setHTML(String)
was last called.public void setHTML(SafeHtml html)
setHTML
in interface HasSafeHtml
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.setWordWrap
in interface HasWordWrap
wordWrap
- Copyright © 2015. All rights reserved.