com.alee.managers.settings.processors
Class JSliderSettingsProcessor

java.lang.Object
  extended by com.alee.managers.settings.SettingsProcessor<javax.swing.JSlider,java.lang.Integer>
      extended by com.alee.managers.settings.processors.JSliderSettingsProcessor

public class JSliderSettingsProcessor
extends SettingsProcessor<javax.swing.JSlider,java.lang.Integer>

Custom SettingsProcessor for JSlider 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
JSliderSettingsProcessor(SettingsProcessorData data)
          Constructs SettingsProcessor using the specified SettingsProcessorData.
 
Method Summary
protected  void doDestroy(javax.swing.JSlider slider)
          Called when component is unregistered from ComponentSettingsManager.
protected  void doInit(javax.swing.JSlider slider)
          Called when a new component is registered in ComponentSettingsManager.
protected  void doLoad(javax.swing.JSlider slider)
          Called on component settings load.
protected  void doSave(javax.swing.JSlider slider)
          Called on component settings save.
 java.lang.Integer 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

JSliderSettingsProcessor

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

Parameters:
data - SettingsProcessorData
Method Detail

getDefaultValue

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

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

doInit

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

Specified by:
doInit in class SettingsProcessor<javax.swing.JSlider,java.lang.Integer>
Parameters:
slider - registered component

doDestroy

protected void doDestroy(javax.swing.JSlider slider)
Called when component is unregistered from ComponentSettingsManager.

Specified by:
doDestroy in class SettingsProcessor<javax.swing.JSlider,java.lang.Integer>
Parameters:
slider - unregistered component

doLoad

protected void doLoad(javax.swing.JSlider slider)
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.JSlider,java.lang.Integer>
Parameters:
slider - component to load settings into

doSave

protected void doSave(javax.swing.JSlider slider)
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.JSlider,java.lang.Integer>
Parameters:
slider - component to save settings from