jp.terasoluna.fw.web.struts.form
Interface FormEx

All Known Implementing Classes:
DynaValidatorActionFormEx, ValidatorActionFormEx

public interface FormEx

This interface defines the methods common to ValidatorActionFormEx and DynaValidatorActionFormEx.

TERASOLUNA framework internally accesses action form through the object of this interface and hence, the difference between each form is not visible.

See Also:
ValidatorActionFormEx, DynaValidatorActionFormEx

Method Summary
 int getIndexCount(java.lang.String name)
          Fetches the count of the value of the property of specified name.
 java.lang.Object getIndexedValue(java.lang.String name, int index)
          Fetches the property value of specified index.
 boolean isModified()
          Fetches threshold flag.
 void setIndexedValue(java.lang.String name, int index, java.lang.Object value)
          Sets the property value to the specified position of index.
 void setModified(boolean modified)
          Sets threshold flag.
 

Method Detail

getIndexedValue

java.lang.Object getIndexedValue(java.lang.String name,
                                 int index)
Fetches the property value of specified index.

Parameters:
name - Property name to be fetched
index - Index to be fetched
Returns:
Property value

getIndexCount

int getIndexCount(java.lang.String name)
Fetches the count of value of the property of specified name.

Parameters:
name - Property name to be fetched
Returns:
Property value

Returns 0 when unable to fetch the property name.


setIndexedValue

void setIndexedValue(java.lang.String name,
                     int index,
                     java.lang.Object value)
Sets the property value to the specified position of index.

Parameters:
name - Indexed property name to be set
index - Index position to be set
value - Property value to be set

isModified

boolean isModified()
Fetches threshold value flag.

Returns:
modified flag

setModified

void setModified(boolean modified)
Sets modified flag.

Parameters:
modified - flag to indicate that value has been modified