org.formaria.swt
Class Password

java.lang.Object
  extended by Text
      extended by org.formaria.swt.Password
All Implemented Interfaces:
TextHolder

public class Password
extends Text
implements TextHolder

A wrapper for the Swing JPasswordField class, adding an echo character

Copyright (c) Formaria Ltd.,
License: see license.txt $Revision: 2.5 $


Constructor Summary
Password(java.lang.Object parent)
          Create a new password component
 
Method Summary
protected  void checkSubclass()
          Suppress the subclassing exception
 java.lang.String getToolTip()
          Get the tooltip text
 void setText(java.lang.String text)
          Set the text
 void setToolTip(java.lang.String text)
          Set the tooltip text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.formaria.aria.TextHolder
getText
 

Constructor Detail

Password

public Password(java.lang.Object parent)
Create a new password component

Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception


setText

public void setText(java.lang.String text)
Set the text

Specified by:
setText in interface TextHolder
Parameters:
text - the text

setToolTip

public void setToolTip(java.lang.String text)
Set the tooltip text

Parameters:
text - the new text

getToolTip

public java.lang.String getToolTip()
Get the tooltip text

Returns:
the existing text if any