ooodev.adapter.form.loadable_partial module

class ooodev.adapter.form.loadable_partial.LoadablePartial(component, interface=None)[source]

Bases: object

Partial Class for XLoadable.

This interface does not really provide an own functionality, it is only for easier runtime identification of form components.

Parameters:
  • component (XLoadable) –

  • interface (UnoInterface | None) –

__init__(component, interface=None)[source]

Constructor

Parameters:
  • component (XLoadable) – UNO Component that implements com.sun.star.form.XLoadable.

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

Return type:

None

add_load_listener(listener)[source]

Adds a listener to be notified when the data is loaded.

Return type:

None

Parameters:

listener (com.sun.star.form.XLoadListener) –

is_loaded()[source]

Returns whether the data is loaded.

Return type:

bool

load()[source]

Loads the data.

Return type:

None

reload()[source]

Does a smart refresh of the object.

Return type:

None

remove_load_listener(listener)[source]

Removes a listener from the list of load listeners.

Return type:

None

Parameters:

listener (com.sun.star.form.XLoadListener) –

unload()[source]

Unloads the data.

Return type:

None