com.vlsolutions.swing.docking

Class 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 Action
createAttachTabAction(Dockable dockable, DockingDesktop desktop)
returns an action suitable for attaching a dockable contained in a floating tab.
static Action
createCloseAction(Dockable dockable, DockingDesktop desktop)
returns an action suitable for closing a dockable contained in a tab.
static Action
createCloseAllAction(Dockable base, DockingDesktop desktop)
returns an action suitable for closing every dockable contained in a tab.
static Action
createCloseAllOtherAction(Dockable exception, DockingDesktop desktop)
returns an action suitable for closing every dockable contained in a tab excepted the current one.
static Action
createFloatTabAction(Dockable dockable, DockingDesktop desktop)
returns an action suitable for floating (detach) a dockable contained in a tab.
static Action
createHideTabAction(Dockable dockable, DockingDesktop desktop)
returns an action suitable for hiding a dockable contained in a tab.
static Action
createMaximizeTabAction(Dockable dockable, DockingDesktop desktop)
returns an action suitable for maximizing a dockable contained in a tab.

Method Details

createAttachTabAction

public static 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

createCloseAction

public static 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 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 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.


createFloatTabAction

public static 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.


createHideTabAction

public static 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.


createMaximizeTabAction

public static 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.


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