public class MustTextArea extends MustInputField
Modifier and Type | Field and Description |
---|---|
protected int |
cols |
protected boolean |
editable |
protected int |
maxlength |
protected boolean |
required |
protected int |
rows |
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
MustTextArea()
Constructs a new text area with a default max. length of 254 characters.
|
MustTextArea(int maxlength)
Constructs a new text area with a max. number of characters as specified.
|
MustTextArea(java.lang.String name,
java.lang.String value,
int maxlength)
Constructs a new text area with specific name, inital value and a max.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the markupable.
|
void |
fetchYourValueFromRequest(GeneralizedRequest request)
Causes the component to read user input by calling request.getParameter and
update the internal mirrored value.
|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
java.lang.String |
getText()
Return the text of the text area.
|
boolean |
isFilled()
Returns true if the component has a value.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
boolean |
isRequirementUnfulfilled()
Returns true if the component's value is mandatory but not filled.
|
boolean |
isValid()
Returns true if the component's value is valid.
|
void |
setEditable(boolean editable)
Sets the specified boolean to indicate whether or not this component
should be editable.
|
void |
setRequired(boolean required)
Sets the fact that user input is requested (mandatory)
|
void |
setRows(int rows)
Sets the number of rows for this TextArea.
|
void |
setText(java.lang.String newText)
Sets the text.
|
getName, setComment, setFocus, setPlaceHolder, setToolTipText, toString
protected int rows
protected int cols
protected int maxlength
protected boolean required
protected boolean editable
public MustTextArea()
public MustTextArea(int maxlength)
maxlength
- the max. number of characters to be put inpublic MustTextArea(java.lang.String name, java.lang.String value, int maxlength)
name
- the name of the text area to be usedvalue
- the intitial value of the text areamaxlength
- the max. number of characters to be put inpublic void setRows(int rows)
rows
- the number of rows >= 0public void setEditable(boolean editable)
editable
- indicates whether or not this component is editablepublic java.lang.String getCreationTag()
public void fetchYourValueFromRequest(GeneralizedRequest request)
fetchYourValueFromRequest
in interface ValueFetcher
fetchYourValueFromRequest
in class MustInputField
request
- the current requestpublic java.lang.String getText()
public void setText(java.lang.String newText)
newText
- the new textpublic void setRequired(boolean required)
required
- whether this inuput is mandatory or not.public boolean isFilled()
public boolean isValid()
public boolean isRequirementUnfulfilled()
public boolean isModified()
public void destroy()
Markupable
destroy
in interface Markupable
destroy
in class MustInputField
Markupable.destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de