Package com.groiss.gui.component
Class PasswordField
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.component.Textfield
com.groiss.gui.component.PasswordField
- All Implemented Interfaces:
Component
,Serializable
,Cloneable
A HTML password element. <input type=password
Like the Text component but the text is not displayed as it is entered.
- See Also:
-
Field Summary
Fields inherited from class com.groiss.gui.AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
ConstructorDescriptionConstructs a new empty password field.PasswordField
(String name) Constructs a password field with a name.PasswordField
(String name, int size) PasswordField
(String name, String value) Constructs a password field with a name and a value.PasswordField
(String name, String value, int size, int length) Constructs a password field with name, value, size, and length.PasswordField
(String name, String value, String styleClass) Constructs a password field with a name, value, and style. -
Method Summary
Methods inherited from class com.groiss.gui.component.Textfield
getContent, getMaxlength, getSize, getValue, setContent, setMaxlength, setSize, setValue
Methods inherited from class com.groiss.gui.AbstractComponent
addClass, clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setBrowserMode, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
-
Constructor Details
-
PasswordField
public PasswordField()Constructs a new empty password field. -
PasswordField
Constructs a password field with a name.- Parameters:
name
- - the name of the field
-
PasswordField
-
PasswordField
Constructs a password field with a name and a value.- Parameters:
name
- the name of the fieldvalue
- the initial value
-
PasswordField
Constructs a password field with a name, value, and style.- Parameters:
name
- the name and id of the fieldvalue
- the initial valuestyleClass
- the name of a CSS class
-
PasswordField
Constructs a password field with name, value, size, and length.- Parameters:
name
- the name and id of the fieldvalue
- the initial valuesize
- the size of the PasswordFieldlength
- the maximal length of the text in the PasswordField
-