Class ExternalFormatterPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.funfried.netbeans.plugins.external.formatter.ui.options.ExternalFormatterPanel
All Implemented Interfaces:
VerifiableConfigPanel, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class ExternalFormatterPanel extends JPanel implements VerifiableConfigPanel, ChangeListener
The options panel for this plugin.
Author:
markiewb, bahlef
See Also:
  • Constructor Details

    • ExternalFormatterPanel

      public ExternalFormatterPanel(Preferences preferences, Project project)
      Creates a new instance of ExternalFormatterPanel.
      Parameters:
      preferences - the Preferences
      project - the Project which this panel is used to change the settings for or null if this panel is used to change the global settings
  • Method Details

    • addChangeListener

      public void addChangeListener(ChangeListener listener)
      Adds a given ChangeListener to this option dialog, which will be notified as soon as an user has changed the state of the components inside this options dialog.
      Parameters:
      listener - the ChangeListener to add
    • removeChangeListener

      public void removeChangeListener(ChangeListener listener)
      Removes a given ChangeListener from this option dialog.
      Parameters:
      listener - the ChangeListener which should be removed
    • load

      public void load()
      Loads the configuration and sets the values to the UI components.
      Specified by:
      load in interface VerifiableConfigPanel
    • store

      public void store()
      Stores the configuration from the current state of UI components.
      Specified by:
      store in interface VerifiableConfigPanel
    • valid

      public boolean valid()
      Returns true if and only if the configuration is valid, otherwise false.
      Specified by:
      valid in interface VerifiableConfigPanel
      Returns:
      true if and only if the configuration is valid, otherwise false
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener