|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2demo.InputFormModel
public class InputFormModel
A JavaBean that represents the data represented by
InputForm.
| Field Summary | |
|---|---|
private java.util.Map<java.lang.String,java.lang.Boolean> |
checkBoxes
Field that represents the checkBoxes field of type checkBoxes |
protected int |
hash
The field used to store pre-computed hashCode. |
protected static int |
HASH
The default value to use as the base for hashCode. |
private java.util.List<ListItem> |
listBox
Field that represents the listBox field of type listBox |
private java.beans.PropertyChangeSupport |
propertyChangeSupport
The property change event dispatcher. |
private java.util.List<ListItem> |
selectField
Field that represents the selectField field of type selectField |
private java.lang.String |
textArea
Field that represents the textArea field of type textArea |
private java.lang.String |
textField
Field that represents the textField field of type textField |
| Constructor Summary | |
|---|---|
InputFormModel()
Default constructor. |
|
InputFormModel(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes,
java.util.List<ListItem> listBox,
java.util.List<ListItem> selectField,
java.lang.String textArea,
java.lang.String textField)
Designated constructor. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to this bean. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
int |
compareTo(InputFormModel object)
Implementation of the Comparable interface. |
boolean |
equals(java.lang.Object object)
Compare the specified object with this object for equality. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Reports a bound property change to the registerd PropertyChangeListeners. |
java.util.Map<java.lang.String,java.lang.Boolean> |
getCheckBoxes()
Returns the value of checkBoxes. |
java.util.List<ListItem> |
getListBox()
Returns the value of listBox. |
java.util.List<ListItem> |
getSelectField()
Returns the value of selectField. |
java.lang.String |
getTextArea()
Returns the value of textArea. |
java.lang.String |
getTextField()
Returns the value of textField. |
int |
hashCode()
Return a hash code for this object. |
void |
jdoPostLoad()
Called after the values are loaded from the data store into this instance. |
void |
jdoPreClear()
Called before the values in the instance are cleared. |
void |
jdoPreDelete()
Called before the instance is deleted. |
void |
jdoPreStore()
Called before the values are stored from this instance to the data store. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from this bean. |
void |
setCheckBoxes(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes)
Sets the value of checkBoxes. |
void |
setListBox(java.util.List<ListItem> listBox)
Sets the value of listBox. |
void |
setSelectField(java.util.List<ListItem> selectField)
Sets the value of selectField. |
void |
setTextArea(java.lang.String textArea)
Sets the value of textArea. |
void |
setTextField(java.lang.String textField)
Sets the value of textField. |
java.lang.String |
toString()
Return a String representation of the fields of this class. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int HASH
protected int hash
private java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes
private java.util.List<ListItem> listBox
private java.util.List<ListItem> selectField
private java.lang.String textArea
private java.lang.String textField
private transient java.beans.PropertyChangeSupport propertyChangeSupport
| Constructor Detail |
|---|
public InputFormModel()
public InputFormModel(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes,
java.util.List<ListItem> listBox,
java.util.List<ListItem> selectField,
java.lang.String textArea,
java.lang.String textField)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
true if the specified object is of the
same type as this object, and the values of the fields
are equal.
equals in class java.lang.Objectobject - The object that is to compared with this object.
true if the values of
the class fields are the same.public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(InputFormModel object)
Comparable interface.
Compares this object with the specified object for order. Returns
a negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object.
The comparison is done by comparing the hashCode() values
of the objects.
compareTo in interface java.lang.Comparable<InputFormModel>object - - The object with which this class is to
be compared. No class type checking is done.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneable interface. No special actions are
performed. This method simply allows public access to the
Object.clone method.
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - If the super-class implementation
throws an error.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
bean.
Delegates handling to propertyChangeSupport
listener - The listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
bean.
Delegates handling to propertyChangeSupport
listener - The listener to be removed.
protected void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
PropertyChangeListeners.
Delegates handling to propertyChangeSupport
propertyName - The name of the changed property.oldValue - The previous value of the property.newValue - The present value of the property.public final java.util.Map<java.lang.String,java.lang.Boolean> getCheckBoxes()
checkBoxes.
public final void setCheckBoxes(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes)
checkBoxes. Resets hash.
checkBoxes - The value to set.public final java.util.List<ListItem> getListBox()
listBox.
public final void setListBox(java.util.List<ListItem> listBox)
listBox. Resets hash.
listBox - The value to set.public final java.util.List<ListItem> getSelectField()
selectField.
public final void setSelectField(java.util.List<ListItem> selectField)
selectField. Resets hash.
selectField - The value to set.public final java.lang.String getTextArea()
textArea.
public final void setTextArea(java.lang.String textArea)
textArea. Resets hash.
textArea - The value to set.public final java.lang.String getTextField()
textField.
public final void setTextField(java.lang.String textField)
textField. Resets hash.
textField - The value to set.public void jdoPostLoad()
jdoPostLoad in interface javax.jdo.listener.LoadCallbackpublic void jdoPreStore()
hash using hashCode().
jdoPreStore in interface javax.jdo.listener.StoreCallbackpublic void jdoPreClear()
jdoPreClear in interface javax.jdo.listener.ClearCallbackpublic void jdoPreDelete()
jdoPreDelete in interface javax.jdo.listener.DeleteCallback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||