Package org.eclipse.jface.viewers
Class ColumnViewerEditorActivationEvent
java.lang.Object
java.util.EventObject
org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent
- All Implemented Interfaces:
Serializable
This event is passed on when a cell-editor is going to be activated
- Since:
- 3.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanCancel the event (=> editor is not activated)charOnly set forKEY_PRESSEDintThe event type triggered:KEY_PRESSEDif a key is pressed on a selected cellMOUSE_CLICK_SELECTIONif a cell is selected using a single click of the mouseMOUSE_DOUBLE_CLICK_SELECTIONif a cell is selected using double clicking of the mousestatic final intif a key is pressed on a selected cellintOnly set forKEY_PRESSEDstatic final intif a cell is selected using a single click of the mousestatic final intif a cell is selected using double clicking of the mousestatic final intif a cell is activated using code like e.gColumnViewer.editElement(Object, int)the original event triggeredintThe statemaskintThe time the event is triggeredstatic final intis a cell is activated by traversingFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionThis constructor can be used when no event exists.ColumnViewerEditorActivationEvent(ViewerCell cell, KeyEvent event) ColumnViewerEditorActivationEvent(ViewerCell cell, MouseEvent event) This constructor is used for all types of mouse events.ColumnViewerEditorActivationEvent(ViewerCell cell, TraverseEvent event) This constructor is used to mark the activation triggered by a traversal -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
KEY_PRESSED
public static final int KEY_PRESSEDif a key is pressed on a selected cell- See Also:
-
MOUSE_CLICK_SELECTION
public static final int MOUSE_CLICK_SELECTIONif a cell is selected using a single click of the mouse- See Also:
-
MOUSE_DOUBLE_CLICK_SELECTION
public static final int MOUSE_DOUBLE_CLICK_SELECTIONif a cell is selected using double clicking of the mouse- See Also:
-
PROGRAMMATIC
public static final int PROGRAMMATICif a cell is activated using code like e.gColumnViewer.editElement(Object, int)- See Also:
-
TRAVERSAL
public static final int TRAVERSALis a cell is activated by traversing- See Also:
-
sourceEvent
the original event triggered -
time
public int timeThe time the event is triggered -
eventType
public int eventTypeThe event type triggered:KEY_PRESSEDif a key is pressed on a selected cellMOUSE_CLICK_SELECTIONif a cell is selected using a single click of the mouseMOUSE_DOUBLE_CLICK_SELECTIONif a cell is selected using double clicking of the mouse
-
keyCode
public int keyCodeOnly set forKEY_PRESSED -
character
public char characterOnly set forKEY_PRESSED -
stateMask
public int stateMaskThe statemask -
cancel
public boolean cancelCancel the event (=> editor is not activated)
-
-
Constructor Details
-
ColumnViewerEditorActivationEvent
This constructor can be used when no event exists. The type set isPROGRAMMATIC- Parameters:
cell- the cell
-
ColumnViewerEditorActivationEvent
This constructor is used for all types of mouse events. Currently the type is can beMOUSE_CLICK_SELECTIONandMOUSE_DOUBLE_CLICK_SELECTION- Parameters:
cell- the cell source of the eventevent- the event
-
ColumnViewerEditorActivationEvent
- Parameters:
cell- the cell source of the eventevent- the event
-
ColumnViewerEditorActivationEvent
This constructor is used to mark the activation triggered by a traversal- Parameters:
cell- the cell source of the eventevent- the event
-