org.xnap.commons.gui.settings
Class SettingComponentMediator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SettingComponentMediator
public SettingComponentMediator()
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.