jp.terasoluna.fw.web.struts.reset
Class ActionReset

java.lang.Object
  extended by jp.terasoluna.fw.web.struts.reset.ActionReset

public class ActionReset
extends java.lang.Object

Bean class that retains configuration information to reset each action path.

The configuration information which is loaded from form reset definition file (reset.xml) is stored and retained in this class for each action path. Configuration information of reset target field is retained as instance of FieldReset.
The instance of this class is stored in ResetterResources instance. In servlet context, this instance is stored with the key name as RESETTER_RESOURCES + "module name".

See Also:
ResetterPlugIn, Resetter, FieldReset, ResetterResources, FormEx, DynaValidatorActionFormEx, ValidatorActionFormEx

Field Summary
private  java.util.Map<java.lang.String,FieldReset> fieldResets
          Map that retains the field element which is the reset process target.
private  java.lang.String path
          Action path which is the reset process target.
 
Constructor Summary
ActionReset()
           
 
Method Summary
 java.util.Iterator<java.lang.String> getFieldNames()
          Fetches the list of field name which is the reset process target.
 java.lang.String getPath()
          Fetches the action path which is the reset process target.
 boolean isSelectField(java.lang.String fieldName)
          Fetches the flag for selecting the specified range reset function of targeted field.
 void setFieldReset(FieldReset fieldReset)
          Sets the field element which is the reset process target.
 void setPath(java.lang.String path)
          Sets the action path which is the reset process target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

private java.lang.String path
Action path which is the reset process target.


fieldResets

private java.util.Map<java.lang.String,FieldReset> fieldResets
Map that retains the field element which is the reset process target.

Constructor Detail

ActionReset

public ActionReset()
Method Detail

setFieldReset

public void setFieldReset(FieldReset fieldReset)
Sets the field element which is the reset process target.

Parameters:
fieldReset - Field element which is the reset process target.

getPath

public java.lang.String getPath()
Fetches the action path which is the reset process target.

Returns:
Action path which is the reset process target

setPath

public void setPath(java.lang.String path)
Sets action path which is the reset process target.

Parameters:
path - Action path which is the reset process target

getFieldNames

public java.util.Iterator<java.lang.String> getFieldNames()
Fetches the list of field name which is the reset process target.

Returns:
List of field name which is the reset process target

isSelectField

public boolean isSelectField(java.lang.String fieldName)
Fetches the flag for selecting the specified range reset function of target field.

Parameters:
fieldName - Field name
Returns:
Flag for selecting the specified range reset function.