com.alee.managers.settings.processors
Class AbstractButtonSettingsProcessor

java.lang.Object
  extended by com.alee.managers.settings.SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>
      extended by com.alee.managers.settings.processors.AbstractButtonSettingsProcessor

public class AbstractButtonSettingsProcessor
extends SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>

Custom SettingsProcessor for AbstractButton component.

Author:
Mikle Garin
See Also:
How to use SettingsManager, SettingsManager, SettingsProcessor

Field Summary
 
Fields inherited from class com.alee.managers.settings.SettingsProcessor
data, loading, saving
 
Constructor Summary
AbstractButtonSettingsProcessor(SettingsProcessorData data)
          Constructs SettingsProcessor using the specified SettingsProcessorData.
 
Method Summary
 void doDestroy(javax.swing.AbstractButton abstractButton)
          Called when component is unregistered from ComponentSettingsManager.
protected  void doInit(javax.swing.AbstractButton abstractButton)
          Called when a new component is registered in ComponentSettingsManager.
 void doLoad(javax.swing.AbstractButton abstractButton)
          Called on component settings load.
 void doSave(javax.swing.AbstractButton abstractButton)
          Called on component settings save.
 java.lang.Boolean getDefaultValue()
          Returns component default value.
 
Methods inherited from class com.alee.managers.settings.SettingsProcessor
destroy, getComponent, getData, getGroup, getKey, load, loadValue, save, save, saveValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractButtonSettingsProcessor

public AbstractButtonSettingsProcessor(SettingsProcessorData data)
Constructs SettingsProcessor using the specified SettingsProcessorData.

Parameters:
data - SettingsProcessorData
Method Detail

getDefaultValue

public java.lang.Boolean getDefaultValue()
Returns component default value.

Overrides:
getDefaultValue in class SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>
Returns:
component default value

doInit

protected void doInit(javax.swing.AbstractButton abstractButton)
Called when a new component is registered in ComponentSettingsManager.

Specified by:
doInit in class SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>
Parameters:
abstractButton - registered component

doDestroy

public void doDestroy(javax.swing.AbstractButton abstractButton)
Called when component is unregistered from ComponentSettingsManager.

Specified by:
doDestroy in class SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>
Parameters:
abstractButton - unregistered component

doLoad

public void doLoad(javax.swing.AbstractButton abstractButton)
Called on component settings load. It doesn't matter if it is invoked by SettingsProcessor or some other source.

Specified by:
doLoad in class SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>
Parameters:
abstractButton - component to load settings into

doSave

public void doSave(javax.swing.AbstractButton abstractButton)
Called on component settings save. It doesn't matter if it is invoked by SettingsProcessor or some other source.

Specified by:
doSave in class SettingsProcessor<javax.swing.AbstractButton,java.lang.Boolean>
Parameters:
abstractButton - component to save settings from