public interface DockRelocatorMode
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.| Modifier and Type | Field and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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. |
static final PropertyKey<ModifierMask> SCREEN_MASK
SCREEN_ONLY relocator modestatic 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 modestatic final DockRelocatorMode NO_COMBINATION
Dockable can be dragged only if no combination results.
This mode is installed automatically by the DockController.boolean shouldBeActive(DockController controller, int modifiers)
MouseEvent.controller - the controller which might be affected by this modemodifiers - the state of the mouse, see MouseEvent.getModifiersEx()true if this mode should be activated, false
otherwisevoid setActive(DockController controller, boolean active)
controller - the controller for which this mode is usedactive - true if this mode should change
the behaviour, false otherwiseCopyright © 2017 Docking Frames. All rights reserved.