com.vlsolutions.swing.docking.ws
Class WorkspaceButton
JButton
com.vlsolutions.swing.docking.ws.WorkspaceButton
public class WorkspaceButton
extends JButton
A simple button that applies a workspace to a given Docking context when pressed .
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
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