fi.hut.tml.xsmiles.gui.components.awt
Class AWTInput
java.lang.Object
fi.hut.tml.xsmiles.gui.components.general.ComponentBase
fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
fi.hut.tml.xsmiles.gui.components.awt.AWTTextComponent
fi.hut.tml.xsmiles.gui.components.awt.AWTInput
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.FocusListener, XComponent, XInput, XSecret, XText
- Direct Known Subclasses:
- AWTTextArea
- public class AWTInput
- extends AWTTextComponent
- implements XInput, XSecret
textinput line
this is extended from AWTComponent, which will add captions and styling etc
- Author:
- Mikko Honkala, Juha Vierinen
|
Field Summary |
protected char |
echoChar
the action for enter keypress |
protected boolean |
isSecret
|
|
Method Summary |
void |
addActionListener(java.awt.event.ActionListener al)
the default background color for this component
null = transparent. |
java.awt.Component |
createContent()
creates the content component |
java.awt.Dimension |
getMinimumSize()
return the minimum size for this component at zoom level 1.0 |
java.lang.String |
getPassword()
|
void |
init()
in init the subclass always creates its component first and then calls
super.init |
void |
removeActionListener(java.awt.event.ActionListener al)
|
void |
removeBorders()
|
void |
setEnabled(boolean b)
|
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTTextComponent |
addFocusListener, addTextListener, focusGained, focusLost, getDefaultBackgroundColor, getEditable, getText, removeFocusListener, removeTextListener, setEditable, setText |
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase |
addMouseListener, getAddableComponent, getComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeMouseListener, setBounds, setDefaultSize, setFocus, setFont, setForeground, setInputMode, setStyle, setVisible, setZoom, sizeComponent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent |
addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom |
echoChar
protected char echoChar
- the action for enter keypress
isSecret
protected boolean isSecret
AWTInput
public AWTInput(GUI gui)
AWTInput
public AWTInput(char passwdchar,
GUI gui)
init
public void init()
- in init the subclass always creates its component first and then calls
super.init
- Overrides:
init in class AWTTextComponent
getMinimumSize
public java.awt.Dimension getMinimumSize()
- return the minimum size for this component at zoom level 1.0
- Overrides:
getMinimumSize in class ComponentBase
createContent
public java.awt.Component createContent()
- creates the content component
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword in interface XSecret
- Returns:
- Return the password currently typed in.
addActionListener
public void addActionListener(java.awt.event.ActionListener al)
- the default background color for this component
null = transparent.
- Specified by:
addActionListener in interface XComponent- Overrides:
addActionListener in class ComponentBase
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled in interface XComponent- Overrides:
setEnabled in class ComponentBase
- Parameters:
b - Active or not active
removeActionListener
public void removeActionListener(java.awt.event.ActionListener al)
- Specified by:
removeActionListener in interface XComponent- Overrides:
removeActionListener in class ComponentBase
removeBorders
public void removeBorders()
- Specified by:
removeBorders in interface XInput
X-Smiles 1.2