public class UIPasswordField extends UITextField
UITextField.CursorPositionITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.TranslateautoSelectOnFocus, bgColor, charOffset, cursorColor, cursorPosition, cursorShape, disabledFro, editable, font, fro, iconTextfield, iconTextfieldDisabled, lineOffset, lines, lineSpacing, multiLine, scrollBar, selectColor, selectingText, selectionPosition, selectShape, startTimer, text, validator| Constructor and Description |
|---|
UIPasswordField(MalisisGui gui)
Instantiates a new
UIPasswordField. |
UIPasswordField(MalisisGui gui,
char passwordChar)
Instantiates a new
UIPasswordField |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(java.lang.String text)
Adds the text.
|
void |
deleteSelectedText()
Delete selected text.
|
char |
getPasswordCharacter()
Gets the masking character used when rendering text.
|
java.lang.String |
getText()
Gets the text of this
UITextField. |
protected boolean |
handleCtrlKeyDown(int keyCode)
Handle ctrl key down.
|
void |
setPasswordCharacter(char passwordChar)
Sets the masking character to use when rendering text.
|
void |
setText(java.lang.String text)
Sets the text.
|
protected void |
updateText()
Updates the text from the password value
|
buildLines, deleteFromCursor, deleteWord, drawBackground, drawCursor, drawForeground, drawSelectionBox, drawText, getContentHeight, getContentWidth, getCursorColor, getCursorPosition, getDisabledFontRendererOptions, getFont, getFontRenderOptions, getHorizontalPadding, getLineHeight, getLineSpacing, getOffsetX, getOffsetY, getPropertyString, getScrollbar, getScrollStep, getSelectColor, getSelectedText, getSelectionPosition, getValidator, getVerticalPadding, getVisibleLines, isEditable, onAddedToScreen, onButtonPress, onButtonRelease, onCursorUpdated, onDoubleClick, onDrag, onKeyTyped, selectWord, selectWord, setAutoSelectOnFocus, setCursorColor, setCursorPosition, setDisabledFontRendererOptions, setEditable, setFocused, setFont, setFontRenderOptions, setLineOffset, setLineSpacing, setOffsetX, setOffsetY, setOptions, setParent, setSelectColor, setSize, setValidator, startSelecting, validateTextaddControlComponent, attachData, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getData, getGui, getHeight, getIconProvider, getName, getParent, getRawHeight, getRawWidth, getRenderer, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onClick, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, self, setAlpha, setAnchor, setDisabled, setHovered, setName, setPosition, setPosition, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterpublic UIPasswordField(MalisisGui gui)
UIPasswordField.gui - the guipublic UIPasswordField(MalisisGui gui, char passwordChar)
UIPasswordFieldgui - the guipasswordChar - the password charpublic char getPasswordCharacter()
public void setPasswordCharacter(char passwordChar)
passwordChar - the masking character to usepublic java.lang.String getText()
UITextFieldUITextField.getText in class UITextFieldprotected void updateText()
public void addText(java.lang.String text)
addText in class UITextFieldtext - the textpublic void setText(java.lang.String text)
setText in class UITextFieldtext - the new textpublic void deleteSelectedText()
deleteSelectedText in class UITextFieldprotected boolean handleCtrlKeyDown(int keyCode)
handleCtrlKeyDown in class UITextFieldkeyCode - the key code