bibliothek.gui.dock.common.grouping
Class DefaultCGroupingBehavior
java.lang.Object
bibliothek.gui.dock.common.grouping.DefaultCGroupingBehavior
- All Implemented Interfaces:
- CGroupingBehavior
public class DefaultCGroupingBehavior
- extends Object
- implements CGroupingBehavior
Default implementation of CGroupingBehavior
, just returns CDockable.getGrouping()
.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCGroupingBehavior
public DefaultCGroupingBehavior()
getGrouping
public DockableGrouping getGrouping(Dockable dockable)
- Description copied from interface:
CGroupingBehavior
- Gets the grouping algorithm that should be used for
dockable
. This method
may be called multiple times for the same dockable
. It should either always
return the same DockableGrouping
, or it should return an object that does not
contains any state.
- Specified by:
getGrouping
in interface CGroupingBehavior
- Parameters:
dockable
- the element whose grouping information is requested
- Returns:
- the grouping information, or
null
if there is no special behavior
defined for dockable