Interface PageFlow
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultPageFlow
Page Flow runtime abstraction.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified object with thisPageFlow
for equality.getAttribute
(String name) Find and return the attribute model object of thisPageFlow
by thename
.Return an unmodifiable attributes map of thisPageFlow
.getId()
Return the identifier of thePageFlow
instance.Return the currentPageState
instance in thePageFlow
.Return an unmodifiable list of thePageState
of thisPageFlow
.int
hashCode()
Returns the hash code value for thisPageFlow
.boolean
Return true if thisPageFlow
instance is completed.boolean
Return true if thisPageFlow
instance has started.boolean
Return true if thisPageFlow
instance has stopped.void
Send an event to thePageFlow
, which might cause a Page Transition as a result.void
setAttribute
(String name, Object model) Set the attribute by thename
on thisPageFlow
.void
start()
Start thisPageFlow
instance.void
stop()
Stop thisPageFlow
instance.
-
Method Details
-
getId
String getId()Return the identifier of thePageFlow
instance.- Returns:
- the identifier of the
PageFlow
instance
-
isStarted
boolean isStarted()Return true if thisPageFlow
instance has started.- Returns:
- true if this
PageFlow
instance has started
-
start
Start thisPageFlow
instance.- Throws:
PageFlowException
- if it can't start
-
isStopped
boolean isStopped()Return true if thisPageFlow
instance has stopped.- Returns:
- true if this
PageFlow
instance has stopped
-
stop
Stop thisPageFlow
instance.- Throws:
PageFlowException
- if it can't stop
-
isComplete
Return true if thisPageFlow
instance is completed.- Returns:
- true if this
PageFlow
instance is completed - Throws:
PageFlowException
- if any exception occurs
-
getPageState
Return the currentPageState
instance in thePageFlow
.- Returns:
- the current
PageState
instance 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 thePageState
of thisPageFlow
.- Returns:
- an unmodifiable list of the
PageState
of thisPageFlow
- Throws:
PageFlowException
- if any exception occurs
-
getAttribute
Find and return the attribute model object of thisPageFlow
by thename
. Return null if not found.- Parameters:
name
- attribute name- Returns:
- the attribute model object of this
PageFlow
by thename
, null if not found - Throws:
PageFlowException
- if any exception occurs
-
setAttribute
Set the attribute by thename
on 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 thisPageFlow
for equality. -
hashCode
int hashCode()Returns the hash code value for thisPageFlow
.
-