Package jexer
Class TPasswordField
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TField
-
- jexer.TPasswordField
-
- All Implemented Interfaces:
java.lang.Comparable<TWidget>
,EditMenuUser
public class TPasswordField extends TField
TPasswordField implements an editable text field that displays stars/asterisks when it is not active.
-
-
Field Summary
-
Fields inherited from class jexer.TField
backgroundChar, enterAction, fixed, insertMode, mouse, position, screenPosition, text, updateAction, windowStart
-
-
Constructor Summary
Constructors Constructor Description TPasswordField(TWidget parent, int x, int y, int width, boolean fixed)
Public constructor.TPasswordField(TWidget parent, int x, int y, int width, boolean fixed, java.lang.String text)
Public constructor.TPasswordField(TWidget parent, int x, int y, int width, boolean fixed, java.lang.String text, TAction enterAction, TAction updateAction)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw()
Draw the text field.-
Methods inherited from class jexer.TField
appendChar, dispatch, end, getBackgroundChar, getText, home, insertChar, isEditMenuClear, isEditMenuCopy, isEditMenuCut, isEditMenuPaste, mouseOnField, normalizeWindowStart, onCommand, onKeypress, onMouseDown, screenToTextPosition, setActiveColorKey, setBackgroundChar, setEnterAction, setHeight, setInactiveColorKey, setPosition, setText, setUpdateAction, updateCursor
-
Methods inherited from class jexer.TWidget
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getCustomMousePointer, getHeight, getLayoutManager, getMouseStyle, getParent, getScreen, getTheme, getWidgetUnderMouse, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isPixelMouse, isVisible, messageBox, messageBox, mouseWouldHit, onIdle, onMenu, onMouseDoubleClick, onMouseMotion, onMouseUp, onResize, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setCustomMousePointer, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setLayoutManager, setMouseStyle, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
-
-
-
-
Constructor Detail
-
TPasswordField
public TPasswordField(TWidget parent, int x, int y, int width, boolean fixed)
Public constructor.- Parameters:
parent
- parent widgetx
- column relative to parenty
- row relative to parentwidth
- visible text widthfixed
- if true, the text cannot exceed the display width
-
TPasswordField
public TPasswordField(TWidget parent, int x, int y, int width, boolean fixed, java.lang.String text)
Public constructor.- Parameters:
parent
- parent widgetx
- column relative to parenty
- row relative to parentwidth
- visible text widthfixed
- if true, the text cannot exceed the display widthtext
- initial text, default is empty string
-
TPasswordField
public TPasswordField(TWidget parent, int x, int y, int width, boolean fixed, java.lang.String text, TAction enterAction, TAction updateAction)
Public constructor.- Parameters:
parent
- parent widgetx
- column relative to parenty
- row relative to parentwidth
- visible text widthfixed
- if true, the text cannot exceed the display widthtext
- initial text, default is empty stringenterAction
- function to call when enter key is pressedupdateAction
- function to call when the text is updated
-
-