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