Class CDT
java.lang.Object
org.eclipse.nebula.widgets.cdatetime.CDT
public class CDT
extends java.lang.Object
This class provides access to the the public constants provided by the
CDateTime widget. This class is analogous to the SWT class of the Standard
Widget Toolkit (SWT) and has been created separately to avoid collisions.
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CDT.Key
static class
CDT.PickerPart
static class
CDT.PickerType
-
Field Summary
Fields Modifier and Type Field 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 otherwisestatic 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 otherwisestatic int
HORIZONTAL
Style constant for horizontal alignment of DropCombo's contents (value is 1<<11).static int
MULTI
not yet supportedstatic 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 Summary
Constructors Constructor Description CDT()
-
Method Summary
-
Field Details
-
PickerPart
public static final java.lang.String PickerPart- See Also:
- Constant Field Values
-
carbon
public static final boolean carbontrue if the platform is carbon, false otherwise -
gtk
public static final boolean gtktrue if the platform is gtk, false otherwise -
win32
public static final boolean win32true if the platform is win32, false otherwise -
NONE
public static final int NONEStyle constant indicating no style (value is 0).- See Also:
- Constant Field Values
-
BORDER
public static final int BORDERStyle constant requesting a border. This value will be converted to its SWT equivalent and passed to the SWT super (value is 1<<0).- See Also:
SWT.BORDER
, Constant Field Values
-
DROP_DOWN
public static final int DROP_DOWNStyle constant for drop down combo behavior (value is 1<<1).- See Also:
- Constant Field Values
-
SIMPLE
public static final int SIMPLEStyle constant for simple combo behavior (value is 1<<1).- See Also:
- Constant Field Values
-
BUTTON_LEFT
public static final int BUTTON_LEFTStyle constant for a DropCombo with its button to the Left of the text (value is 1<<14).- See Also:
BUTTON_RIGHT
, Constant Field Values
-
BUTTON_RIGHT
public static final int BUTTON_RIGHTStyle constant for a DropCombo with its button to the right of the text (value is 1<<15).- See Also:
BUTTON_LEFT
, Constant Field Values
-
BUTTON_AUTO
public static final int BUTTON_AUTOStyle 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).- See Also:
BUTTON_LEFT
, Constant Field Values
-
TEXT_LEFT
public static final int TEXT_LEFTStyle constant for left aligning the text of a DropCombo (value is 1<<16).- See Also:
TEXT_RIGHT
,SWT.LEFT
, Constant Field Values
-
TEXT_LEAD
public static final int TEXT_LEADStyle constant for left aligning the text of a DropCombo (value is 1<<16).- See Also:
TEXT_RIGHT
,SWT.LEAD
, Constant Field Values
-
TEXT_RIGHT
public static final int TEXT_RIGHTStyle constant for right aligning the text of a DropCombo (value is 1<<17).- See Also:
TEXT_LEFT
,SWT.RIGHT
, Constant Field Values
-
TEXT_TRAIL
public static final int TEXT_TRAILStyle constant for right aligning the text of a DropCombo (value is 1<<17).- See Also:
TEXT_LEFT
,SWT.TRAIL
, Constant Field Values
-
HORIZONTAL
public static final int HORIZONTALStyle constant for horizontal alignment of DropCombo's contents (value is 1<<11).- See Also:
- Constant Field Values
-
VERTICAL
public static final int VERTICALStyle constant for vertical alignment of DropCombo's contents (value is 1<<12).- See Also:
- Constant Field Values
-
READ_ONLY
public static final int READ_ONLYStyle constant for creating the text as Read Only (value is 1<<13).- See Also:
- Constant Field Values
-
DATE_SHORT
public static final int DATE_SHORTStyle constant for showing a short date format (value is 1<<2). -
DATE_MEDIUM
public static final int DATE_MEDIUMStyle constant for showing a medium date format (value is 1<<3). -
DATE_LONG
public static final int DATE_LONGStyle constant for showing a long date format (value is 1<<4). -
TIME_SHORT
public static final int TIME_SHORTStyle constant for showing a short time format (value is 1<<6). -
TIME_MEDIUM
public static final int TIME_MEDIUMStyle constant for showing a medium time format (value is 1<<7). -
COMPACT
public static final int COMPACTStyle constant specifying the CDateTime be created in compact mode (value is 1<<15).- See Also:
- Constant Field Values
-
ADD_ON_ROLL
public static final int ADD_ON_ROLLStyle constant specifying the CDateTime to call Calendar.add() instead of Calendar.roll() on fieldAdjust() (value is 1<<19).- See Also:
- Constant Field Values
-
TAB_FIELDS
public static final int TAB_FIELDSStyle constant indicating that the TAB key should be used to traverse the CDateTime's fields (value is 1<<25).- See Also:
- Constant Field Values
-
SPINNER
public static final int SPINNERStyle constant indicating that the CDateTime should created with a spinner (value is 1<<26).- See Also:
- Constant Field Values
-
CLOCK_DISCRETE
public static final int CLOCK_DISCRETEStyle constant indicating that the CDateTime should created with a discrete clock, rather than an analog clock (value is 1<<27).- See Also:
- Constant Field Values
-
CLOCK_12_HOUR
public static final int CLOCK_12_HOURStyle constant to force the use of a 12 hour clock (value is 1<<28).- See Also:
- Constant Field Values
-
CLOCK_24_HOUR
public static final int CLOCK_24_HOURStyle constant to force the use of a 24 hour clock (value is 1<<29).- See Also:
- Constant Field Values
-
MULTI
public static final int MULTInot yet supported- See Also:
- Constant Field Values
-
-
Constructor Details
-
CDT
public CDT()
-