ooodev.adapter.awt.numeric_field_partial module
- class ooodev.adapter.awt.numeric_field_partial.NumericFieldPartial(component, interface=com.sun.star.awt.XNumericField)[source]
Bases:
object
Partial class for XNumericField.
- Parameters:
component (XNumericField) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.awt.XNumericField)[source]
Constructor
- Parameters:
component (XNumericField) – UNO Component that implements
com.sun.star.awt.XNumericField
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XNumericField
.
- Return type:
None
- get_first()[source]
Gets the currently set first value which is set on POS1 key.
- Return type:
float
- get_max()[source]
Gets the currently set maximum value that can be entered by the user.
- Return type:
float
- get_min()[source]
Gets the currently set minimum value that can be entered by the user.
- Return type:
float
- get_spin_size()[source]
Gets the currently set increment value for the spin button.
- Return type:
float
- get_value()[source]
returns the value which is currently displayed in the numeric field.
- Return type:
float
- is_strict_format()[source]
Gets whether the format is currently checked during user input.
- Return type:
bool
- set_decimal_digits(digits)[source]
Sets the number of decimals.
- Return type:
None
- Parameters:
digits (int) –
- set_first(value)[source]
Sets the first value to be set on POS1 key.
- Return type:
None
- Parameters:
value (float) –
- set_last(value)[source]
Sets the last value to be set on END key.
- Return type:
None
- Parameters:
value (float) –
- set_max(value)[source]
Sets the maximum value that can be entered by the user.
- Return type:
None
- Parameters:
value (float) –
- set_min(value)[source]
Sets the minimum value that can be entered by the user.
- Return type:
None
- Parameters:
value (float) –
- set_spin_size(value)[source]
Sets the increment value for the spin button.
- Return type:
None
- Parameters:
value (float) –