Class DefaultFloatPolicy

  • All Implemented Interfaces:
    FloatPolicy

    public class DefaultFloatPolicy
    extends FloatPolicy.NullFloatPolicy
    This class provides an implementation of the FloatPolicy interface to provide default behavior for the framework. It blocks floating operations for Dockables without any frame drag sources, for already floating Dockables that cannot be reparented within a new dialog, or if global floating support has been disabled.
    Author:
    Christopher Butler
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static DefaultFloatPolicy getInstance()
      Returns a singleton instance of DefaultFloatPolicy.
      boolean isFloatDropAllowed​(DockingEvent evt)
      Checks the previous DockingPort for the specified DockingEvent and returns false if it is in a floating dialog and contains less than two Dockables.
      boolean isFloatingAllowed​(Dockable dockable)
      Blocks floating support (returns false) if dockable is null, if FloatPolicyManager.isGlobalFloatingEnabled() returns false, or if there are no entries within the Set returned by dockable.getFrameDragSources().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultFloatPolicy

        public DefaultFloatPolicy()