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.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv GdkRGBA | |
| pack-priv double | |
| pack-priv long | |
| pack-priv int | |
| pack-priv int | |
| pack-priv long | |
| pack-priv long | |
| pack-priv int | |
| public static final int | LIMIT
the operating system limit for the number of characters that the text field in an instance of this class can hold |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addModifyListener(ModifyListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the receiver's text is modified, by sending
it one of the messages defined in the |
| public void | addSelectionListener(SelectionListener
the listener which should be notified when the control is selected by the user 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 |
| pack-priv void | addVerifyListener(VerifyListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the receiver's text is verified, by sending
it one of the messages defined in the |
| pack-priv static int | |
| protected void | checkSubclass()
Checks that this class can be subclassed.
|
| pack-priv boolean | |
| 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. |
| public void | |
| pack-priv void | |
| public void | |
| pack-priv GdkRGBA | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv int | |
| pack-priv GdkRGBA | |
| pack-priv String | |
| public int | |
| public int | Returns: the incrementReturns the amount that the receiver's value will be modified by when the up/down arrows are pressed. |
| public int | |
| public int | |
| public int | Returns: the page incrementReturns the amount that the receiver's position will be modified by when the page up/down keys are pressed. |
| public int | |
| public String | Returns: the receiver'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. |
| public int | Returns: the text limitReturns the maximum number of characters that the receiver's text field is capable of holding. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | gtk_delete_text(long widget, long start_pos, long end_pos)
|
| pack-priv long | gtk_event_after(long widget, long gdkEvent)
|
| pack-priv long | gtk_focus_out_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_insert_text(long widget, long new_text, long new_text_length, long position)
|
| pack-priv long | gtk_key_press_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_populate_popup(long widget, long menu)
Overrides org. |
| pack-priv long | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeModifyListener(ModifyListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the receiver's text is modified. |
| 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 | removeVerifyListener(VerifyListener
the listener which should be notified listener)Removes the listener from the collection of listeners who will be notified when the control is verified. |
| pack-priv void | setBackgroundGdkRGBA(long context, long handle, GdkRGBA rgba)
Overrides org. |
| pack-priv void | |
| public void | setDigits(int
the new digits (must be greater than or equal to zero) value)Sets the number of decimal places used by the receiver. |
| public void | setIncrement(int
the new increment (must be greater than zero) value)Sets the amount that the receiver's value will be modified by when the up/down arrows are pressed to the argument, which must be at least one. |
| public void | setMaximum(int
the new maximum, which must be greater than or equal to the current minimum value)Sets the maximum value that the receiver will allow. |
| public void | setMinimum(int
the new minimum, which must be less than or equal to the current maximum value)Sets the minimum value that the receiver will allow. |
| public void | setPageIncrement(int
the page increment (must be greater than zero) value)Sets the amount that the receiver's position will be modified by when the page up/down keys are pressed to the argument, which must be at least one. |
| public void | setSelection(int
the new selection (must be zero or greater) value)Sets the selection, which is the receiver's position, to the argument. |
| public void | setTextLimit(int
new text limit limit)Sets the maximum number of characters that the receiver's text field is capable of holding to be the argument. |
| public void | setValues(int
the new selection value selection, int the new minimum value minimum, int the new maximum value maximum, int the new digits value digits, int the new increment value increment, int the new pageIncrement value pageIncrement)Sets the receiver's selection, minimum value, maximum value, digits, increment and page increment all at once. |
| pack-priv boolean | |
| pack-priv String |
| background | back to summary |
|---|---|
| pack-priv GdkRGBA background | |
| climbRate | back to summary |
|---|---|
| pack-priv double climbRate | |
| entryHandle | back to summary |
|---|---|
| pack-priv long entryHandle | |
| fixEnd | back to summary |
|---|---|
| pack-priv int fixEnd | |
| fixStart | back to summary |
|---|---|
| pack-priv int fixStart | |
| gdkEventKey | back to summary |
|---|---|
| pack-priv long gdkEventKey | |
| imContext | back to summary |
|---|---|
| pack-priv long imContext | |
| lastEventTime | back to summary |
|---|---|
| pack-priv int lastEventTime | |
| LIMIT | back to summary |
|---|---|
| public static final int LIMIT the operating system limit for the number of characters that the text field in an instance of this class can hold
| |
| MIN_ARROW_WIDTH | back to summary |
|---|---|
| pack-priv static final int MIN_ARROW_WIDTH | |
| Spinner | back to summary |
|---|---|
| public Spinner(Composite parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| addModifyListener | back to summary |
|---|---|
| public void addModifyListener(ModifyListener listener) Adds the listener to the collection of listeners who will
be notified when the receiver's text is modified, by sending
it one of the messages defined in the
| |
| addSelectionListener | back to summary |
|---|---|
| public void addSelectionListener(SelectionListener 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
| |
| addVerifyListener | back to summary |
|---|---|
| pack-priv void addVerifyListener(VerifyListener listener) Adds the listener to the collection of listeners who will
be notified when the receiver's text is verified, by sending
it one of the messages defined in the
| |
| checkStyle | back to summary |
|---|---|
| pack-priv static int checkStyle(int style) | |
| checkSubclass | back to summary |
|---|---|
| protected void checkSubclass() Overrides org. Doc from org. Checks that this class can be subclassed.
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Important Note By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion. The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
| |
| checkSubwindow | back to summary |
|---|---|
| pack-priv boolean checkSubwindow() Overrides org.
| |
| computeSizeInPixels | back to summary |
|---|---|
| pack-priv Point computeSizeInPixels(int wHint, int hHint, boolean changed) Overrides org.
| |
| computeTrimInPixels | back to summary |
|---|---|
| pack-priv Rectangle computeTrimInPixels(int x, int y, int width, int height) Overrides org.
| |
| copy | back to summary |
|---|---|
| public void copy() Copies the selected text. The current selection is copied to the clipboard.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| cut | back to summary |
|---|---|
| public void cut() Cuts the selected text. The current selection is first copied to the clipboard and then deleted from the widget.
| |
| defaultBackground | back to summary |
|---|---|
| pack-priv GdkRGBA defaultBackground() Overrides org.
| |
| deregister | back to summary |
|---|---|
| pack-priv void deregister() Overrides org.
| |
| enterExitHandle | back to summary |
|---|---|
| pack-priv long enterExitHandle() Overrides org.
| |
| eventSurface | back to summary |
|---|---|
| pack-priv long eventSurface() Overrides org.
| |
| eventWindow | back to summary |
|---|---|
| pack-priv long eventWindow() Overrides org.
| |
| filterKey | back to summary |
|---|---|
| pack-priv boolean filterKey(long event) Overrides org.
| |
| fixIM | back to summary |
|---|---|
| pack-priv void fixIM() | |
| getBorderWidthInPixels | back to summary |
|---|---|
| pack-priv int getBorderWidthInPixels() Overrides org.
| |
| getContextBackgroundGdkRGBA | back to summary |
|---|---|
| pack-priv GdkRGBA getContextBackgroundGdkRGBA() Overrides org.
| |
| getDecimalSeparator | back to summary |
|---|---|
| pack-priv String getDecimalSeparator() | |
| getDigits | back to summary |
|---|---|
| public int getDigits() Returns the number of decimal places used by the receiver.
| |
| getIncrement | back to summary |
|---|---|
| public int getIncrement() Returns the amount that the receiver's value will be modified by when the up/down arrows are pressed.
| |
| getMaximum | back to summary |
|---|---|
| public int getMaximum() Returns the maximum value which the receiver will allow.
| |
| getMinimum | back to summary |
|---|---|
| public int getMinimum() Returns the minimum value which the receiver will allow.
| |
| getPageIncrement | back to summary |
|---|---|
| public int getPageIncrement() Returns the amount that the receiver's position will be modified by when the page up/down keys are pressed.
| |
| getSelection | back to summary |
|---|---|
| public int getSelection() Returns the selection, which is the receiver's position.
| |
| getText | back to summary |
|---|---|
| public String getText() Returns a string containing a copy of the contents of the receiver's text field, or an empty string if there are no contents.
| |
| getTextLimit | back to summary |
|---|---|
| public int getTextLimit() Returns the maximum number of characters that the receiver's
text field is capable of holding. If this has not been changed
by
| |
| gtk_activate | back to summary |
|---|---|
| pack-priv long gtk_activate(long widget) Overrides org.
| |
| gtk_changed | back to summary |
|---|---|
| pack-priv long gtk_changed(long widget) Overrides org.
| |
| gtk_commit | back to summary |
|---|---|
| pack-priv long gtk_commit(long imContext, long text) Overrides org.
| |
| gtk_delete_text | back to summary |
|---|---|
| pack-priv long gtk_delete_text(long widget, long start_pos, long end_pos) Overrides org.
| |
| gtk_event_after | back to summary |
|---|---|
| pack-priv long gtk_event_after(long widget, long gdkEvent) Overrides org.
| |
| gtk_focus_out_event | back to summary |
|---|---|
| pack-priv long gtk_focus_out_event(long widget, long event) Overrides org.
| |
| gtk_insert_text | back to summary |
|---|---|
| pack-priv long gtk_insert_text(long widget, long new_text, long new_text_length, long position) Overrides org.
| |
| gtk_key_press_event | back to summary |
|---|---|
| pack-priv long gtk_key_press_event(long widget, long event) Overrides org.
| |
| gtk_populate_popup | back to summary |
|---|---|
| pack-priv long gtk_populate_popup(long widget, long menu) Overrides org.
| |
| gtk_value_changed | back to summary |
|---|---|
| pack-priv long gtk_value_changed(long range) Overrides org.
| |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| imContext | back to summary |
|---|---|
| pack-priv long imContext() | |
| paintSurface | back to summary |
|---|---|
| pack-priv long paintSurface() Overrides org.
| |
| paintWindow | back to summary |
|---|---|
| pack-priv long paintWindow() Overrides org.
| |
| paste | back to summary |
|---|---|
| public void paste() Pastes text from clipboard. The selected text is deleted from the widget and new text inserted from the clipboard.
| |
| register | back to summary |
|---|---|
| pack-priv void register() Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| removeModifyListener | back to summary |
|---|---|
| public void removeModifyListener(ModifyListener listener) Removes the listener from the collection of listeners who will be notified when the receiver's text is modified.
| |
| removeSelectionListener | back to summary |
|---|---|
| public void removeSelectionListener(SelectionListener listener) Removes the listener from the collection of listeners who will be notified when the control is selected by the user.
| |
| removeVerifyListener | back to summary |
|---|---|
| pack-priv void removeVerifyListener(VerifyListener listener) Removes the listener from the collection of listeners who will be notified when the control is verified.
| |
| setBackgroundGdkRGBA | back to summary |
|---|---|
| pack-priv void setBackgroundGdkRGBA(long context, long handle, GdkRGBA rgba) Overrides org.
| |
| setCursor | back to summary |
|---|---|
| pack-priv void setCursor(long cursor) Overrides org.
| |
| setDigits | back to summary |
|---|---|
| public void setDigits(int value) Sets the number of decimal places used by the receiver. The digit setting is used to allow for floating point values in the receiver. For example, to set the selection to a floating point value of 1.37 call setDigits() with a value of 2 and setSelection() with a value of 137. Similarly, if getDigits() has a value of 2 and getSelection() returns 137 this should be interpreted as 1.37. This applies to all numeric APIs.
| |
| setIncrement | back to summary |
|---|---|
| public void setIncrement(int value) Sets the amount that the receiver's value will be modified by when the up/down arrows are pressed to the argument, which must be at least one.
| |
| setMaximum | back to summary |
|---|---|
| public void setMaximum(int value) Sets the maximum value that the receiver will allow. This new value will be ignored if it is less than the receiver's current minimum value. If the new maximum is applied then the receiver's selection value will be adjusted if necessary to fall within its new range.
| |
| setMinimum | back to summary |
|---|---|
| public void setMinimum(int value) Sets the minimum value that the receiver will allow. This new value will be ignored if it is greater than the receiver's current maximum value. If the new minimum is applied then the receiver's selection value will be adjusted if necessary to fall within its new range.
| |
| setPageIncrement | back to summary |
|---|---|
| public void setPageIncrement(int value) Sets the amount that the receiver's position will be modified by when the page up/down keys are pressed to the argument, which must be at least one.
| |
| setSelection | back to summary |
|---|---|
| public void setSelection(int value) Sets the selection, which is the receiver's position, to the argument. If the argument is not within the range specified by minimum and maximum, it will be adjusted to fall within this range.
| |
| setTextLimit | back to summary |
|---|---|
| public void setTextLimit(int limit) Sets the maximum number of characters that the receiver's text field is capable of holding to be the argument.
To reset this value to the default, use
| |
| setValues | back to summary |
|---|---|
| public void setValues(int selection, int minimum, int maximum, int digits, int increment, int pageIncrement) Sets the receiver's selection, minimum value, maximum value, digits, increment and page increment all at once. Note This is similar to setting the values individually using the appropriate methods, but may be implemented in a more efficient fashion on some platforms.
| |
| translateTraversal | back to summary |
|---|---|
| pack-priv boolean translateTraversal(long event) Overrides org.
| |
| verifyText | back to summary |
|---|---|
| pack-priv String verifyText(String string, int start, int end) | |