com.threerings.opengl.gui
Class PasswordField

java.lang.Object
  extended by com.threerings.opengl.gui.Component
      extended by com.threerings.opengl.gui.TextComponent
          extended by com.threerings.opengl.gui.EditableTextComponent
              extended by com.threerings.opengl.gui.TextField
                  extended by com.threerings.opengl.gui.PasswordField
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Document.Listener, EditCommands

public class PasswordField
extends TextField

A derivation of TextField that does not display the actual text, but asterisks instead.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.EditableTextComponent
EditableTextComponent.CompoundType
 
Field Summary
protected  String _stars
           
 
Fields inherited from class com.threerings.opengl.gui.TextField
_cursx, _glyphs, _selx, _txoff
 
Fields inherited from class com.threerings.opengl.gui.EditableTextComponent
_cursp, _keymap, _lastCompoundType, _lastUndoId, _placeholder, _prefWidth, _selectionBackgrounds, _selp, _showCursor, _srect, _text, _undomgr
 
Fields inherited from class com.threerings.opengl.gui.TextComponent
_effcols, _effsizes, _haligns, _lineSpacings, _teffects, _textfacts, _valigns
 
Fields inherited from class com.threerings.opengl.gui.Component
_alpha, _backgrounds, _borders, _colors, _ctx, _cursor, _enabled, _height, _hover, _hoverable, _insets, _listeners, _parent, _preferredSize, _properties, _rect, _styleConfigs, _tipmouse, _tiptext, _tooltipStyle, _transferHandler, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES
 
Fields inherited from interface com.threerings.opengl.gui.text.EditCommands
ACTION, BACKSPACE, CLEAR, COPY, CURSOR_DOWN, CURSOR_LEFT, CURSOR_RIGHT, CURSOR_UP, CUT, DELETE, END_OF_LINE, PASTE, REDO, RELEASE_FOCUS, START_OF_LINE, UNDO, WORD_LEFT, WORD_RIGHT
 
Constructor Summary
PasswordField(GlContext ctx)
           
PasswordField(GlContext ctx, int maxLength)
           
PasswordField(GlContext ctx, String text)
           
PasswordField(GlContext ctx, String text, int maxLength)
           
 
Method Summary
protected  String getDisplayText()
          This method allows a derived class (specifically PasswordField) to display something other than the actual contents of the text field.
 
Methods inherited from class com.threerings.opengl.gui.TextField
clearGlyphs, computePreferredSize, createGlyphs, getDefaultStyleConfig, getPosition, hasGlyphs, processCommand, renderComponent, selectionWasSet, validatePaste
 
Methods inherited from class com.threerings.opengl.gui.EditableTextComponent
acceptsFocus, deleteSelectedText, dispatchEvent, gainedFocus, getDocument, getSelectedText, getSelectionBackground, getText, insertChar, layout, lostFocus, nextUndoId, recreateGlyphs, renderCursor, replaceSelectedText, selectionContains, selectionIsEmpty, setCursorPos, setDocument, setMaxLength, setPlaceholder, setPreferredWidth, setSelection, setText, showCursor, stateDidChange, textInserted, textRemoved, updateFromStyleConfig, usePlaceholder, wasAdded, wasRemoved
 
Methods inherited from class com.threerings.opengl.gui.TextComponent
getEffectColor, getEffectSize, getHorizontalAlignment, getLabelRendererConfig, getLineSpacing, getTextEffect, getTextFactory, getTextFactory, getVerticalAlignment
 
Methods inherited from class com.threerings.opengl.gui.Component
addListener, boundsToString, changeCursor, configUpdated, contains, createDefaultTooltipComponent, createDefaultTooltipComponent, createTooltipComponent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getContext, getCursor, getFallbackState, getFirstDescendantFocus, getFocusTarget, getHeight, getHitComponent, getInsets, getLastDescendantFocus, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getState, getStateCount, getStatePseudoClass, getStyleConfigs, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, getTransferHandler, getWidth, getWindow, getX, getY, hasFocus, intersectScissor, invalidate, isAdded, isEnabled, isHoverable, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, scrollRectToVisible, scrollRectToVisible, setAlpha, setBackground, setBounds, setCursor, setEnabled, setHoverable, setLocation, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleConfig, setStyleConfig, setStyleConfig, setStyleConfigs, setTooltipRelativeToMouse, setTooltipText, setTransferHandler, setVisible, updateCursor, updateFromStyleConfig, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_stars

protected String _stars
Constructor Detail

PasswordField

public PasswordField(GlContext ctx)

PasswordField

public PasswordField(GlContext ctx,
                     int maxLength)

PasswordField

public PasswordField(GlContext ctx,
                     String text)

PasswordField

public PasswordField(GlContext ctx,
                     String text,
                     int maxLength)
Method Detail

getDisplayText

protected String getDisplayText()
Description copied from class: EditableTextComponent
This method allows a derived class (specifically PasswordField) to display something other than the actual contents of the text field.

Overrides:
getDisplayText in class EditableTextComponent