ooodev.adapter.awt.control_partial module
- class ooodev.adapter.awt.control_partial.ControlPartial(component, interface=com.sun.star.awt.XControl)[source]
Bases:
object
Partial Class for XControl.
- Parameters:
component (XControl) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.awt.XControl)[source]
Constructor
- Parameters:
component (XControl) – UNO Component that implements
com.sun.star.awt.XControl
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XControl
.
- Return type:
None
- add_event_listener(listener)[source]
Adds an event listener to the component.
- Parameters:
listener (XEventListener) – The event listener to be added.
- Return type:
None
- create_peer(toolkit, parent)[source]
Creates a child window on the screen.
If the parent is
None
, then the desktop window of the toolkit is the parent.- Return type:
None
- Parameters:
toolkit (com.sun.star.awt.XToolkit) –
parent (com.sun.star.awt.XWindowPeer) –
- is_design_mode()[source]
Returns
True
if the control is in design mode,False
otherwise.- Return type:
bool
- is_transparent()[source]
Returns
True
if the control is transparent,False
otherwise.- Return type:
bool
- remove_event_listener(listener)[source]
Removes an event listener from the component.
- Parameters:
listener (XEventListener) – The event listener to be removed.
- Return type:
None
- set_context(ctx)[source]
Sets the context of the control.
- Return type:
None
- Parameters:
ctx (com.sun.star.uno.XInterface) –