ooodev.adapter.awt.window_partial module
- class ooodev.adapter.awt.window_partial.WindowPartial(component, interface=com.sun.star.awt.XWindow)[source]
Bases:
ComponentPartial
Partial Class for XWindow.
- Parameters:
component (XWindow) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.awt.XWindow)[source]
Constructor
- Parameters:
component (XWindow) – UNO Component that implements
com.sun.star.awt.XWindow
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XWindow
.
- Return type:
None
- add_focus_listener(listener)[source]
Adds a focus listener to the object.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XFocusListener) –
- add_key_listener(listener)[source]
Adds a key listener to the object.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XKeyListener) –
- add_mouse_listener(listener)[source]
Adds a mouse listener to the object.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XMouseListener) –
- add_mouse_motion_listener(listener)[source]
Adds a mouse motion listener to the object.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XMouseMotionListener) –
- add_paint_listener(listener)[source]
Adds a paint listener to the object.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XPaintListener) –
- add_window_listener(listener)[source]
Adds a window listener to the object.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XWindowListener) –
- remove_focus_listener(listener)[source]
Removes the specified focus listener from the listener list.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XFocusListener) –
- remove_key_listener(listener)[source]
Removes the specified key listener from the listener list.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XKeyListener) –
- remove_mouse_listener(listener)[source]
Removes the specified mouse listener from the listener list.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XMouseListener) –
- remove_mouse_motion_listener(listener)[source]
Removes the specified mouse motion listener from the listener list.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XMouseMotionListener) –
- remove_paint_listener(listener)[source]
Removes the specified paint listener from the listener list.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XPaintListener) –
- remove_window_listener(listener)[source]
Removes the specified window listener from the listener list.
- Return type:
None
- Parameters:
listener (com.sun.star.awt.XWindowListener) –
- set_enable(enable)[source]
Enables or disables the window depending on the parameter.
- Return type:
None
- Parameters:
enable (bool) –
- set_pos_size(x, y, width, height, flags=15)[source]
Sets the outer bounds of the window.
- Parameters:
x (int, UnitT) – The x-coordinate of the window. In
Pixels
orUnitT
.y (int, UnitT) – The y-coordinate of the window. In
Pixels
orUnitT
.width (int, UnitT) – The width of the window. In
Pixels
orUnitT
.height (int, UnitT) – The height of the window. In
Pixels
orUnitT
.flags (int, UnitT) – A combination of
com.sun.star.awt.PosSize
flags. Default set toPosSize.POSSIZE
.
- Return type:
None
See also