Interface UITextBox
- All Superinterfaces:
UIAtomicWidget,UIWidget
JavaScript type
The JavaScript type for this widget is String.
If the box is empty, the value will be an empty String, that is, "".
If an afterValueChanged action
has been set on this widget,
the JavaScript type of the value will be the same.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the previously set background color.Returns the previously set foreground color.getWidth()booleanvoidsetBackgroundColor(String anHtmlBackgroundColor) Sets the background color of the component input.voidsetForegroundColor(String anHtmlForegroundColor) Sets the foreground color of the component input.voidSets the height of the text box.voidsetMultiLine(boolean isMultiLine) Enables the multi-line feature of the text box.voidSets the width of the text box.Methods inherited from interface com.orchestranetworks.ui.form.widget.UIAtomicWidget
getActionOnAfterValueChanged, isAjaxPrevalidationEnabled, isAjaxValueSynchEnabled, setActionOnAfterValueChanged, setAjaxPrevalidationEnabled, setAjaxValueSynchEnabledMethods inherited from interface com.orchestranetworks.ui.form.widget.UIWidget
isEditorDisabled, setEditorDisabled
-
Method Details
-
getHeight
Size getHeight()- Returns:
- the height of the text box,
or
nullif it has not been defined. - Since:
- 5.5.1
- See Also:
-
getWidth
Size getWidth()- Returns:
- the width of the text box,
or
nullif it has not been defined. - See Also:
-
isMultiLine
boolean isMultiLine()- Returns:
trueif the multi-line has been enabled,falseotherwise.- Since:
- 5.5.1
- See Also:
-
setHeight
Sets the height of the text box.The height feature only works when multi-line is enabled.
If the height is
null, it will use the standard height of text areas defined in the Administration section, topic Ergonomics and layout.Default value is
null.- Parameters:
height- the height to set the text box to, ornullto reset to default.- Since:
- 5.5.1
- See Also:
-
setMultiLine
void setMultiLine(boolean isMultiLine) Enables the multi-line feature of the text box.When the multi-line is enabled, the height feature is available.
Default value is
false.- Parameters:
isMultiLine-trueto enable the multi-line feature, orfalseto reset to default.- Since:
- 5.5.1
- See Also:
-
setWidth
Sets the width of the text box.If the width is
null, it will use the standard width of inputs defined in the Administration section, topic Ergonomics and layout.Default value is
null.- Parameters:
width- the width to set the text box to, ornullto reset to default.
-
getBackgroundColor
String getBackgroundColor()Returns the previously set background color.- Since:
- 5.8.0
-
setBackgroundColor
Sets the background color of the component input.Color must be a valid hexadecimal HTML color, and respect one of the following formats: "ABC", "#ABC", "ABCDEF" or "#ABCDEF".
- Since:
- 5.8.0
-
getForegroundColor
String getForegroundColor()Returns the previously set foreground color.- Since:
- 5.8.1
-
setForegroundColor
Sets the foreground color of the component input.Color must be a valid hexadecimal HTML color, and respect one of the following formats: "ABC", "#ABC", "ABCDEF" or "#ABCDEF".
- Since:
- 5.8.1
-