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