org.eclipse.swt.nebula.widgets.cdatetime
Class CDT

java.lang.Object
  extended by org.eclipse.swt.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.


Field Summary
static int BORDER
          Style constant requesting a border.
static int BUTTON_ALWAYS
          Style constant for a DropCombo whose button is always visible (value is 1<<10).
static int BUTTON_AUTO
          Style constant for a DropCombo whose button is automatically set to be visible or not depending on its focus state (value is 1<<11).
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_MANUAL
          Style constant for a DropCombo whose button is never visible (value is 1<<12).
static int BUTTON_NEVER
          Style constant for a DropCombo whose button is never visible.
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
           
static int CLOCK_24_HOUR
           
static int CLOCK_DISCRETE
           
static int COMPACT
           
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
           
static int NONE
          Style constant indicating no style (value is 0).
static int READ_ONLY
           
static int SIMPLE
          Style constant for simple combo behavior (value is 1<<1).
static int SPINNER
           
static int TAB_FIELDS
          Style constant indicating that the TAB key should be used to traverse the CDateTime's fields (value is 1<<19).
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
           
static boolean win32
          true if the platform is win32, false otherwise
 
Constructor Summary
CDT()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

carbon

public static final boolean carbon
true if the platform is carbon, false otherwise


gtk

public static final boolean gtk
true if the platform is gtk, false otherwise


win32

public static final boolean win32
true if the platform is win32, false otherwise


NONE

public static final int NONE
Style constant indicating no style (value is 0).

See Also:
Constant Field Values

BORDER

public static final int BORDER
Style 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_DOWN
Style constant for drop down combo behavior (value is 1<<1).

See Also:
Constant Field Values

SIMPLE

public static final int SIMPLE
Style constant for simple combo behavior (value is 1<<1).

See Also:
Constant Field Values

BUTTON_ALWAYS

public static final int BUTTON_ALWAYS
Style constant for a DropCombo whose button is always visible (value is 1<<10).

See Also:
BUTTON_AUTO, BUTTON_MANUAL, BUTTON_NEVER, AbstractCombo.setButtonVisibility(int), Constant Field Values

BUTTON_AUTO

public static final int BUTTON_AUTO
Style constant for a DropCombo whose button is automatically set to be visible or not depending on its focus state (value is 1<<11).

See Also:
BUTTON_AUTO, BUTTON_MANUAL, BUTTON_NEVER, AbstractCombo.setButtonVisibility(int), Constant Field Values

BUTTON_MANUAL

public static final int BUTTON_MANUAL
Style constant for a DropCombo whose button is never visible (value is 1<<12).

See Also:
BUTTON_ALWAYS, BUTTON_AUTO, BUTTON_NEVER, AbstractCombo.setButtonVisibility(int), Constant Field Values

BUTTON_NEVER

public static final int BUTTON_NEVER
Style constant for a DropCombo whose button is never visible. The difference between this and BUTTON_MANUAL is that the drop contents are never created (value is 1<<13).

See Also:
BUTTON_ALWAYS, BUTTON_AUTO, BUTTON_MANUAL, AbstractCombo.setButtonVisibility(int), Constant Field Values

BUTTON_LEFT

public static final int BUTTON_LEFT
Style 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_RIGHT
Style constant for a DropCombo with its button to the right of the text (value is 1<<15).

See Also:
BUTTON_LEFT, Constant Field Values

TEXT_LEFT

public static final int TEXT_LEFT
Style 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_LEAD
Style 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_RIGHT
Style 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_TRAIL
Style 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 HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

READ_ONLY

public static final int READ_ONLY
See Also:
Constant Field Values

DATE_SHORT

public static final int DATE_SHORT
Style constant for showing a short date format (value is 1<<2).

See Also:
CDateTime.setPattern(String), CDateTime.setFormat(int), Constant Field Values

DATE_MEDIUM

public static final int DATE_MEDIUM
Style constant for showing a medium date format (value is 1<<3).

See Also:
CDateTime.setPattern(String), CDateTime.setFormat(int), Constant Field Values

DATE_LONG

public static final int DATE_LONG
Style constant for showing a long date format (value is 1<<4).

See Also:
CDateTime.setPattern(String), CDateTime.setFormat(int), Constant Field Values

TIME_SHORT

public static final int TIME_SHORT
Style constant for showing a short time format (value is 1<<6).

See Also:
CDateTime.setPattern(String), CDateTime.setFormat(int), Constant Field Values

TIME_MEDIUM

public static final int TIME_MEDIUM
Style constant for showing a medium time format (value is 1<<7).

See Also:
CDateTime.setPattern(String), CDateTime.setFormat(int), Constant Field Values

COMPACT

public static final int COMPACT
See Also:
Constant Field Values

TAB_FIELDS

public static final int TAB_FIELDS
Style constant indicating that the TAB key should be used to traverse the CDateTime's fields (value is 1<<19).

See Also:
Constant Field Values

SPINNER

public static final int SPINNER
See Also:
Constant Field Values

CLOCK_DISCRETE

public static final int CLOCK_DISCRETE
See Also:
Constant Field Values

CLOCK_12_HOUR

public static final int CLOCK_12_HOUR
See Also:
Constant Field Values

CLOCK_24_HOUR

public static final int CLOCK_24_HOUR
See Also:
Constant Field Values
Constructor Detail

CDT

public CDT()