|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.jbbres.lib.actions.workflow.WorkflowDefinitionEvent
public class WorkflowDefinitionEvent
A semantic event which indicates that a change during the Workflow
event related to the workflow definition occurred.
This event is generated by a Workflow
during one of the stage of
the action definition (such as at the adding or removing an action from the
workflow).
The event is passed to every every WorkflowDefinitionListener
object
that registered to receive such events using the workflow'
addWorkflowDefinitionListener(WorkflowDefinitionListener)
method.
The object that implements the WorkflowDefinitionListener
interface gets this WorkflowDefinitionEvent
when the event
occurs.
v1.1.0:
Constructor Summary | |
---|---|
WorkflowDefinitionEvent(Workflow source,
Action action,
int oldPosition)
Instantiates a new event. |
|
WorkflowDefinitionEvent(Workflow source,
Element element)
Instantiates a new event. |
|
WorkflowDefinitionEvent(Workflow source,
WorkflowDefinitionNotification notification)
Instantiates a new event. |
Method Summary | |
---|---|
int |
getActionNewPosition()
Returns the new position of the action that is at the origin of the event. |
int |
getActionPreviousPosition()
Returns the previous position of the action that is at the origin of the event. |
Element |
getChangedElement()
Returns the element that is at the origin of the event. |
WorkflowDefinitionNotification |
getNotification()
Returns the workflow definition notification associated to the event, if any. |
Workflow |
getSourceWorkflow()
Returns the workflow that has raised the event. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WorkflowDefinitionEvent(Workflow source, Action action, int oldPosition)
source
- - the workflow source of the eventaction
- - the action that is the cause of the eventoldPosition
- - the previous position of the action, before the events
occurs.public WorkflowDefinitionEvent(Workflow source, Element element)
source
- - the workflow source of the eventelement
- - the element that is the cause of the eventpublic WorkflowDefinitionEvent(Workflow source, WorkflowDefinitionNotification notification)
source
- - the workflow source of the eventelement
- - the element that is the cause of the eventMethod Detail |
---|
public Workflow getSourceWorkflow()
public Element getChangedElement()
public int getActionNewPosition()
public int getActionPreviousPosition()
public WorkflowDefinitionNotification getNotification()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |