uic.model
Class UICSimpleAction.QueuedPolicy
java.lang.Object
uic.model.UICSimpleAction.QueuedPolicy
- All Implemented Interfaces:
- UICSimpleAction.ExecutePolicy
- Enclosing class:
- UICSimpleAction
- public static class UICSimpleAction.QueuedPolicy
- extends Object
- implements UICSimpleAction.ExecutePolicy
This policy will queue each action to be executed serially, while disabling the action when running.
When an action comes in it will be disabled and queued; after executing it will be
enabled again.
This way only one action can be executed at the same time and additional actions will
be ignored untill the first is done.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UICSimpleAction.QueuedPolicy
public UICSimpleAction.QueuedPolicy()
schedule
public void schedule(UICSimpleAction action,
Object eventSource)
- Description copied from interface:
UICSimpleAction.ExecutePolicy
- schedule an action according to policy.
- Specified by:
schedule in interface UICSimpleAction.ExecutePolicy
- Parameters:
action - the action to be scheduled.eventSource - the source object that came with an optional event that
caused this action to be executed.
Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence