Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: awt ::

interface XTimeField
Description
gives access to the value and settings of a time field.

Methods' Summary
setTime sets the time value which is displayed in the time field.  
getTime returns the time value which is currently displayed in the time field.  
setMin sets the minimum time value that can be entered by the user.  
getMin returns the currently set minimum time value that can be entered by the user.  
setMax sets the maximum time value that can be entered by the user.  
getMax returns the currently set maximum time value that can be entered by the user.  
setFirst sets the first value to be set on POS1 key.  
getFirst returns the currently set first value which is set on POS1 key.  
setLast sets the last value to be set on END key.  
getLast returns the currently set last value which is set on END key.  
setEmpty sets an empty value for the time.  
isEmpty returns whether currently an empty value is set for the time.  
setStrictFormat determines if the format is checked during user input.  
isStrictFormat returns whether the format is currently checked during user input.  
Methods' Details
setTime
[oneway] void
setTime( [in] long  Time );

Description
sets the time value which is displayed in the time field.

The time value must be specified in the format HHMMSShh, where HH are hours, MM are minutes, SS are seconds and hh are hundredth seconds.

getTime
long
getTime();

Description
returns the time value which is currently displayed in the time field.
setMin
[oneway] void
setMin( [in] long  Time );

Description
sets the minimum time value that can be entered by the user.
getMin
long
getMin();

Description
returns the currently set minimum time value that can be entered by the user.
setMax
[oneway] void
setMax( [in] long  Time );

Description
sets the maximum time value that can be entered by the user.
getMax
long
getMax();

Description
returns the currently set maximum time value that can be entered by the user.
setFirst
[oneway] void
setFirst( [in] long  Time );

Description
sets the first value to be set on POS1 key.
getFirst
long
getFirst();

Description
returns the currently set first value which is set on POS1 key.
setLast
[oneway] void
setLast( [in] long  Time );

Description
sets the last value to be set on END key.
getLast
long
getLast();

Description
returns the currently set last value which is set on END key.
setEmpty
void
setEmpty();

Description
sets an empty value for the time.
isEmpty
boolean
isEmpty();

Description
returns whether currently an empty value is set for the time.
setStrictFormat
[oneway] void
setStrictFormat( [in] boolean  bStrict );

Description
determines if the format is checked during user input.
isStrictFormat
boolean
isStrictFormat();

Description
returns whether the format is currently checked during user input.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.