net.sourceforge.stripes.examples.bugzooky
Class SingleBugActionBean
java.lang.Object
net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
net.sourceforge.stripes.examples.bugzooky.SingleBugActionBean
- All Implemented Interfaces:
- net.sourceforge.stripes.action.ActionBean
public class SingleBugActionBean
- extends BugzookyActionBean
ActionBean that provides method for editing a single bug in detail. Includes an
event for pre-populating the ActionBean on the way in to an edit screen, and a
single event for saving an existing or new bug. Uses a FileBean property to
support the uploading of a File concurrent with other edits.
- Author:
- Tim Fennell
Method Summary |
Bug |
getBug()
|
net.sourceforge.stripes.action.FileBean |
getNewAttachment()
|
net.sourceforge.stripes.action.Resolution |
preEdit()
Loads a bug on to the form ready for editing. |
net.sourceforge.stripes.action.Resolution |
save()
Saves (or updates) a bug, and then returns the user to the bug list. |
net.sourceforge.stripes.action.Resolution |
saveAndAgain()
Saves or updates a bug, and then returns to the edit page to add another just like it. |
void |
setBug(Bug bug)
|
void |
setNewAttachment(net.sourceforge.stripes.action.FileBean newAttachment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleBugActionBean
public SingleBugActionBean()
getBug
public Bug getBug()
setBug
public void setBug(Bug bug)
getNewAttachment
public net.sourceforge.stripes.action.FileBean getNewAttachment()
setNewAttachment
public void setNewAttachment(net.sourceforge.stripes.action.FileBean newAttachment)
preEdit
@DontValidate
public net.sourceforge.stripes.action.Resolution preEdit()
- Loads a bug on to the form ready for editing.
save
@DefaultHandler
public net.sourceforge.stripes.action.Resolution save()
throws IOException
- Saves (or updates) a bug, and then returns the user to the bug list.
- Throws:
IOException
saveAndAgain
public net.sourceforge.stripes.action.Resolution saveAndAgain()
throws IOException
- Saves or updates a bug, and then returns to the edit page to add another just like it.
- Throws:
IOException
© Copyright 2005, Stripes Development Team.