Package muntjac :: Package event :: Module layout_events :: Class ILayoutClickNotifier
[hide private]
[frames] | no frames]

Class ILayoutClickNotifier

source code

object --+
         |
        ILayoutClickNotifier

The interface for adding and removing LayoutClickEvent listeners. By implementing this interface a class explicitly announces that it will generate a LayoutClickEvent when a component inside it is clicked and a LayoutClickListener is registered.


See Also:
LayoutClickListener, LayoutClickEvent
Instance Methods [hide private]
 
addListener(self, listener, iface=None)
Add a click listener to the layout.
source code
 
addCallback(self, callback, eventType=None, *args) source code
 
removeListener(self, listener, iface=None)
Removes an LayoutClickListener.
source code
 
removeCallback(self, callback, eventType=None) 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]

addListener(self, listener, iface=None)

source code 

Add a click listener to the layout. The listener is called whenever the user clicks inside the layout. An event is also triggered when the click targets a component inside a nested layout or Panel, provided the targeted component does not prevent the click event from propagating. A caption is not considered part of a component.

The child component that was clicked is included in the LayoutClickEvent.

Use removeListener to remove the listener.

Parameters:
  • listener - The listener to add

removeListener(self, listener, iface=None)

source code 

Removes an LayoutClickListener.

Parameters:
  • listener - LayoutClickListener to be removed