ooodev.adapter.awt.time_field_partial module

class ooodev.adapter.awt.time_field_partial.TimeFieldPartial(component, interface=com.sun.star.awt.XTimeField)[source]

Bases: object

Partial class for XTimeField.

Parameters:
  • component (XTimeField) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XTimeField)[source]

Constructor

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

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

Return type:

None

get_first()[source]

Gets the currently set first value which is set on POS1 key.

Returns:

The first value.

Return type:

time

get_last()[source]

Gets the currently set last value which is set on END key.

Returns:

The last value.

Return type:

time

get_max()[source]

Gets the currently set maximum time value that can be entered by the user.

Returns:

The maximum time value.

Return type:

time

get_min()[source]

Gets the currently set minimum time value that can be entered by the user.

Returns:

The minimum time value.

Return type:

time

get_time()[source]

Gets the time value which is currently displayed in the time field.

Returns:

The time value.

Return type:

time

is_empty()[source]

Gets whether currently an empty value is set for the time.

Return type:

bool

is_strict_format()[source]

Gets whether the format is currently checked during user input.

Return type:

bool

set_empty()[source]

Sets an empty value for the time.

Return type:

None

set_first(value)[source]

Sets the first value to be set on POS1 key.

Parameters:

value (time) – The first value.

Return type:

None

set_last(value)[source]

Sets the last value to be set on END key.

Parameters:

value (time) – The last value.

Return type:

None

set_max(value)[source]

Sets the maximum time value that can be entered by the user.

Parameters:

value (time) – The maximum time value.

Return type:

None

set_min(value)[source]

Sets the minimum time value that can be entered by the user.

Parameters:

value (time) – The minimum time value.

Return type:

None

set_strict_format(strict)[source]

Determines if the format is checked during user input.

Return type:

None

Parameters:

strict (bool) –

set_time(value)[source]

Sets the time value which is displayed in the time field.

Parameters:

value (time) – The time value.

Return type:

None