com.sibvisions.rad.ui.swing.impl.component
Class SwingPasswordField
java.lang.Object
com.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
com.sibvisions.rad.ui.swing.impl.SwingScrollComponent<C,TC>
com.sibvisions.rad.ui.swing.impl.component.SwingTextComponent<C,C>
com.sibvisions.rad.ui.swing.impl.component.SwingTextField<JPasswordField>
com.sibvisions.rad.ui.swing.impl.component.SwingPasswordField
- All Implemented Interfaces:
- KeyListener, MouseListener, EventListener, ILabel, IPasswordField, ITextField, IAlignmentConstants, IComponent, IContainer, IResource
public class SwingPasswordField
- extends SwingTextField<JPasswordField>
- implements IPasswordField
The SwingPasswordField is the IPasswordField
implementation for swing.
- See Also:
TextField,
JPasswordField
|
Method Summary |
char |
getEchoChar()
Returns the character to be used for echoing. |
void |
setEchoChar(char pChar)
Sets the echo character for this JPasswordField. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent |
getBackground, getComponent, getCursor, getFont, getForeground, getName, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setForeground, setName, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBounds, getFactory, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getSize, getVerticalAlignment, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setBounds, setFactory, setLocation, setMaximumSize, setMinimumSize, setParent, setPreferredSize, setSize, setVerticalAlignment, setVisible |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
SwingPasswordField
public SwingPasswordField()
- Creates a new instance of
SwingPasswordField.
getEchoChar
public char getEchoChar()
- Returns the character to be used for echoing. The default is '*'.
- Specified by:
getEchoChar in interface IPasswordField
- Returns:
- the echo character, 0 if unset
setEchoChar
public void setEchoChar(char pChar)
- Sets the echo character for this
JPasswordField.
Note that this is largely a suggestion, since the
view that gets installed can use whatever graphic techniques
it desires to represent the field. Setting a value of 0 indicates
that you wish to see the text as it is typed, similar to
the behavior of a standard JTextField.
- Specified by:
setEchoChar in interface IPasswordField
- Parameters:
pChar - the echo character to display
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.