Class 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

      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 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 Summary

      Constructors 
      Constructor Description
      CDT()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, 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_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
      • BUTTON_AUTO

        public static final 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).
        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
        Style constant for horizontal alignment of DropCombo's contents (value is 1<<11).
        See Also:
        Constant Field Values
      • VERTICAL

        public static final int VERTICAL
        Style constant for vertical alignment of DropCombo's contents (value is 1<<12).
        See Also:
        Constant Field Values
      • READ_ONLY

        public static final int READ_ONLY
        Style constant for creating the text as Read Only (value is 1<<13).
        See Also:
        Constant Field Values
      • COMPACT

        public static final int COMPACT
        Style 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_ROLL
        Style 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_FIELDS
        Style 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 SPINNER
        Style 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_DISCRETE
        Style 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_HOUR
        Style 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_HOUR
        Style constant to force the use of a 24 hour clock (value is 1<<29).
        See Also:
        Constant Field Values
    • Constructor Detail

      • CDT

        public CDT()