Interface PageFlow
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultPageFlow
Page Flow runtime abstraction.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified object with thisPageFlowfor equality.getAttribute(String name) Find and return the attribute model object of thisPageFlowby thename.Return an unmodifiable attributes map of thisPageFlow.getId()Return the identifier of thePageFlowinstance.Return the currentPageStateinstance in thePageFlow.Return an unmodifiable list of thePageStateof thisPageFlow.inthashCode()Returns the hash code value for thisPageFlow.booleanReturn true if thisPageFlowinstance is completed.booleanReturn true if thisPageFlowinstance has started.booleanReturn true if thisPageFlowinstance has stopped.voidSend an event to thePageFlow, which might cause a Page Transition as a result.voidsetAttribute(String name, Object model) Set the attribute by thenameon thisPageFlow.voidstart()Start thisPageFlowinstance.voidstop()Stop thisPageFlowinstance.
-
Method Details
-
getId
String getId()Return the identifier of thePageFlowinstance.- Returns:
- the identifier of the
PageFlowinstance
-
isStarted
boolean isStarted()Return true if thisPageFlowinstance has started.- Returns:
- true if this
PageFlowinstance has started
-
start
Start thisPageFlowinstance.- Throws:
PageFlowException- if it can't start
-
isStopped
boolean isStopped()Return true if thisPageFlowinstance has stopped.- Returns:
- true if this
PageFlowinstance has stopped
-
stop
Stop thisPageFlowinstance.- Throws:
PageFlowException- if it can't stop
-
isComplete
Return true if thisPageFlowinstance is completed.- Returns:
- true if this
PageFlowinstance is completed - Throws:
PageFlowException- if any exception occurs
-
getPageState
Return the currentPageStateinstance in thePageFlow.- Returns:
- the current
PageStateinstance in thePageFlow - Throws:
PageFlowException- if any exception occurs
-
sendEvent
Send an event to thePageFlow, which might cause a Page Transition as a result.- Parameters:
event- event- Throws:
PageFlowException- if any exception occurs
-
getPageStates
Return an unmodifiable list of thePageStateof thisPageFlow.- Returns:
- an unmodifiable list of the
PageStateof thisPageFlow - Throws:
PageFlowException- if any exception occurs
-
getAttribute
Find and return the attribute model object of thisPageFlowby thename. Return null if not found.- Parameters:
name- attribute name- Returns:
- the attribute model object of this
PageFlowby thename, null if not found - Throws:
PageFlowException- if any exception occurs
-
setAttribute
Set the attribute by thenameon thisPageFlow.- Parameters:
name- attribute namemodel- attribute model object- Throws:
PageFlowException- if any exception occurs
-
getAttributeMap
Return an unmodifiable attributes map of thisPageFlow.- Returns:
- an unmodifiable attributes map of this
PageFlow - Throws:
PageFlowException- if any exception occurs
-
equals
Compares the specified object with thisPageFlowfor equality. -
hashCode
int hashCode()Returns the hash code value for thisPageFlow.
-