Class BuildEventArg

class ooodev.utils.builder.build_event_arg.BuildEventArg(module_name, class_name, callback_name, uno_name, optional, check_kind)[source]
Parameters:
  • module_name (str) –

  • class_name (str) –

  • callback_name (str) –

  • uno_name (Tuple[str]) –

  • optional (bool) –

  • check_kind (CheckKind) –

callback_name: str

CallBack for the event. Usually on_lazy_cb.

Expected signature def on_lazy_cb(source: Any, event: ListenerEventArgs, comp: XRefreshable, inst: RefreshEvents)

check_kind: CheckKind

Specifies the check kind. Defaults to CheckKind.INTERFACE.

class_name: str

Ooodev class name such as RefreshEvents.

module_name: str

Ooodev name of the module such as ooodev.adapter.util.refresh_events.

optional: bool

Specifies if the import is optional. If optional the a check is done to see if the component implements the interface.

uno_name: Tuple[str]

Uno name of the class such as com.sun.star.container.XNameAccess.