org.xnap.commons.gui.settings
Class SettingComponentMediator

java.lang.Object
  extended by org.xnap.commons.gui.settings.SettingComponentMediator

public class SettingComponentMediator
extends Object

Provides a mediator between Setting objects and gui components. This class can be used to easily implement dialogs that configure application settings.

Author:
Steffen Pingel

Nested Class Summary
static class SettingComponentMediator.BooleanSettingMapper
           
static class SettingComponentMediator.IntSettingMapper
           
static class SettingComponentMediator.SelectionMapper<T>
           
static interface SettingComponentMediator.SettingMapper
           
static class SettingComponentMediator.StringSettingMapper
           
 
Constructor Summary
SettingComponentMediator()
           
 
Method Summary
 void add(BooleanSetting setting, AbstractButton button)
           
 void add(IntSetting setting, SpinnerNumberModel spinnerModel)
           
<T> void
add(Setting<T> setting, ComboBoxModel model)
           
 void add(SettingComponentMediator.SettingMapper mapper)
           
 void add(StringSetting setting, JTextComponent textComponent)
           
 void apply()
           
 Iterator<SettingComponentMediator.SettingMapper> iterator()
           
 void remove(SettingComponentMediator.SettingMapper mapper)
           
 void revert()
           
 void revertToDefaults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingComponentMediator

public SettingComponentMediator()
Method Detail

add

public void add(BooleanSetting setting,
                AbstractButton button)

add

public void add(IntSetting setting,
                SpinnerNumberModel spinnerModel)

add

public void add(StringSetting setting,
                JTextComponent textComponent)

add

public <T> void add(Setting<T> setting,
                    ComboBoxModel model)

add

public void add(SettingComponentMediator.SettingMapper mapper)

remove

public void remove(SettingComponentMediator.SettingMapper mapper)

iterator

public Iterator<SettingComponentMediator.SettingMapper> iterator()

apply

public void apply()

revert

public void revert()

revertToDefaults

public void revertToDefaults()


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.