Interface PreferenceGenerator


  • public interface PreferenceGenerator
    Extensions 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 a Pane to 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.Pane getWindow()
      BlueJ will call this method to get the Pane where preferences for this extension are.
      void loadValues()
      When this method is called the Extension should load its current values into its preference panel.
      void saveValues()
      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 the Pane where preferences for this extension are. Preferences can be laid out as desired.
        Returns:
        A Pane object 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.