Class ToolboxStateManager

java.lang.Object
com.vividsolutions.jump.workbench.ui.toolbox.ToolboxStateManager

public class ToolboxStateManager extends 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.

  • Constructor Details

    • ToolboxStateManager

      public ToolboxStateManager(ToolboxDialog toolbox)
    • ToolboxStateManager

      public ToolboxStateManager(ToolboxDialog toolbox, Map customComponentClassToStrategyMap)