public class DefaultReadyAction extends Object implements ReadyAction, ActionListener
Action
to be executed to check when it is ready.
If an Action
is canceled, then the remaining Action
are not invoked.Constructor and Description |
---|
DefaultReadyAction(ActionState state,
Action... actions) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ActionListener listener)
It adds a listener that is invoked when this action is ready.
|
void |
cleanup()
Cleanup when it is no longer needed.
|
boolean |
isReady() |
void |
onComplete()
Invoked when an
Action is completed. |
void |
registerListener() |
public DefaultReadyAction(ActionState state, Action... actions)
public void registerListener()
public boolean isReady()
isReady
in interface ReadyAction
true
if ready.public void addListener(ActionListener listener)
ReadyAction
addListener
in interface ReadyAction
listener
- the listener to invoke.public void cleanup()
ReadyAction
cleanup
in interface ReadyAction
public void onComplete()
ActionListener
Action
is completed.onComplete
in interface ActionListener
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.