|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.properties.AbstractPropertiesKeeper
public abstract class AbstractPropertiesKeeper
Interface for all classes, that keep properties.
Constructor Summary | |
---|---|
AbstractPropertiesKeeper()
|
Method Summary | |
---|---|
static void |
attachKeeper(PropertiesKeeper keeper)
|
static void |
attachKeeper(PropertiesKeeper keeper,
boolean force)
|
void |
getProperties(PropertiesContainer propsCont,
boolean forceAll)
Puts all editable properties to the editor. |
void |
loadProperty(PropertyLoader loader)
Loads (and parses) a certain property from a config file. |
void |
onPropertyChanged(Property property,
java.lang.Object oldValue,
java.lang.Object newValue)
Invoked when a kept Property has changed. |
void |
saveProperties(PropertyWriter writer)
Saves all settings to the config file. |
static void |
setKeeper(Property property,
PropertiesKeeper keeper)
|
static void |
setKeeper(Property property,
PropertiesKeeper keeper,
boolean force)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPropertiesKeeper()
Method Detail |
---|
public void onPropertyChanged(Property property, java.lang.Object oldValue, java.lang.Object newValue)
Property
has changed.
onPropertyChanged
in interface PropertiesKeeper
property
- the changed propertyoldValue
- the old valuenewValue
- the new valuepublic void saveProperties(PropertyWriter writer) throws java.io.IOException
saveProperties
in interface PropertiesKeeper
writer
- the widgets configuration writer to write properties to
java.io.IOException
- if something went wrongpublic void loadProperty(PropertyLoader loader)
loadProperty
in interface PropertiesKeeper
loader
- the property loader to load properties frompublic void getProperties(PropertiesContainer propsCont, boolean forceAll)
getProperties
in interface PropertiesKeeper
propsCont
- the container to add the properties toforceAll
- If true
, all properties provided by this PropertiesKeeper
must be added.
If false
, only the properties, that are relevant for the current PropertiesKeeper
's situation have to be added, some can be ignored.public static final void setKeeper(Property property, PropertiesKeeper keeper, boolean force)
public static final void setKeeper(Property property, PropertiesKeeper keeper)
public static final void attachKeeper(PropertiesKeeper keeper, boolean force)
public static final void attachKeeper(PropertiesKeeper keeper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |