public abstract class SettingsControl<T> extends Object
| Constructor and Description |
|---|
SettingsControl(T object) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
fromProperties(Properties properties) |
T |
get() |
protected boolean |
getBoolean(String key) |
protected boolean |
getBoolean(String key,
boolean defaultValue) |
protected float |
getFloat(String key,
float defaultValue) |
protected int |
getInt(String key,
int defaultValue) |
Properties |
getSettings() |
void |
set(T object) |
protected void |
setBoolean(String key,
boolean value) |
void |
setSettings(Properties settings) |
public SettingsControl(T object)
public abstract void fromProperties(Properties properties)
protected boolean getBoolean(String key, boolean defaultValue)
protected boolean getBoolean(String key)
protected void setBoolean(String key, boolean value)
protected float getFloat(String key, float defaultValue)
protected int getInt(String key, int defaultValue)
public T get()
public void set(T object)
public Properties getSettings()
public void setSettings(Properties settings)
Copyright © 2014. All rights reserved.