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

Class LayoutClickEvent

source code

      object --+            
               |            
util.EventObject --+        
                   |        
  ui.component.Event --+    
                       |    
 mouse_events.ClickEvent --+
                           |
                          LayoutClickEvent

An event fired when the layout has been clicked. The event contains information about the target layout (component) and the child component that was clicked. If no child component was found it is set to null.

Instance Methods [hide private]
 
__init__(self, source, mouseEventDetails, clickedComponent, childComponent)
Constructs a new event with the specified source component.
source code
 
getClickedComponent(self)
Returns the component that was clicked, which is somewhere inside the parent layout on which the listener was registered.
source code
 
getChildComponent(self)
Returns the direct child component of the layout which contains the clicked component.
source code

Inherited from mouse_events.ClickEvent: getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey

Inherited from ui.component.Event: getComponent

Inherited from util.EventObject: getSource

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

Class Variables [hide private]

Inherited from mouse_events.ClickEvent: BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, mouseEventDetails, clickedComponent, childComponent)
(Constructor)

source code 

Constructs a new event with the specified source component.

Parameters:
  • source - the source component of the event
Overrides: object.__init__
(inherited documentation)

getClickedComponent(self)

source code 

Returns the component that was clicked, which is somewhere inside the parent layout on which the listener was registered.

For the direct child component of the layout, see getChildComponent.

Returns:
clicked Component, None if none found

getChildComponent(self)

source code 

Returns the direct child component of the layout which contains the clicked component.

For the clicked component inside that child component of the layout, see getClickedComponent.

Returns:
direct child Component of the layout which contains the clicked Component, null if none found