org.eclipse.swt.events
Class TraverseEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.eclipse.swt.internal.SWTEventObject
              |
              +--org.eclipse.swt.events.TypedEvent
                    |
                    +--org.eclipse.swt.events.KeyEvent
                          |
                          +--org.eclipse.swt.events.TraverseEvent
All Implemented Interfaces:
Serializable

public class TraverseEvent
extends KeyEvent

Unsafe:

See Also:
Serialized Form

Field Summary
 int detail
          Enabled: The traversal type.
 boolean doit
          Enabled: A flag indicating whether the operation should be allowed.
 
Fields inherited from class org.eclipse.swt.events.KeyEvent
character, keyCode, stateMask
 
Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widget
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TraverseEvent(Event e)
          Suppressed: Constructs a new instance of this class based on the information in the given untyped event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

detail

public int detail
Enabled: The traversal type.

Setting this field will change the type of traversal. For example, setting the detail to TRAVERSE_NONE causes no traversal action to be taked. The traversal detail, in conjuction with the doit field can be useful when overriding the default traversal mechanism for a control.


doit

public boolean doit
Enabled: A flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation and allow the traversal key stroke to be delivered to the control. A value of true indicates that the traversal, described by the traversal detail is to be performed.

Constructor Detail

TraverseEvent

public TraverseEvent(Event e)
Suppressed: Constructs a new instance of this class based on the information in the given untyped event.

Parameters:
e - the untyped event containing the information


comments?