javax.rad.genui.component
Class UIPasswordField

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<C>
          extended by javax.rad.genui.component.AbstractUITextField<IPasswordField>
              extended by javax.rad.genui.component.UIPasswordField
All Implemented Interfaces:
ITranslatable, ILabel, IPasswordField, ITextField, IAlignmentConstants, IComponent, IResource, INamedObject

public class UIPasswordField
extends AbstractUITextField<IPasswordField>
implements IPasswordField

Platform and technology independent password field. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
Fields inherited from class javax.rad.genui.UIComponent
lLastTranslationModified, parent
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
  UIPasswordField()
          Creates a new instance of UIPasswordField.
protected UIPasswordField(IPasswordField pField)
          Creates a new instance of UIPasswordField with the given password field.
  UIPasswordField(String pText)
          Creates a new instance of UIPasswordField.
 
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 javax.rad.genui.component.AbstractUITextField
getColumns, getHorizontalAlignment, getText, getVerticalAlignment, isBorderVisible, isEditable, selectAll, setBorderVisible, setColumns, setEditable, setEnabled, setHorizontalAlignment, setText, setVerticalAlignment, updateTranslation
 
Methods inherited from class javax.rad.genui.UIComponent
addNotify, beforeAddNotify, capture, createCellFormatter, createNodeFormatter, debug, error, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getResource, getSize, getToolTipText, getTranslation, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, removeNotify, requestFocus, setBackground, setBounds, setBounds, setCursor, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPreferredSize, setPreferredSize, setSize, setSize, setToolTipText, setTranslation, setTranslationEnabled, setVisible, translate
 
Methods inherited from class javax.rad.genui.UIResource
equals, getUIResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.component.ITextField
getColumns, isBorderVisible, isEditable, selectAll, setBorderVisible, setColumns, setEditable
 
Methods inherited from interface javax.rad.ui.component.ILabel
getText, setText
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Constructor Detail

UIPasswordField

public UIPasswordField()
Creates a new instance of UIPasswordField.

See Also:
IPasswordField

UIPasswordField

protected UIPasswordField(IPasswordField pField)
Creates a new instance of UIPasswordField with the given password field.

Parameters:
pField - the password field
See Also:
IPasswordField

UIPasswordField

public UIPasswordField(String pText)
Creates a new instance of UIPasswordField.

Parameters:
pText - the text.
See Also:
IPasswordField
Method Detail

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.