qflib 0.98.1

de.qfs.lib.config
Class JToolBarConfigWrapper

java.lang.Object
  |
  +--de.qfs.lib.config.ConfigWrapper
        |
        +--de.qfs.lib.config.JToolBarConfigWrapper
All Implemented Interfaces:
Configurable

public class JToolBarConfigWrapper
extends ConfigWrapper

This ConfigWrapper saves and restores the State of a JToolBar. The saved state contains information about whether the toolbar is floating or docked and about its position, either inside its floating Frame or its parent.

TODO: Listen for changes and call Configuration.stateChanged.

Version:
$Revision: 1.7 $
Author:
Gregor Schmid

Field Summary
protected  javax.swing.JToolBar toolbar
          The JToolBar to wrap.
 
Constructor Summary
JToolBarConfigWrapper()
          Create a new JToolBarConfigWrapper with the default name 'toolbar'.
 
Method Summary
 java.util.Properties getConfigurableState()
          Get the Configurable's state.
protected  void setClient(java.lang.Object client)
          Set the client object for the ConfigWrapper.
 void setConfigurableState(java.util.Properties state)
          Set the Configurable's state.
 
Methods inherited from class de.qfs.lib.config.ConfigWrapper
addPackage, getConfigurableName, makeWrapper, makeWrapper, registrationChanged, setConfigurableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolbar

protected javax.swing.JToolBar toolbar
The JToolBar to wrap.
Constructor Detail

JToolBarConfigWrapper

public JToolBarConfigWrapper()
Create a new JToolBarConfigWrapper with the default name 'toolbar'.
Method Detail

setClient

protected void setClient(java.lang.Object client)
Set the client object for the ConfigWrapper.
Overrides:
setClient in class ConfigWrapper
Parameters:
client - The client object to set.

getConfigurableState

public java.util.Properties getConfigurableState()
Get the Configurable's state.
Overrides:
getConfigurableState in class ConfigWrapper
Following copied from class: de.qfs.lib.config.ConfigWrapper
Returns:
An empty Properties object.

setConfigurableState

public void setConfigurableState(java.util.Properties state)
Set the Configurable's state.
Overrides:
setConfigurableState in class ConfigWrapper
Following copied from class: de.qfs.lib.config.ConfigWrapper
Parameters:
state - The state to set. Ignored.

qflib 0.98.1