com.vlsolutions.swing.docking.ws

Class WorkspaceButton


public class WorkspaceButton
extends JButton

A simple button that applies a workspace to a given Docking context when pressed .
Since:
2.1.3

Constructor Summary

WorkspaceButton()
default constructor
WorkspaceButton(String text)
constructor with a menu text
WorkspaceButton(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 button
Workspace
getWorkspace()
Returns the workspace used by this button
void
setDockingContext(DockingContext ctx)
Updates the docking context used by this button
void
setWorkspace(Workspace workspace)
updates the workspace to be used by this button

Constructor Details

WorkspaceButton

public WorkspaceButton()
default constructor

WorkspaceButton

public WorkspaceButton(String text)
constructor with a menu text

WorkspaceButton

public WorkspaceButton(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 button

getWorkspace

public Workspace getWorkspace()
Returns the workspace used by this button

setDockingContext

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

setWorkspace

public void setWorkspace(Workspace workspace)
updates the workspace to be used by this button

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