public class CDT
extends java.lang.Object
Note that, unlike the SWT class, these constants apply for all platforms (upon which CDateTime has been tested) because the CDateTime is a custom widget.
Modifier and Type | Class and Description |
---|---|
static class |
CDT.Key |
static class |
CDT.PickerPart |
static class |
CDT.PickerType |
Modifier and Type | Field and Description |
---|---|
static int |
ADD_ON_ROLL
Style constant specifying the CDateTime to call Calendar.add() instead of
Calendar.roll() on fieldAdjust() (value is 1<<19).
|
static int |
BORDER
Style constant requesting a border.
|
static int |
BUTTON_AUTO
Style constant for a DropCombo with its button visibility set to auto,
meaning that it will be visible only when the widget has keyboard focus
(value is 1<<18).
|
static int |
BUTTON_LEFT
Style constant for a DropCombo with its button to the Left of the text
(value is 1<<14).
|
static int |
BUTTON_RIGHT
Style constant for a DropCombo with its button to the right of the text
(value is 1<<15).
|
static boolean |
carbon
true if the platform is carbon, false otherwise
|
static int |
CLOCK_12_HOUR
Style constant to force the use of a 12 hour clock (value is
1<<28).
|
static int |
CLOCK_24_HOUR
Style constant to force the use of a 24 hour clock (value is
1<<29).
|
static int |
CLOCK_DISCRETE
Style constant indicating that the CDateTime should created with a
discrete clock, rather than an analog clock (value is 1<<27).
|
static int |
COMPACT
Style constant specifying the CDateTime be created in compact mode (value
is 1<<15).
|
static int |
DATE_LONG
Style constant for showing a long date format (value is 1<<4).
|
static int |
DATE_MEDIUM
Style constant for showing a medium date format (value is 1<<3).
|
static int |
DATE_SHORT
Style constant for showing a short date format (value is 1<<2).
|
static int |
DROP_DOWN
Style constant for drop down combo behavior (value is 1<<1).
|
static boolean |
gtk
true if the platform is gtk, false otherwise
|
static int |
HORIZONTAL
Style constant for horizontal alignment of DropCombo's contents (value is
1<<11).
|
static int |
MULTI
not yet supported
|
static int |
NONE
Style constant indicating no style (value is 0).
|
static java.lang.String |
PickerPart |
static int |
READ_ONLY
Style constant for creating the text as Read Only (value is 1<<13).
|
static int |
SIMPLE
Style constant for simple combo behavior (value is 1<<1).
|
static int |
SPINNER
Style constant indicating that the CDateTime should created with a
spinner (value is 1<<26).
|
static int |
TAB_FIELDS
Style constant indicating that the TAB key should be used to traverse the
CDateTime's fields (value is 1<<25).
|
static int |
TEXT_LEAD
Style constant for left aligning the text of a DropCombo (value is
1<<16).
|
static int |
TEXT_LEFT
Style constant for left aligning the text of a DropCombo (value is
1<<16).
|
static int |
TEXT_RIGHT
Style constant for right aligning the text of a DropCombo (value is
1<<17).
|
static int |
TEXT_TRAIL
Style constant for right aligning the text of a DropCombo (value is
1<<17).
|
static int |
TIME_MEDIUM
Style constant for showing a medium time format (value is 1<<7).
|
static int |
TIME_SHORT
Style constant for showing a short time format (value is 1<<6).
|
static int |
VERTICAL
Style constant for vertical alignment of DropCombo's contents (value is
1<<12).
|
static boolean |
win32
true if the platform is win32, false otherwise
|
Constructor and Description |
---|
CDT() |
public static final java.lang.String PickerPart
public static final boolean carbon
public static final boolean gtk
public static final boolean win32
public static final int NONE
public static final int BORDER
SWT.BORDER
,
Constant Field Valuespublic static final int DROP_DOWN
public static final int SIMPLE
public static final int BUTTON_LEFT
BUTTON_RIGHT
,
Constant Field Valuespublic static final int BUTTON_RIGHT
BUTTON_LEFT
,
Constant Field Valuespublic static final int BUTTON_AUTO
BUTTON_LEFT
,
Constant Field Valuespublic static final int TEXT_LEFT
TEXT_RIGHT
,
SWT.LEFT
,
Constant Field Valuespublic static final int TEXT_LEAD
TEXT_RIGHT
,
SWT.LEAD
,
Constant Field Valuespublic static final int TEXT_RIGHT
TEXT_LEFT
,
SWT.RIGHT
,
Constant Field Valuespublic static final int TEXT_TRAIL
TEXT_LEFT
,
SWT.TRAIL
,
Constant Field Valuespublic static final int HORIZONTAL
public static final int VERTICAL
public static final int READ_ONLY
public static final int DATE_SHORT
public static final int DATE_MEDIUM
public static final int DATE_LONG
public static final int TIME_SHORT
public static final int TIME_MEDIUM
public static final int COMPACT
public static final int ADD_ON_ROLL
public static final int TAB_FIELDS
public static final int SPINNER
public static final int CLOCK_DISCRETE
public static final int CLOCK_12_HOUR
public static final int CLOCK_24_HOUR
public static final int MULTI