Home » Eclipse-SWT-3.5.1 » org.eclipse.swt.events » [javadoc | source]
org.eclipse.swt.events
public class: SelectionEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      org.eclipse.swt.internal.SWTEventObject
         org.eclipse.swt.events.TypedEvent
            org.eclipse.swt.events.SelectionEvent

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ExpandEvent, TreeEvent

Instances of this class are sent as a result of widgets being selected.

Note: The fields that are filled in depend on the widget.

Field Summary
public  Widget item    The item that was selected. 
public  int detail    Extra detail information about the selection, depending on the widget.

Sash

ScrollBar and Slider

Table, Tree and TableTree

CoolItem and ToolItem

 
public  int x    The x location of the selected area. 
public  int y    The y location of selected area. 
public  int width    The width of selected area. 
public  int height    The height of selected area. 
public  int stateMask    The state of the keyboard modifier keys at the time the event was generated. 
public  boolean doit    A flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation, depending on the widget. 
Fields inherited from org.eclipse.swt.events.TypedEvent:
display,  widget,  time,  data
Fields inherited from org.eclipse.swt.internal.SWTEventObject:
serialVersionUID
Fields inherited from java.util.EventObject:
source
Constructor:
 public SelectionEvent(Event e) 
    Constructs a new instance of this class based on the information in the given untyped event.
    Parameters:
    e - the untyped event containing the information
Method from org.eclipse.swt.events.SelectionEvent Summary:
toString
Methods from org.eclipse.swt.events.TypedEvent:
getName,   toString
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.eclipse.swt.events.SelectionEvent Detail:
 public String toString() 
    Returns a string containing a concise, human-readable description of the receiver.