Note
The fields that are filled in depend on the widget.
SelectionListener, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| public int | detail
Extra detail information about the selection, depending on the widget. |
| public boolean | doit
A flag indicating whether the operation should be allowed. |
| public int | height
The height of selected area. |
| public Widget | item
The item that was selected. |
| pack-priv static final long | |
| public int | stateMask
The state of the keyboard modifier keys and mouse masks at the time the event was generated. |
| public String | text
The text of the hyperlink that was selected. |
| public int | width
The width of selected area. |
| public int | x
The x location of the selected area. |
| public int | y
The y location of selected area. |
| Access | Constructor and Description |
|---|---|
| public | SelectionEvent(Event
the untyped event containing the information e)Constructs a new instance of this class based on the information in the given untyped event. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string representation of the eventOverrides org. |
| detail | back to summary |
|---|---|
| public int detail Extra detail information about the selection, depending on the widget. Sash ScrollBar and Slider
Table and Tree Text CoolItem and ToolItem | |
| doit | back to summary |
|---|---|
| public boolean doit A flag indicating whether the operation should be allowed.
Setting this field to | |
| height | back to summary |
|---|---|
| public int height The height of selected area. | |
| item | back to summary |
|---|---|
| public Widget item The item that was selected. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| stateMask | back to summary |
|---|---|
| public int stateMask The state of the keyboard modifier keys and mouse masks at the time the event was generated. Note Mouse button states are currently not included consistently for all widgets on all platforms. Clients should be prepared to receive button states, but should not rely on getting them everywhere. | |
| text | back to summary |
|---|---|
| public String text The text of the hyperlink that was selected. This will be either the text of the hyperlink or the value of its HREF, if one was specified.
| |
| width | back to summary |
|---|---|
| public int width The width of selected area. | |
| x | back to summary |
|---|---|
| public int x The x location of the selected area. | |
| y | back to summary |
|---|---|
| public int y The y location of selected area. | |
| SelectionEvent | back to summary |
|---|---|
| public SelectionEvent(Event e) Constructs a new instance of this class based on the information in the given untyped event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Returns a string containing a concise, human-readable description of the receiver. | |