|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.monitoring.charts.config.PreferencesStorage
public class PreferencesStorage
This class provides an API to store and retrieve the chart configuration preferences, using the preferences mechanism.
| Constructor Summary | |
|---|---|
PreferencesStorage(JPPFChartBuilder chartBuilder)
Initialize this preferences storage with a specified chart builder. |
|
| Method Summary | |
|---|---|
ChartConfiguration |
loadChartConfiguration(Preferences child)
Load a chart configuration from a preferences node. |
void |
loadChartConfigurations()
Load all chart configurations from the preferences tree, and create the corresponding charts. |
ChartConfiguration[] |
loadTabCharts(Preferences tabNode)
Load the chart configurations for a tab from a specified tab preferences node. |
void |
removeAllSaved()
Remove all tabs and charts configurations from the user preferences. |
void |
saveAll()
Save all tabs and charts configurations in the user preferences. |
void |
saveChartConfiguration(TabConfiguration tab,
ChartConfiguration config)
Save a specified chart configuration in the preferences tree. |
void |
saveTabConfiguration(TabConfiguration tab)
Save a specified tab configuration in the preferences tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreferencesStorage(JPPFChartBuilder chartBuilder)
chartBuilder - the chart builder from which to get the charts.| Method Detail |
|---|
public void loadChartConfigurations()
public ChartConfiguration[] loadTabCharts(Preferences tabNode)
tabNode - the tab preferences node that contains the chart configuration nodes.
ChartConfiguration instances.public ChartConfiguration loadChartConfiguration(Preferences child)
child - the preferences node to laod the configuration from.
ChartConfiguration instance.public void saveAll()
public void saveTabConfiguration(TabConfiguration tab)
tab - the tab to save.
public void saveChartConfiguration(TabConfiguration tab,
ChartConfiguration config)
tab - the tab into which to save the configuration.config - the configuration to save.public void removeAllSaved()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||