public class PasswordInput extends TextInput
Constructor and Description |
---|
PasswordInput()
Default constructor.
|
PasswordInput(float x,
float y,
float width,
float height)
Constructor with position and size parameters.
|
PasswordInput(java.lang.String text)
Default constructor with text to set.
|
PasswordInput(java.lang.String text,
float x,
float y,
float width,
float height)
Constructor with text, position and size parameters.
|
PasswordInput(java.lang.String text,
org.joml.Vector2f position,
org.joml.Vector2f size)
Constructor with text, position and size parameters.
|
PasswordInput(org.joml.Vector2f position,
org.joml.Vector2f size)
Constructor with position and size parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaskCharacter()
Returns mask character.
|
boolean |
isMasked()
Returns true if masking enabled.
|
void |
setMaskCharacter(int maskCharacter)
Used to set mask character.
|
void |
setMasked(boolean masked)
Used to enable or disable masking.
|
addTextInputContentChangeEventListener, equals, getCaretPosition, getEndSelectionIndex, getMouseCaretPosition, getSelection, getStartSelectionIndex, getTextInputContentChangeEvents, getTextState, hashCode, isEditable, removeTextInputContentChangeEventListener, setCaretPosition, setEditable, setEndSelectionIndex, setMouseCaretPosition, setStartSelectionIndex, toString
add, addAll, clearChilds, containerIterator, contains, containsAll, count, forEach, getAbsolutePosition, getBackgroundColor, getBorder, getChilds, getCornerRadius, getFocusedStrokeColor, getIntersector, getListenerMap, getMetadata, getParent, getPosition, getSize, getTooltip, intersects, isEmpty, isEnabled, isFocused, isHovered, isPressed, isVisible, parallelStream, remove, removeAll, removeIf, setBackgroundColor, setBackgroundColor, setBorder, setCornerRadius, setEnabled, setFocused, setFocusedStrokeColor, setFocusedStrokeColor, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setSize, setSize, setTooltip, setVisible, stream
public PasswordInput()
Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.
public PasswordInput(float x, float y, float width, float height)
x
- x position position in parent component.y
- y position position in parent component.width
- width of component.height
- height of component.public PasswordInput(org.joml.Vector2f position, org.joml.Vector2f size)
position
- position position in parent component.size
- size of component.public PasswordInput(java.lang.String text)
Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.
text
- text to set.public PasswordInput(java.lang.String text, float x, float y, float width, float height)
text
- text to set.x
- x position position in parent component.y
- y position position in parent component.width
- width of component.height
- height of component.public PasswordInput(java.lang.String text, org.joml.Vector2f position, org.joml.Vector2f size)
text
- text to set.position
- position position in parent component.size
- size of component.public int getMaskCharacter()
public void setMaskCharacter(int maskCharacter)
maskCharacter
- mask character to set.public boolean isMasked()
public void setMasked(boolean masked)
masked
- true if need to mask text.