| com.methodhead.res.ResForm
ResForm | final public class ResForm extends DynaValidatorForm implements Serializable(Code) | | An action form that performs validation and initializes properties
for the JSPs.
|
Method Summary | |
protected void | addSubdirOptions(List options, String name, File base, String path) Recursively adds LabelValueBeans for path and its
subdirectories to options, rooting the search at base,
and using name a logical name for that base. | public List | getDestinationOptions(FileManager fileManager) Returns options for all authorized paths and their subdirectories. | protected String | getRelativePath(File base, File f) Returns the part of f's path relative to base. | protected FileTree | getTree(ResPolicy policy, HttpServletRequest request) Returns the tree in the session, building it if necessary. | public void | reset(ActionMapping mapping, HttpServletRequest request) Resets the form by determining valid destinations for the user, setting
the directory tree, and building a list of FoldingTreeNodes for
form.path and form.filen, setting
form.files to this list. | public ActionErrors | validate(ActionMapping mapping, HttpServletRequest request) |
addSubdirOptions | protected void addSubdirOptions(List options, String name, File base, String path)(Code) | | Recursively adds LabelValueBeans for path and its
subdirectories to options, rooting the search at base,
and using name a logical name for that base.
|
getDestinationOptions | public List getDestinationOptions(FileManager fileManager)(Code) | | Returns options for all authorized paths and their subdirectories.
|
getRelativePath | protected String getRelativePath(File base, File f)(Code) | | Returns the part of f's path relative to base.
|
reset | public void reset(ActionMapping mapping, HttpServletRequest request)(Code) | | Resets the form by determining valid destinations for the user, setting
the directory tree, and building a list of FoldingTreeNodes for
form.path and form.filen, setting
form.files to this list. Each node has its label set to the file
name, and its user object set to the File it represents.
|
|
|