ooodev.adapter.util.refreshable_partial module

class ooodev.adapter.util.refreshable_partial.RefreshablePartial(component, interface=com.sun.star.util.XRefreshable)[source]

Bases: object

Partial Class XRefreshable.

Parameters:
  • component (XRefreshable) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.util.XRefreshable)[source]

Constructor

Parameters:
  • component (XRefreshable) – UNO Component that implements com.sun.star.util.XRefreshable interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XRefreshable.

Return type:

None

add_refresh_listener(listener)[source]

Adds the specified listener to receive the event “refreshed.”

Return type:

None

Parameters:

listener (com.sun.star.util.XRefreshListener) –

refresh()[source]

refreshes the data of the object from the connected data source.

Return type:

None

remove_refresh_listener(listener)[source]

removes the specified listener.

Return type:

None

Parameters:

listener (com.sun.star.util.XRefreshListener) –

ooodev.adapter.util.refreshable_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder