Source code for ooodev.adapter.form.control.numeric_field_comp

from __future__ import annotations
from typing import cast, TYPE_CHECKING
from ooodev.adapter.awt.uno_control_numeric_field_comp import UnoControlNumericFieldComp
from ooodev.adapter.form.bound_control_partial import BoundControlPartial

if TYPE_CHECKING:
    from com.sun.star.form.control import NumericField


[docs]class NumericFieldComp(UnoControlNumericFieldComp, BoundControlPartial): """Class for NumericField Control"""
[docs] def __init__(self, component: NumericField): """ Constructor Args: component (Any): Component that implements ``com.sun.star.form.control.NumericField`` service. """ UnoControlNumericFieldComp.__init__(self, component=component) BoundControlPartial.__init__(self, component=component, interface=None)
def _ComponentBase__get_supported_service_names(self) -> tuple[str, ...]: """Returns a tuple of supported service names.""" return ("com.sun.star.form.control.NumericField",) @property def component(self) -> NumericField: """NumericField Component""" # pylint: disable=no-member return cast("NumericField", self._ComponentBase__get_component()) # type: ignore