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

void
applyWorkspace()
Invoked when the button is pressed : applies the workspace to the associated context
DockingContext
getDockingContext()
Returns the docking context used by this menu item
Workspace
getWorkspace()
Returns the workspace used by this menu item
void
setDockingContext(DockingContext ctx)
Updates the docking context used by this menu item
void
setWorkspace(Workspace workspace)
updates the workspace to be used by this menu item

Constructor Details

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 Details

applyWorkspace

public void applyWorkspace()
            throws WorkspaceException
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-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications