com.jmex.bui
Class BPasswordField

java.lang.Object
  extended by com.jmex.bui.BComponent
      extended by com.jmex.bui.BTextComponent
          extended by com.jmex.bui.BTextField
              extended by com.jmex.bui.BPasswordField
All Implemented Interfaces:
Document.Listener, EditCommands

public class BPasswordField
extends BTextField

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


Field Summary
protected  String _stars
           
 
Fields inherited from class com.jmex.bui.BTextField
_cursp, _cursx, _glyphs, _keymap, _prefWidth, _showCursor, _srect, _text, _txoff
 
Fields inherited from class com.jmex.bui.BTextComponent
_effcols, _effsizes, _haligns, _lineSpacings, _teffects, _textfacts, _valigns
 
Fields inherited from class com.jmex.bui.BComponent
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES
 
Fields inherited from interface com.jmex.bui.text.EditCommands
ACTION, BACKSPACE, CLEAR, CURSOR_LEFT, CURSOR_RIGHT, DELETE, END_OF_LINE, RELEASE_FOCUS, START_OF_LINE
 
Constructor Summary
BPasswordField()
           
BPasswordField(int maxLength)
           
BPasswordField(String text)
           
BPasswordField(String text, int maxLength)
           
 
Method Summary
protected  String getDisplayText()
          This method allows a derived class (specifically BPasswordField) to display something other than the actual contents of the text field.
 
Methods inherited from class com.jmex.bui.BTextField
acceptsFocus, clearGlyphs, computePreferredSize, configureStyle, dispatchEvent, gainedFocus, getDefaultStyleClass, getDocument, getText, layout, lostFocus, recreateGlyphs, renderComponent, setCursorPos, setDocument, setMaxLength, setPreferredWidth, setText, stateDidChange, textInserted, textRemoved, wasAdded, wasRemoved
 
Methods inherited from class com.jmex.bui.BTextComponent
checkNonDefault, checkNonDefaultInt, checkNonDefaultVal, getEffectColor, getEffectSize, getHorizontalAlignment, getLabelConfig, getLineSpacing, getTextEffect, getTextFactory, getTextFactory, getVerticalAlignment
 
Methods inherited from class com.jmex.bui.BComponent
addListener, applyDefaultStates, boundsToString, changeCursor, createTooltipComponent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getCursor, getFocusTarget, getHeight, getHitComponent, getInsets, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getState, getStateCount, getStatePseudoClass, getStyleClass, getTooltipText, getWidth, getWindow, getX, getY, hasFocus, intersectScissorBox, invalidate, isAdded, isEnabled, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, restoreScissorState, setAlpha, setBackground, setBounds, setCursor, setEnabled, setLocation, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleClass, setTooltipRelativeToMouse, setTooltipText, setVisible, updateCursor, 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

BPasswordField

public BPasswordField()

BPasswordField

public BPasswordField(int maxLength)

BPasswordField

public BPasswordField(String text)

BPasswordField

public BPasswordField(String text,
                      int maxLength)
Method Detail

getDisplayText

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

Overrides:
getDisplayText in class BTextField


Copyright © 2008 Michael Bayne. All Rights Reserved.