Package muntjac :: Package event :: Module action :: Class IHandler
[hide private]
[frames] | no frames]

Class IHandler

source code

object --+
         |
        IHandler
Known Subclasses:

Interface implemented by classes who wish to handle actions.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
getActions(self, target, sender)
Gets the list of actions applicable to this handler.
source code
 
handleAction(self, a, sender, target)
Handles an action for the given target.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getActions(self, target, sender)

source code 

Gets 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.
Returns:
the list of Action

handleAction(self, a, sender, target)

source code 

Handles an action for the given target. The handler method may just discard the action if it's not suitable.

Parameters:
  • a - 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.