com.vlsolutions.swing.docking.ws

Class WorkspaceMenuItem

public class WorkspaceMenuItem extends JMenuItem

A simple menu item that applies a workspace to a given Docking context when selected .

Since: 2.1.3

Constructor Summary
WorkspaceMenuItem()
Default constructor
WorkspaceMenuItem(String text)
constructor with a menu text
WorkspaceMenuItem(String text, Icon icon)
constructor with a menu text and an icon
Method Summary
voidapplyWorkspace()
Invoked when the button is pressed : applies the workspace to the associated context
DockingContextgetDockingContext()
Returns the docking context used by this menu item
WorkspacegetWorkspace()
Returns the workspace used by this menu item
voidsetDockingContext(DockingContext ctx)
Updates the docking context used by this menu item
voidsetWorkspace(Workspace workspace)
updates the workspace to be used by this menu item

Constructor Detail

WorkspaceMenuItem

public WorkspaceMenuItem()
Default constructor

WorkspaceMenuItem

public WorkspaceMenuItem(String text)
constructor with a menu text

WorkspaceMenuItem

public WorkspaceMenuItem(String text, Icon icon)
constructor with a menu text and an icon

Method Detail

applyWorkspace

public void applyWorkspace()
Invoked when the button is pressed : applies the workspace to the associated context

getDockingContext

public DockingContext getDockingContext()
Returns the docking context used by this menu item

getWorkspace

public Workspace getWorkspace()
Returns the workspace used by this menu item

setDockingContext

public void setDockingContext(DockingContext ctx)
Updates the docking context used by this menu item

setWorkspace

public void setWorkspace(Workspace workspace)
updates the workspace to be used by this menu item
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications