public class XJPreferences extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
XJPreferences.ButtonGroupBindingAction |
protected class |
XJPreferences.ColorChooserBindingMouseListener |
protected class |
XJPreferences.JCheckBoxBindingAction |
protected class |
XJPreferences.JComboBoxBindingAction |
protected class |
XJPreferences.JSpinnerBindingAction |
protected class |
XJPreferences.JTextFieldBindingAction |
protected class |
XJPreferences.JTextPaneBindingAction |
protected class |
XJPreferences.JToggleButtonBindingAction |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,EventListener> |
bindings |
protected Preferences |
prefs |
| Constructor and Description |
|---|
XJPreferences(Class c) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyPreference(String key) |
void |
applyPreferences() |
void |
bindToPreferences(ButtonGroup component,
String key,
String defaultValue) |
void |
bindToPreferences(JCheckBox component,
String key,
boolean defaultValue) |
void |
bindToPreferences(JComboBox component,
String key,
int defaultValue) |
void |
bindToPreferences(JComboBox component,
String key,
String defaultValue) |
void |
bindToPreferences(JPanel component,
String key,
Color defaultValue) |
void |
bindToPreferences(JSpinner component,
String key,
int defaultValue) |
void |
bindToPreferences(JTextField component,
String key,
int defaultValue) |
void |
bindToPreferences(JTextField component,
String key,
String defaultValue) |
void |
bindToPreferences(JTextPane component,
String key,
String defaultValue) |
void |
bindToPreferences(JToggleButton component,
String key,
boolean defaultValue) |
void |
defaultPreference(JCheckBox component,
String key,
boolean defaultValue) |
void |
defaultPreference(JPanel component,
String key,
Color defaultValue) |
void |
flush() |
boolean |
getBoolean(String key,
boolean def) |
protected AbstractButton |
getButtonWithActionCommand(ButtonGroup group,
String actionCommand) |
Color |
getColor(String key,
Color def) |
int |
getInt(String key,
int def) |
String[] |
getKeys() |
List<String> |
getList(String key) |
Object |
getObject(String key,
Object defaultObject) |
Preferences |
getPreferences() |
String |
getString(String key,
String def) |
void |
remove(String key) |
void |
setBoolean(String key,
boolean value) |
void |
setColor(String key,
Color value) |
void |
setInt(String key,
int value) |
void |
setInt(String key,
Integer value) |
void |
setList(String key,
List<String> array) |
void |
setObject(String key,
Object obj) |
void |
setString(String key,
String value) |
void |
unbindFromPreferences(JCheckBox component,
String key) |
void |
unbindFromPreferences(JToggleButton component,
String key) |
protected Preferences prefs
protected Map<String,EventListener> bindings
public XJPreferences(Class c)
public void flush()
public void setInt(String key, int value)
public int getInt(String key, int def)
public void setBoolean(String key, boolean value)
public boolean getBoolean(String key, boolean def)
public void remove(String key)
public String[] getKeys()
public Preferences getPreferences()
public void bindToPreferences(JComboBox component, String key, String defaultValue)
public void bindToPreferences(JTextField component, String key, int defaultValue)
public void bindToPreferences(JTextField component, String key, String defaultValue)
public void bindToPreferences(JTextPane component, String key, String defaultValue)
public void defaultPreference(JCheckBox component, String key, boolean defaultValue)
public void bindToPreferences(JCheckBox component, String key, boolean defaultValue)
public void bindToPreferences(JToggleButton component, String key, boolean defaultValue)
public void unbindFromPreferences(JToggleButton component, String key)
public void bindToPreferences(ButtonGroup component, String key, String defaultValue)
public void applyPreferences()
public void applyPreference(String key)
protected AbstractButton getButtonWithActionCommand(ButtonGroup group, String actionCommand)
Copyright © 2013. All rights reserved.