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
voidapplyWorkspace()
Invoked when the button is pressed : applies the workspace to the associated context
DockingContextgetDockingContext()
Returns the docking context used by this button
WorkspacegetWorkspace()
Returns the workspace used by this button
voidsetDockingContext(DockingContext ctx)
Updates the docking context used by this button
voidsetWorkspace(Workspace workspace)
updates the workspace to be used by this button

Constructor Detail

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 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 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-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications