|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DockRelocatorMode
A DockRelocatorMode is used by a DockRelocator to change
the behaviour of the drag and drop-operation depending what the user
does with the mouse and the keyboard.
| Field Summary | |
|---|---|
static DockRelocatorMode |
NO_COMBINATION
Ensures that a Dockable can be dragged only if no combination results. |
static PropertyKey<ModifierMask> |
NO_COMBINATION_MASK
the modifiers that must be pressed to activate the NO_COMBINATION relocator mode |
static PropertyKey<ModifierMask> |
SCREEN_MASK
the modifiers that must be pressed to activate the SCREEN_ONLY relocator mode |
static DockRelocatorMode |
SCREEN_ONLY
Ensures that a Dockable can be dragged only onto a ScreenDockStation. |
| Method Summary | |
|---|---|
void |
setActive(DockController controller,
boolean active)
Tells this mode whether it should have an influence of the behaviour or not. |
boolean |
shouldBeActive(DockController controller,
int modifiers)
Tells whether this mode should be activated because of the state of the controller and the last MouseEvent. |
| Field Detail |
|---|
static final PropertyKey<ModifierMask> SCREEN_MASK
SCREEN_ONLY relocator mode
static final DockRelocatorMode SCREEN_ONLY
Dockable can be dragged only onto a ScreenDockStation.
This mode is installed automatically by the DockController.
static final PropertyKey<ModifierMask> NO_COMBINATION_MASK
NO_COMBINATION relocator mode
static final DockRelocatorMode NO_COMBINATION
Dockable can be dragged only if no combination results.
This mode is installed automatically by the DockController.
| Method Detail |
|---|
boolean shouldBeActive(DockController controller,
int modifiers)
MouseEvent.
controller - the controller which might be affected by this modemodifiers - the state of the mouse, see InputEvent.getModifiersEx()
true if this mode should be activated, false
otherwise
void setActive(DockController controller,
boolean active)
controller - the controller for which this mode is usedactive - true if this mode should change
the behaviour, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||