All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.widgets.IPTextField

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----w3c.tools.widgets.IPTextField

public class IPTextField
extends Panel
implements TextEditable
IPTextField :


Variable Index

 o fields

Constructor Index

 o IPTextField()

Method Index

 o addActionListener(ActionListener)
Adds the specified action listener to recieve action events from this IPTextField.
 o fireActionEvent()
fire a new ActionEvent and process it, if some listeners are listening
 o getMinimumSize()
 o getPreferredSize()
 o getText()
Gets the text that is presented by this IPTextField.
 o main(String[])
 o removeActionListener(ActionListener)
Removes the specified action listener so that it no longer receives action events from IPTextField.
 o setDefault()
Sets the text at its default value
 o setText(String)
Sets the text that is presented by this IPTextField to be the specified text.
 o updated()
Check if the current text value and the default value are different.

Variables

 o fields
 protected TextField fields[]

Constructors

 o IPTextField
 public IPTextField()

Methods

 o addActionListener
 public synchronized void addActionListener(ActionListener al)
Adds the specified action listener to recieve action events from this IPTextField.

Parameters:
al - - the action listener.
 o removeActionListener
 public synchronized void removeActionListener(ActionListener al)
Removes the specified action listener so that it no longer receives action events from IPTextField.

Parameters:
al - - the action listener.
 o fireActionEvent
 protected void fireActionEvent()
fire a new ActionEvent and process it, if some listeners are listening

 o getText
 public String getText()
Gets the text that is presented by this IPTextField.

 o setText
 public void setText(String IPT)
Sets the text that is presented by this IPTextField to be the specified text.

Parameters:
text - - the new text
 o updated
 public boolean updated()
Check if the current text value and the default value are different.

 o setDefault
 public void setDefault()
Sets the text at its default value

 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index