public class MustPasswordField extends MustInputField
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
additionalTagFragments |
protected java.lang.String |
className |
static java.lang.String |
INSTANCE_NAME_PREFIX |
protected int |
maxlength |
protected int |
size |
protected java.lang.String |
value |
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
MustPasswordField()
Constructs a new password field with the default length of 20 characters.
|
MustPasswordField(int length)
Constructs a new password field with the specified length.
|
MustPasswordField(int size,
int maxlength)
Constructs a new password field with the specified size and max length.
|
MustPasswordField(java.lang.String name,
java.lang.String value,
int size,
int maxlength)
Constructs a new password field with the specified name, value, size and max length.
|
Modifier and Type | Method and Description |
---|---|
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 password field.
|
boolean |
isFilled()
Returns true if the component has a 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 |
setAdditionalTagFragments(java.lang.String additionalTagFragments)
Sets the component's additional tag fragments.
|
void |
setClassName(java.lang.String className)
Sets the component's class name - may be used to assign formatting
via style sheets.
|
static void |
setDefaultAdditionalTagFragments(java.lang.String newDefaultAdditionalTagFragments)
Sets the component's default additional tag fragments.
|
static void |
setDefaultClassName(java.lang.String newDefaultClassName)
Sets the component's default class name - may be used to assign formatting
via style sheets.
|
void |
setRequired(boolean required)
Sets the fact that user input is requested (mandatory)
|
void |
setText(java.lang.String newText)
Sets the text.
|
destroy, getName, setComment, setFocus, setPlaceHolder, setToolTipText, toString
public static final java.lang.String INSTANCE_NAME_PREFIX
protected java.lang.String value
protected java.lang.String className
protected java.lang.String additionalTagFragments
protected int size
protected int maxlength
public MustPasswordField()
public MustPasswordField(int length)
length
- the length of the password fieldpublic MustPasswordField(int size, int maxlength)
size
- rendering relevant size of the password fieldmaxlength
- input control relevant max length of the password fieldpublic MustPasswordField(java.lang.String name, java.lang.String value, int size, int maxlength)
name
- the name of the field to be used for markup parametersvalue
- the initial value of the password fieldsize
- rendering relevant size of the password fieldmaxlength
- input control relevant max length of the password fieldpublic static void setDefaultClassName(java.lang.String newDefaultClassName)
newDefaultClassName
- the component's default class namepublic void setClassName(java.lang.String className)
newDefaultClassName
- the component's class namepublic static void setDefaultAdditionalTagFragments(java.lang.String newDefaultAdditionalTagFragments)
newDefaultClassName
- the component's default additional tag fragments.public void setAdditionalTagFragments(java.lang.String additionalTagFragments)
newDefaultClassName
- the component's additional tag fragments.public 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 input is mandatory or not.public boolean isFilled()
public boolean isValid()
public boolean isRequirementUnfulfilled()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de