|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.wfnm.Webflow
Defines a webflow with a name and a default ownership.
It contains a stack of visited pages and a set of owned objects.
Constructor Summary | |
Webflow(String name,
int defaultOwnership,
PageChangedListener pageChangedListener)
Creates a new Webflow object. |
Method Summary | |
void |
addPage(Page page,
AttributeContainer container)
Forward to a page inside this webflow. |
void |
backToPage(String url,
Set objectSetToRemove,
Map urlMapToClear,
AttributeContainer container)
Back to a page inside this webflow. |
void |
closeWebflow(Set objectSetToRemove,
Map urlMapToClear,
AttributeContainer container)
Closes this webflow. |
int |
getDefaultOwnership()
Gets the default ownership. |
String |
getName()
Gets the name of this webflow. |
Set |
getOwnedObjectSet()
Gets the object set owned by this webflow. |
Stack |
getPageStack()
Gets the page stack. |
Page |
getPreviousPage()
Gets the previous page. |
Page |
getTopPage()
Gets the top page of this webflow (null if the webflow is empty). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Webflow(String name, int defaultOwnership, PageChangedListener pageChangedListener)
name
- the name of this webflowdefaultOwnership
- the default ownershippageChangedListener
- the page changed listenerMethod Detail |
public int getDefaultOwnership()
public String getName()
public Set getOwnedObjectSet()
getOwnedObjectSet
in interface ObjectSetOwner
public Stack getPageStack()
public Page getPreviousPage()
public Page getTopPage()
public void addPage(Page page, AttributeContainer container)
page
- the url of the pagecontainer
- the attribute containerpublic void backToPage(String url, Set objectSetToRemove, Map urlMapToClear, AttributeContainer container)
url
- the url of the pageobjectSetToRemove
- the object set to remove for adding objects to removeurlMapToClear
- the url map to clearcontainer
- the attribute containerpublic void closeWebflow(Set objectSetToRemove, Map urlMapToClear, AttributeContainer container)
objectSetToRemove
- adds to this set all object that has to be removedurlMapToClear
- the url map to clearcontainer
- the attribute container
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |