Class ToolboxStateManager

  extended by com.vividsolutions.jump.workbench.ui.toolbox.ToolboxStateManager

public class ToolboxStateManager
extends java.lang.Object

Stores the state of the component and its descendants on the Blackboard of the LayerManager (if any) of the current JInternalFrame. Thus, when the user switches JInternalFrames, the component will change its state to reflect the new context.

Designed to be trivial to use: simply instantiate one if you want to use one. (Make sure the toolbox's Components are initialized first). Note that not all Components are supported; currently the ToolboxStateManager will save the state for the following components only: JTextComponent, JToggleButton (including JCheckBox), JComboBox.

Nested Class Summary
static class ToolboxStateManager.Strategy
Constructor Summary
ToolboxStateManager(ToolboxDialog toolbox)
ToolboxStateManager(ToolboxDialog toolbox, java.util.Map customComponentClassToStrategyMap)
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ToolboxStateManager(ToolboxDialog toolbox)


public ToolboxStateManager(ToolboxDialog toolbox,
                           java.util.Map customComponentClassToStrategyMap)