public class TextInputPart extends AbstractPart
Use setAllowEmpty(boolean) to specify if the text can be empty. by
default empty text is not allowed.
Use setPassword(boolean) to specify if the text should be treated
as a password text (e.g. hidden on input). By default the text is not treated
as a password.
Use setHeight(int) to specify a height for the field (-1 sets the default).
container, enabledOnSelection, labelFlushed, labelNextToInput, masterPart, paramDescriptor, vertical, withLabel| Constructor and Description |
|---|
TextInputPart(ParameterDescriptor paramDescriptor)
Creates a new TextInputPart object with a given parameter descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkType()
Checks the types supported by this UI part.
|
int |
getHeight()
Gets the suggested height of this part (-1 for default)
|
int |
getMaximumValue()
Gets the maximum value allowed (for integer input).
|
int |
getMinimumValue()
Gets the minimum value allowed (for integer input).
|
boolean |
isAllowEmpty()
Indicates if the input text can be empty.
|
boolean |
isPassword()
Indicates if the input text should be treated like a password.
|
void |
setAllowEmpty(boolean allowEmpty)
Sets the flag indicating if the input text can be empty.
|
void |
setHeight(int height)
Sets the suggested height of this part (-1 for default)
|
void |
setPassword(boolean password)
Sets the flag indicating if the input text should be treated like a password.
|
void |
setRange(int minimumValue,
int maximumValue)
Sets the minimum and maximum values allowed (for integer input).
|
getContainer, getDisplayName, getMasterPart, getName, getParent, getReadMethod, getShortDescription, getType, getWriteMethod, isEnabledOnSelection, isLabelFlushed, isLabelNextToInput, isVertical, isWithLabel, setContainer, setDisplayName, setLabelFlushed, setLabelNextToInput, setMasterPart, setShortDescription, setVertical, setWithLabelpublic TextInputPart(ParameterDescriptor paramDescriptor)
paramDescriptor - the parameter descriptor for this UI part.protected void checkType()
AbstractPartcheckType in class AbstractPartpublic boolean isAllowEmpty()
public void setAllowEmpty(boolean allowEmpty)
allowEmpty - true if the input text can be empty, false otherwise.public boolean isPassword()
public void setPassword(boolean password)
password - true if the input text should be treated like a password, false otherwise.public int getMinimumValue()
public int getMaximumValue()
public void setRange(int minimumValue,
int maximumValue)
minimumValue - the minimum value allowed.maximumValue - the maximum value allowed.public int getHeight()
public void setHeight(int height)
height - the suggested height of this part (use -1 for default)Copyright © 2022. All rights reserved.