Package bluej.extensions2
Interface PreferenceGenerator
-
public interface PreferenceGeneratorExtensions which wish to add preference items to BlueJ's Tools/Preferences/Extensions panel should register an instance of PreferenceGenerator with the BlueJ proxy object. The PreferenceGenerator allows the creation of aPaneto contain preference data, and the loading and saving of that data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.scene.layout.PanegetWindow()BlueJ will call this method to get thePanewhere preferences for this extension are.voidloadValues()When this method is called the Extension should load its current values into its preference panel.voidsaveValues()When this method is called the Extension should save values from the preference panel into its internal state.
-
-
-
Method Detail
-
getWindow
javafx.scene.layout.Pane getWindow()
BlueJ will call this method to get thePanewhere preferences for this extension are. Preferences can be laid out as desired.- Returns:
- A
Paneobject the extension can add preference data into.
-
loadValues
void loadValues()
When this method is called the Extension should load its current values into its preference panel. This is called from the JavaFX (GUI) thread, so be quick.
-
saveValues
void saveValues()
When this method is called the Extension should save values from the preference panel into its internal state. Value checking can be performed at this point. This is called from the JavaFX (GUI) thread, so be quick.
-
-