    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.tools.widgets.IPTextField

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

public class IPTextField
extends Panel
implements TextEditable

IPTextField :

##

fields

##

IPTextField()

##

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

##

fields

     protected TextField fields[]

##

IPTextField

     public IPTextField()

##

addActionListener

     public synchronized void addActionListener(ActionListener al)

  Adds the specified action listener to recieve action events from this IPTextField.

  Parameters:
    al - - the action listener.

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.

fireActionEvent

     protected void fireActionEvent()

  fire a new ActionEvent and process it, if some listeners are listening

getText

     public String getText()

  Gets the text that is presented by this IPTextField.

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

updated

     public boolean updated()

  Check if the current text value and the default value are different.

setDefault

     public void setDefault()

  Sets the text at its default value

getMinimumSize

     public Dimension getMinimumSize()

  Overrides:
    getMinimumSize in class Container

getPreferredSize

     public Dimension getPreferredSize()

  Overrides:
    getPreferredSize in class Container

main

     public static void main(String args[])

    All Packages  Class Hierarchy  This Package  Previous  Next  Index