com.tensegrity.gui.swing.dock.core
Class DefaultViewManager

java.lang.Object
  extended bycom.tensegrity.gui.swing.dock.core.DefaultViewManager
All Implemented Interfaces:
ViewManager

public class DefaultViewManager
extends java.lang.Object
implements ViewManager

Docking framework.

Version:
$Id: DefaultViewManager.java,v 1.2 2005/04/01 10:18:49 sr Exp $
Author:
srutz

Constructor Summary
DefaultViewManager()
          Constructs a new DefaultViewManager instance.
 
Method Summary
 boolean canCloseTabEntry(View view, TabPane tabpane, TabEntry entry)
          Invoked prior to closing a tab-entry.
 boolean canCloseTabPane(View view, TabPane tabpane)
          Invoked prior to closing a tabpane.
 boolean canMoveTabEntry(View view, TabPane source, TabPane dest, TabEntry entry)
          Invoked prior to moving a tab-entry.
 boolean canSplit(View view, TabPane source, TabPane dest, TabEntry entry, int split)
          Whether a split is allowed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewManager

public DefaultViewManager()
Constructs a new DefaultViewManager instance.

This class provides sane default behavior for view managing and is meant to be extended for further customizations.

Method Detail

canCloseTabPane

public boolean canCloseTabPane(View view,
                               TabPane tabpane)
Description copied from interface: ViewManager
Invoked prior to closing a tabpane.

Specified by:
canCloseTabPane in interface ViewManager
Parameters:
view - the view of the event.
tabpane - the tabpane of the event.
Returns:
indicating whether operation is allowed or not.

canCloseTabEntry

public boolean canCloseTabEntry(View view,
                                TabPane tabpane,
                                TabEntry entry)
Description copied from interface: ViewManager
Invoked prior to closing a tab-entry.

Specified by:
canCloseTabEntry in interface ViewManager
Parameters:
view - the view of the event.
tabpane - the tabpane of the event.
entry - the entry of the event.
Returns:
indicating whether operation is allowed or not.

canMoveTabEntry

public boolean canMoveTabEntry(View view,
                               TabPane source,
                               TabPane dest,
                               TabEntry entry)
Description copied from interface: ViewManager
Invoked prior to moving a tab-entry.

Specified by:
canMoveTabEntry in interface ViewManager
Parameters:
view - the view of the event.
source - the source tabpane.
dest - the destination tabpane.
entry - the entry of the event.
Returns:
indicating whether operation is allowed or not.

canSplit

public boolean canSplit(View view,
                        TabPane source,
                        TabPane dest,
                        TabEntry entry,
                        int split)
Description copied from interface: ViewManager
Whether a split is allowed.

Specified by:
canSplit in interface ViewManager
Parameters:
view - the view of the vent.
source - the source tabpane.
dest - the destination tabpane.
entry - the entry.
split - the split direction.
Returns:
indicating whether operation is allowed or not.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.