|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.ip2.HandlerAction
public class HandlerAction
One of the ways in which an agenda item might be handled.
HandlerActions are added to AgendaItem
s by
ItemHandler
s.
Nested Class Summary | |
---|---|
static class |
HandlerAction.Automatic
Handles an item by invoking an item-handler's handle method. |
static class |
HandlerAction.AutomaticWhenBound
Handles an item by invoking an item-handler's handle method,
but does not become ready until all of the variables
in its AgendaItem's pattern are bound. |
static class |
HandlerAction.Manual
Indicates that the item has been handled by the user. |
static class |
HandlerAction.NoAction
Handles an item by doing nothing. |
static class |
HandlerAction.NotApplicable
Used to indicate the the item does not apply in the current situation. |
Field Summary | |
---|---|
protected java.lang.String |
shortDescription
Briefly describes what this action does. |
Constructor Summary | |
---|---|
HandlerAction()
Constructor used by subclasses. |
Method Summary | |
---|---|
boolean |
canAlwaysBeTakenNow()
Indicates whether this action can be taken now regardless of the current status of the AgendaItem . |
void |
computeStatus()
Called when something has happened that might have changed this action's ready status. |
java.lang.String |
getActionDescription()
Returns a brief description of how this action would handle an item. |
ActionUnreadyReason |
getUnreadyReason()
Returns an object that explains why this handler is not ready to be used. |
void |
handle(AgendaItem item)
Handle the item in the manner appropriate to this handler-action. |
boolean |
isReady()
Indicates whether this action is ready to be used or else is waiting for something that would enable it to be used. |
boolean |
isStillValid()
Called when something has happened that might mean this action no longer makes sense and should be deleted. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String shortDescription
Constructor Detail |
---|
public HandlerAction()
Method Detail |
---|
public java.lang.String getActionDescription()
public void handle(AgendaItem item)
public boolean canAlwaysBeTakenNow()
AgendaItem
.
It is called by the item's
AgendaItem.actionCanBeTakenNow(HandlerAction)
method
and, if it returns true, overrides the value that would
be returned by that method.
The method defined in the HandlerAction class returns false.
public boolean isStillValid()
Typically, this method is called as a consequence of
an ItemHandler
calling the controllers's
checkActionValidity method.
PanelController.checkActionValidity(ItemHandler handler,
Object reason)
public boolean isReady()
getUnreadyReason()
public void computeStatus()
public ActionUnreadyReason getUnreadyReason()
isReady()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |