ooodev.adapter.awt.date_field_partial module

class ooodev.adapter.awt.date_field_partial.DateFieldPartial(component, interface=com.sun.star.awt.XDateField)[source]

Bases: object

Partial class for XDateField.

Parameters:
  • component (XDateField) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_date()[source]

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

Returns:

The date value.

Return type:

date

get_first()[source]

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

Returns:

The first value.

Return type:

date

get_last()[source]

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

Returns:

The last value.

Return type:

date

get_max()[source]

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

Returns:

The maximum date value.

Return type:

date

get_min()[source]

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

Returns:

The minimum date value.

Return type:

date

is_empty()[source]

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

Return type:

bool

is_long_format()[source]

Gets if the long date format is currently used.

Return type:

bool

is_strict_format()[source]

Gets whether the format is currently checked during user input.

Return type:

bool

set_date(value)[source]

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

Parameters:

value (date) – The date value to be set.

Return type:

None

set_empty()[source]

Sets an empty value for the date.

Return type:

None

set_first(value)[source]

Sets the first value to be set on POS1 key.

Parameters:

value (date) – The first value to be set.

Return type:

None

set_last(value)[source]

Sets the last value to be set on END key.

Parameters:

value (date) – The last value to be set.

Return type:

None

set_long_format(long)[source]

Determines if the long date format is to be used.

Return type:

None

Parameters:

long (bool) –

set_max(value)[source]

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

Parameters:

value (date) – The maximum date value to be set.

Return type:

None

set_min(value)[source]

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

Parameters:

value (date) – The minimum date value to be set.

Return type:

None

set_strict_format(strict)[source]

determines if the format is checked during user input.

Return type:

None

Parameters:

strict (bool) –