public abstract class MustInputField extends java.lang.Object implements Markupable, ValueFetcher
MustInputField
,
GroupOfMarkupables
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
comment |
protected boolean |
focus |
protected java.lang.String |
name |
protected java.lang.String |
placeholder |
protected java.lang.String |
toolTipText |
Constructor and Description |
---|
MustInputField(java.lang.String name)
Constructs a new input field with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the markupable.
|
abstract void |
fetchYourValueFromRequest(GeneralizedRequest request)
Causes the component to read user input by calling request.getParameter and
update the internal mirrored value.
|
java.lang.String |
getName()
Returns the name of the input field.
|
void |
setComment(java.lang.String comment)
Sets the component's comment text which will be presented to the right of
the component.
|
void |
setFocus(boolean focus) |
void |
setPlaceHolder(java.lang.String placeholder) |
void |
setToolTipText(java.lang.String newToolTipText)
Sets the component's tool tip text.
|
java.lang.String |
toString()
Returns the tag sequence that's needed to show this object in the user
interface.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCreationTag
protected java.lang.String name
protected java.lang.String toolTipText
protected java.lang.String placeholder
protected boolean focus
protected java.lang.String comment
public MustInputField(java.lang.String name)
name
- the name of the field to be used for markup parameterspublic java.lang.String getName()
public void setToolTipText(java.lang.String newToolTipText)
setToolTipText
in interface Markupable
newToolTipText
- the component's tool tip textpublic void setPlaceHolder(java.lang.String placeholder)
public void setFocus(boolean focus)
public void setComment(java.lang.String comment)
setComment
in interface Markupable
comment
- the component's comment textpublic java.lang.String toString()
toString
in class java.lang.Object
public abstract void fetchYourValueFromRequest(GeneralizedRequest request)
ValueFetcher
fetchYourValueFromRequest
in interface ValueFetcher
request
- the current requestpublic void destroy()
Markupable
destroy
in interface Markupable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de