Note that although this class is a subclass of Composite,
it does not make sense to add children to it, or set a layout on it.
Note
Only one of the styles DATE, TIME, or CALENDAR may be specified, and only one of the styles SHORT, MEDIUM, or LONG may be specified. The DROP_DOWN style is only valid with the DATE style.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Color | |
| pack-priv Calendar | |
| pack-priv long | calendarHandle
Major handles of this class. |
| pack-priv long | containerHandle
Major handles of this class. |
| pack-priv FieldPosition | |
| private DateFormat | |
| pack-priv int | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv Button | |
| pack-priv long | editableHandle
GTK4 field used to hold the main GtkEditable widget. |
| pack-priv Color | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv Locale | |
| pack-priv static final int | |
| private int | |
| private int | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv Listener | mouseEventListener
Used when SWT.DROP_DOWN is set |
| pack-priv DateTime | |
| pack-priv Listener | |
| pack-priv Listener | |
| pack-priv Shell | |
| pack-priv Point | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv long | spinButtonHandle
Major handles of this class. |
| pack-priv long | textEntryHandle
Major handles of this class. |
| pack-priv StringBuilder | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSelectionListener(SelectionListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the control is selected by the user, by sending
it one of the messages defined in the |
| private int | calculateCalendarXpos(Point calendarSize, Rectangle coordsRelativeToScreen, Rectangle displayRect, int width)
|
| private int | calculateCalendarYpos(Point containerBounds, Rectangle coordsRelativeToScreen, int height, Rectangle displayRect)
|
| pack-priv static int | |
| protected void | checkSubclass()
Checks that this class can be subclassed.
|
| pack-priv boolean | |
| pack-priv void | |
| pack-priv Point | Returns: text entry size to hold the longest possible formatted text.Compute the native text entry size when the formatted text inside the entry is at the longest length possible. |
| pack-priv Point | computeSizeInPixels(int wHint, int hHint, boolean changed)
Overrides org. |
| pack-priv Rectangle | computeTrimInPixels(int x, int y, int width, int height)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| private void | |
| private void | |
| private void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| private long | |
| pack-priv GdkRGBA | |
| pack-priv void | |
| pack-priv void | dropDownCalendar(boolean
true if the calendar is suppose to drop down. drop)Called when pressing the SWT.DROP_DOWN button on a Date Field |
| pack-priv long | |
| private void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv int | |
| private static int | Returns: theCalendar field or -1 if this is not a valid FieldpositionExtracts the calendarfield for the given fieldposition |
| private static int | Returns: the calendarfield coresponding to theFieldExtracts the calendarfield transforming HOUR1 types to HOUR0 |
| pack-priv String | |
| pack-priv void | |
| public int | Returns: a positive integer beginning with 1Returns the receiver's date, or day of the month. |
| private static FieldPosition | Returns: a newFieldPositionthe iterator to use iterator)Searches the current postion of the iterator for a |
| private static FieldPosition | Returns: aFieldPosition init to this Field and begin/end indexthe field to use field,the iterator to extract the data from iterator)creates a |
| pack-priv DateFormat | |
| pack-priv String | |
| pack-priv GtkBorder | Returns: GtkBorder object that holds the padding values.Gets the border padding structure, which can be used to determine the inner padding of the text field. |
| public int | |
| public int | |
| public int | |
| pack-priv String | |
| private FieldPosition | Returns: the nextFieldPositionthe Field to start from field)Given a |
| private FieldPosition | |
| public int | |
| pack-priv String | |
| pack-priv String | Returns: Spinner's textReturns a string containing a copy of the contents of the receiver's text field, or an empty string if there are no contents. |
| pack-priv String | |
| pack-priv String | |
| pack-priv Point | Returns: the highlighted (selected) text or position of cursorReturns the selected text. |
| public int | |
| pack-priv boolean | gtk4_key_press_event(long
the corresponding controller responsible for capturing the event controller, int the pressed key keyval, int raw code of the pressed key keycode, int the bitmask, representing the state of the modifier keys and pointer buttons state, long the GdkEvent captured event)Overrides org. |
| pack-priv long | gtk_button_release_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | gtk_day_selected_double_click(long widget)
Overrides org. |
| pack-priv void | gtk_gesture_release_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)Overrides org. |
| pack-priv long | gtk_key_press_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | gtk_output(long widget)
Overrides org. |
| pack-priv void | |
| private boolean | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| private final void | |
| private final void | |
| private final void | |
| pack-priv void | |
| pack-priv void | |
| private boolean | |
| private boolean | |
| private boolean | |
| pack-priv boolean | |
| private boolean | |
| private static boolean | Returns: true if considered the same, false
otherwisefirst position to compare p1, FieldPosition second position to compare p2)Check if the given |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private char | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeSelectionListener(SelectionListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the control is selected by the user. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setBackground(Color
the new color (or null) color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
| pack-priv void | |
| pack-priv void | setBackgroundGdkRGBA(long context, long handle, GdkRGBA rgba)
Overrides org. |
| pack-priv void | setBoundsInPixels(int x, int y, int width, int height)
Overrides org. |
| private void | |
| public void | setDate(int
an integer between 1752 and 9999 year, int an integer between 0 and 11 month, int a positive integer beginning with 1 day)Sets the receiver's year, month, and day in a single operation. |
| public void | setDay(int
a positive integer beginning with 1 day)Sets the receiver's date, or day of the month, to the specified day. |
| private void | |
| public void | setEnabled(boolean
the new enabled state enabled)Overrides org. true,
and disables it otherwise.
|
| pack-priv void | |
| public void | setFont(Font
the new font (or null) font)Overrides org. |
| pack-priv void | |
| public void | setForeground(Color
the new color (or null) color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
| pack-priv void | |
| public void | |
| public void | setMenu(Menu
the new pop up menu menu)Overrides org. |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setTime(int
an integer between 0 and 23 hours, int an integer between 0 and 59 minutes, int an integer between 0 and 59 seconds)Sets the receiver's hours, minutes, and seconds in a single operation. |
| public void | |
| private void | showPopupShell(Point containerBounds, Point calendarSize, Rectangle coordsRelativeToScreen, Rectangle displayRect)
|
| private boolean | |
| pack-priv void | |
| private FieldPosition | |
| private int |