net.sourceforge.stripes.examples.bugzooky
Class MultiBugActionBean

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
      extended by net.sourceforge.stripes.examples.bugzooky.MultiBugActionBean
All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean

public class MultiBugActionBean
extends BugzookyActionBean

ActionBean that deals with setting up and saving edits to multiple bugs at once. Can also deal with adding multiple new bugs at once.

Author:
Tim Fennell

Constructor Summary
MultiBugActionBean()
           
 
Method Summary
 int[] getBugIds()
          Gets the array of bug IDs the user selected for edit.
 List<Bug> getBugs()
          Simple getter that returns the List of Bugs.
 net.sourceforge.stripes.action.Resolution preEdit()
           
 net.sourceforge.stripes.action.Resolution save()
           
 void setBugIds(int[] bugIds)
          Sets the array of bug IDs the user selected for edit.
 void setBugs(List<Bug> bugs)
          Setter for the list of bugs.
 
Methods inherited from class net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
getContext, populateBug, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiBugActionBean

public MultiBugActionBean()
Method Detail

getBugIds

public int[] getBugIds()
Gets the array of bug IDs the user selected for edit.


setBugIds

public void setBugIds(int[] bugIds)
Sets the array of bug IDs the user selected for edit.


getBugs

public List<Bug> getBugs()
Simple getter that returns the List of Bugs. Not the use of generics syntax - this is necessary to let Stripes know what type of object to create and insert into the list.


setBugs

public void setBugs(List<Bug> bugs)
Setter for the list of bugs.


save

@DefaultHandler
public net.sourceforge.stripes.action.Resolution save()

preEdit

@DontValidate
public net.sourceforge.stripes.action.Resolution preEdit()


© Copyright 2005, Stripes Development Team.