Package jltk.gui
Class PasswordField
- java.lang.Object
-
- jltk.Component
-
- jltk.gui.Control
-
- jltk.gui.TextComponent
-
- jltk.gui.PasswordField
-
public class PasswordField extends TextComponent
A passwordfield is a special textfield. If you write a text in a password field, the text will mask. events: confirmed, selectionChanged, contentChanged- Version:
- 23.05.2022
- Author:
- ms
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.scene.control.PasswordField
fxPasswordField
-
Fields inherited from class jltk.gui.TextComponent
color, font, fxTextInputControl, newLine, onConfirmed, onContentChanged, onSelectionChanged
-
Fields inherited from class jltk.Component
fxNode, hasFocus, myWindow, onFocusGained, onFocusLost
-
-
Constructor Summary
Constructors Constructor Description PasswordField(double pLeft, double pTop, double pWidth, double pHeight)
Creates an empty password field on the specified postion on the default window.PasswordField(double pLeft, double pTop, double pWidth, double pHeight, String pText)
Creates an text field on the specified postion on the default window.PasswordField(Window pWindow, double pLeft, double pTop, double pWidth, double pHeight, String pText)
Creates an text field on the specified postion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setContent(String pContent)
The text component gets a new text as content-
Methods inherited from class jltk.gui.TextComponent
append, append, append, append, append, append, append, clear, contentIsDouble, contentIsFloat, contentIsInteger, contentIsLongInteger, disableEdit, enableEdit, getContentAsDouble, getContentAsFloat, getContentAsInteger, getContentAsLongInteger, getContentAsString, getFont, getFontSize, getLength, getSelectedText, getSelectionEnd, getSelectionStart, init, isEditable, selectAll, setContent, setContent, setContent, setContent, setContent, setContent, setFont, setFontColor, setFontColor, setFontColor, setFontSize, setFontStyle, setOnConfirmed, setOnContentChanged, setOnSelectionChanged
-
Methods inherited from class jltk.gui.Control
getColor, getHeight, getWidth, init, setColor, setColor, setColor, setHeight, setSize, setTooltip, setWidth
-
Methods inherited from class jltk.Component
activate, deactivate, focus, getX, getY, hasFocus, hide, init, istActive, isVisible, runMethodByName, setOnFocusGained, setOnFocusLost, setPosition, show, toBack, toFront
-
-
-
-
Constructor Detail
-
PasswordField
public PasswordField(double pLeft, double pTop, double pWidth, double pHeight)
Creates an empty password field on the specified postion on the default window.- Parameters:
pLeft
- The horizontal coordinatepTop
- The vertical coordinatepWidth
- The width of the password fieldpHeight
- The height of the password field
-
PasswordField
public PasswordField(double pLeft, double pTop, double pWidth, double pHeight, String pText)
Creates an text field on the specified postion on the default window.- Parameters:
pLeft
- The horizontal coordinatepTop
- The vertical coordinatepWidth
- The width of the password fieldpHeight
- The height of the password fieldpText
- The text of the password field
-
PasswordField
public PasswordField(Window pWindow, double pLeft, double pTop, double pWidth, double pHeight, String pText)
Creates an text field on the specified postion.- Parameters:
pLeft
- The horizontal coordinatepTop
- The vertical coordinatepWidth
- The width of the password fieldpHeight
- The height of the password fieldpWindow
- The window, the password field should be placedpText
- The label of the password field
-
-
Method Detail
-
setContent
public void setContent(String pContent)
Description copied from class:TextComponent
The text component gets a new text as content- Overrides:
setContent
in classTextComponent
- Parameters:
pContent
- The new text for the text component.
-
-