TransferHandler. The gesture for a drag in this class is a mouse
press followed by movement by DragSource.getDragThreshold()
pixels.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | DragRecognitionSupport.
This interface allows us to pass in a handler to mouseDragged, so that we can be notified immediately before a drag begins. |
| Modifier and Type | Field and Description |
|---|---|
| private JComponent | |
| private MouseEvent | |
| private int | |
| private static DragRecognitionSupport |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static synchronized DragRecognitionSupport | |
| private int | |
| public static boolean | mouseDragged(MouseEvent me, DragRecognitionSupport.
Returns whether or not a drag gesture recognition is ongoing. |
| private boolean | mouseDraggedImpl(MouseEvent me, DragRecognitionSupport.
Returns whether or not a drag gesture recognition is ongoing. |
| public static boolean | |
| private boolean | mousePressedImpl(MouseEvent me)
Returns whether or not the event is potentially part of a drag sequence. |
| public static MouseEvent | mouseReleased(MouseEvent me)
If a dnd recognition has been going on, return the MouseEvent that started the recognition. |
| private MouseEvent | mouseReleasedImpl(MouseEvent me)
If a dnd recognition has been going on, return the MouseEvent that started the recognition. |
| component | back to summary |
|---|---|
| private JComponent component | |
| dndArmedEvent | back to summary |
|---|---|
| private MouseEvent dndArmedEvent | |
| motionThreshold | back to summary |
|---|---|
| private int motionThreshold | |
| support | back to summary |
|---|---|
| private static DragRecognitionSupport support | |
| DragRecognitionSupport | back to summary |
|---|---|
| pack-priv DragRecognitionSupport() | |
| clearState | back to summary |
|---|---|
| private void clearState() | |
| getDragRecognitionSupport | back to summary |
|---|---|
| private static synchronized DragRecognitionSupport getDragRecognitionSupport() Returns the DragRecognitionSupport instance. | |
| mapDragOperationFromModifiers | back to summary |
|---|---|
| private int mapDragOperationFromModifiers(MouseEvent me, TransferHandler th) | |
| mouseDragged | back to summary |
|---|---|
| public static boolean mouseDragged(MouseEvent me, DragRecognitionSupport. Returns whether or not a drag gesture recognition is ongoing. | |
| mouseDraggedImpl | back to summary |
|---|---|
| private boolean mouseDraggedImpl(MouseEvent me, DragRecognitionSupport. Returns whether or not a drag gesture recognition is ongoing. | |
| mousePressed | back to summary |
|---|---|
| public static boolean mousePressed(MouseEvent me) Returns whether or not the event is potentially part of a drag sequence. | |
| mousePressedImpl | back to summary |
|---|---|
| private boolean mousePressedImpl(MouseEvent me) Returns whether or not the event is potentially part of a drag sequence. | |
| mouseReleased | back to summary |
|---|---|
| public static MouseEvent mouseReleased(MouseEvent me) If a dnd recognition has been going on, return the MouseEvent that started the recognition. Otherwise, return null. | |
| mouseReleasedImpl | back to summary |
|---|---|
| private MouseEvent mouseReleasedImpl(MouseEvent me) If a dnd recognition has been going on, return the MouseEvent that started the recognition. Otherwise, return null. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| dragStarting | back to summary |
|---|---|
| public void dragStarting(MouseEvent me) | |