com.vlsolutions.swing.docking
Class TabbedContainerActions

java.lang.Object
  extended by com.vlsolutions.swing.docking.TabbedContainerActions

public class TabbedContainerActions
extends java.lang.Object

An utility class providing default implementation of usefull actions for pop-up menus in tab container selectors.


Method Summary
static javax.swing.Action createAttachTabAction(Dockable dockable, DockingDesktop desktop)
          returns an action suitable for attaching a dockable contained in a floating tab.
static javax.swing.Action createCloseAction(Dockable dockable, DockingDesktop desktop)
          returns an action suitable for closing a dockable contained in a tab.
static javax.swing.Action createCloseAllAction(Dockable base, DockingDesktop desktop)
          returns an action suitable for closing every dockable contained in a tab.
static javax.swing.Action createCloseAllOtherAction(Dockable exception, DockingDesktop desktop)
          returns an action suitable for closing every dockable contained in a tab excepted the current one.
static javax.swing.Action createFloatTabAction(Dockable dockable, DockingDesktop desktop)
          returns an action suitable for floating (detach) a dockable contained in a tab.
static javax.swing.Action createHideTabAction(Dockable dockable, DockingDesktop desktop)
          returns an action suitable for hiding a dockable contained in a tab.
static javax.swing.Action createMaximizeTabAction(Dockable dockable, DockingDesktop desktop)
          returns an action suitable for maximizing a dockable contained in a tab.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCloseAction

public static javax.swing.Action createCloseAction(Dockable dockable,
                                                   DockingDesktop desktop)
returns an action suitable for closing a dockable contained in a tab.

Action properties : The icon is provided, and also the standard localized "close" message.


createCloseAllAction

public static javax.swing.Action createCloseAllAction(Dockable base,
                                                      DockingDesktop desktop)
returns an action suitable for closing every dockable contained in a tab.

Action properties : The icon is provided, and also an unlocalized "Close all documents" message.


createCloseAllOtherAction

public static javax.swing.Action createCloseAllOtherAction(Dockable exception,
                                                           DockingDesktop desktop)
returns an action suitable for closing every dockable contained in a tab excepted the current one.

Action properties : The icon is provided, and also an unlocalized "Close all other documents" message.


createMaximizeTabAction

public static javax.swing.Action createMaximizeTabAction(Dockable dockable,
                                                         DockingDesktop desktop)
returns an action suitable for maximizing a dockable contained in a tab.

Action properties : The icon is provided, and also a localized "Maximize" message.


createHideTabAction

public static javax.swing.Action createHideTabAction(Dockable dockable,
                                                     DockingDesktop desktop)
returns an action suitable for hiding a dockable contained in a tab.

Action properties : The icon is provided, and also a localized "Iconify" message.


createFloatTabAction

public static javax.swing.Action createFloatTabAction(Dockable dockable,
                                                      DockingDesktop desktop)
returns an action suitable for floating (detach) a dockable contained in a tab.

Action properties : The icon is provided, and a default "Detach" message.


createAttachTabAction

public static javax.swing.Action createAttachTabAction(Dockable dockable,
                                                       DockingDesktop desktop)
returns an action suitable for attaching a dockable contained in a floating tab.

Action properties : The icon is provided, and a default "Attach" message.

Since:
2.0.1


© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications