org.millstone.base.event
Interface Action.Handler

Enclosing interface:
Action

public static interface Action.Handler

Interface implemented by classes who wish to handle actions.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Method Summary
 Action[] getActions(java.lang.Object target, java.lang.Object sender)
          Returns the list of actions applicable to this handler.
 void handleAction(Action action, java.lang.Object sender, java.lang.Object target)
          Handles an action for the given target.
 

Method Detail

getActions

public Action[] getActions(java.lang.Object target,
                           java.lang.Object sender)
Returns the list of actions applicable to this handler.

Parameters:
target - The target handler to list actions for. For item containers this is the item id.
sender - The party that would be sending the actions. Most of this is the action container.

handleAction

public void handleAction(Action action,
                         java.lang.Object sender,
                         java.lang.Object target)
Handles an action for the given target. The handler method may just discard the action if it's not suitable.

Parameters:
action - The action to be handled
sender - The sender of the action. This is most often the action container.
target - The target of the action. For item containers this is the item id.


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.