org.flexdock.docking.floating.policy
public interface FloatPolicy
FloatPolicyManager
to affect floating behavior of
the framework at runtime.Modifier and Type | Interface and Description |
---|---|
static class |
FloatPolicy.NullFloatPolicy
Provides a default implementation of the FloatPolicy interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFloatDropAllowed(DockingEvent evt)
Indicates whether floating should be allowed for the specified
DockingEvent at the end of a drag operation. |
boolean |
isFloatingAllowed(Dockable dockable)
Returns
true if floating should be allowed for the specified
Dockable . |
boolean isFloatingAllowed(Dockable dockable)
true
if floating should be allowed for the specified
Dockable
. This method will be invoked by the
FloatPolicyManager
at the beginning of a drag operation to
determine whether or not floating support will be enabled for the
Dockable
as a result of the drag. If this method returns
false
, floating will not be allowed for the drag operation
against the specified Dockable
.dockable
- the Dockable
to be checked for floating supporttrue
if floating should be allowed for the specified
Dockable
; false
otherwise.boolean isFloatDropAllowed(DockingEvent evt)
DockingEvent
at the end of a drag operation. The
FloatPolicyManager
will catch all attempts to float a
Dockable
at the end of a drag operation and invoke this method on
all installed FloatPolicies
. If any of them returns
false
, the docking operation will be canceled.evt
- the DockingEvent
to be checked for drop-to-float
supporttrue
if floating should be allowed for the specified
DockingEvent
; false
otherwise.