All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.util.html.FormInput

java.lang.Object
   |
   +----com.ibm.as400.util.html.FormInput

public abstract class FormInput
extends Object
implements HTMLTagElement, Serializable
The FormInput class represents an input element in an HTML form.

FormInput objects generate the following events:


Constructor Index

 o FormInput()
Constructs a default FormInput object.
 o FormInput(String)
Constructs a FormInput object with the specified control name.
 o FormInput(String, String)
Constructs a FormInput object with the specified controal name and the initial input value.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a PropertyChangeListener.
 o addVetoableChangeListener(VetoableChangeListener)
Adds the VetoableChangeListener.
 o getName()
Returns the control name of the input field.
 o getSize()
Returns the size of the input field.
 o getTag()
Returns the element tag.
 o getValue()
Returns the initial value of the input field.
 o removePropertyChangeListener(PropertyChangeListener)
Removes the PropertyChangeListener from the internal list.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes the VetoableChangeListener from the internal list.
 o setName(String)
Sets the control name of the input field.
 o setSize(int)
Sets the size of the input field.
 o setValue(String)
Sets the initial value of the input field.
 o toString()
Returns a String representation for the form input tag.

Constructors

 o FormInput
 public FormInput()
Constructs a default FormInput object.

 o FormInput
 public FormInput(String name)
Constructs a FormInput object with the specified control name.

Parameters:
name - The control name of the input field.
 o FormInput
 public FormInput(String name,
                  String value)
Constructs a FormInput object with the specified controal name and the initial input value.

Parameters:
name - The control name of the input field.
value - The initial value of the input field.

Methods

 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. The specified PropertyChangeListener's propertyChange method will be called each time the value of any bound property is changed.

Parameters:
listener - The PropertyChangeListener.
See Also:
removePropertyChangeListener
 o addVetoableChangeListener
 public void addVetoableChangeListener(VetoableChangeListener listener)
Adds the VetoableChangeListener. The specified VetoableChangeListener's vetoableChange method will be called each time the value of any constrained property is changed.

Parameters:
listener - The VetoableChangeListener.
See Also:
removeVetoableChangeListener
 o getName
 public String getName()
Returns the control name of the input field.

Returns:
The control name of the input field.
 o getValue
 public String getValue()
Returns the initial value of the input field.

Returns:
The initial value.
 o getSize
 public int getSize()
Returns the size of the input field. The size refers to the width of the input field in pixels or characters.

Returns:
The field size.
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener listener)
Removes the PropertyChangeListener from the internal list. If the PropertyChangeListener is not on the list, nothing is done.

Parameters:
listener - The PropertyChangeListener.
See Also:
addPropertyChangeListener
 o removeVetoableChangeListener
 public void removeVetoableChangeListener(VetoableChangeListener listener)
Removes the VetoableChangeListener from the internal list. If the VetoableChangeListener is not on the list, nothing is done.

Parameters:
listener - The VetoableChangeListener.
See Also:
addVetoableChangeListener
 o setName
 public void setName(String name) throws PropertyVetoException
Sets the control name of the input field.

Parameters:
name - The control name of the input field.
Throws: PropertyVetoException
If a change is vetoed.
 o setSize
 public void setSize(int size) throws PropertyVetoException
Sets the size of the input field. The size refers to the width of the input field in pixels or characters according to its type.

Parameters:
size - The field size.
Throws: PropertyVetoException
If a change is vetoed.
 o setValue
 public void setValue(String value) throws PropertyVetoException
Sets the initial value of the input field.

Parameters:
value - The initial input value.
Throws: PropertyVetoException
If a change is vetoed.
 o toString
 public String toString()
Returns a String representation for the form input tag.

Returns:
The tag.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index