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:
- PropertyChangeEvent
- VetoableChangeEvent
-
FormInput()
- Constructs a default FormInput object.
-
FormInput(String)
- Constructs a FormInput object with the specified control name.
-
FormInput(String, String)
- Constructs a FormInput object with the specified controal name
and the initial input value.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds the VetoableChangeListener.
-
getName()
- Returns the control name of the input field.
-
getSize()
- Returns the size of the input field.
-
getTag()
- Returns the element tag.
-
getValue()
- Returns the initial value of the input field.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes the PropertyChangeListener from the internal list.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes the VetoableChangeListener from the internal list.
-
setName(String)
- Sets the control name of the input field.
-
setSize(int)
- Sets the size of the input field.
-
setValue(String)
- Sets the initial value of the input field.
-
toString()
- Returns a String representation for the form input tag.
FormInput
public FormInput()
- Constructs a default FormInput object.
FormInput
public FormInput(String name)
- Constructs a FormInput object with the specified control name.
- Parameters:
- name - The control name of the input field.
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.
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
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
getName
public String getName()
- Returns the control name of the input field.
- Returns:
- The control name of the input field.
getValue
public String getValue()
- Returns the initial value of the input field.
- Returns:
- The initial value.
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.
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
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
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.
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.
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.
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