Interface FormatterOptionsPanel
- All Known Implementing Classes:
AbstractFormatterOptionsPanel,CssParserFormatterOptionsPanel,DBeaverFormatterOptionsPanel,EclipseJavaFormatterOptionsPanel,EclipseJavascriptFormatterOptionsPanel,GoogleJavaFormatterOptionsPanel,JacksonJsonFormatterOptionsPanel,JsoupHtmlFormatterOptionsPanel,JsoupXmlFormatterOptionsPanel,JSQLFormatterOptionsPanel,PalantirJavaFormatterOptionsPanel,RevelcXmlFormatterOptionsPanel,SpringJavaFormatterOptionsPanel,SQLFormatterOptionsPanel
public interface FormatterOptionsPanel
- Author:
- bahlef
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(ChangeListener listener) Adds aChangeListenerto thisFormatterOptionsPanelwhich will be informed if a user makes changes to the shown components.Returns theJPanelcomponent for thisFormatterOptionsPanel.voidload(Preferences preferences) Loads the current settings from the givenPreferencesand sets those to the components of thisFormatterOptionsPanel.voidremoveChangeListener(ChangeListener listener) Removes aChangeListenerfrom thisFormatterOptionsPanel.voidstore(Preferences preferences) Stores all the currently set values of all components to the givenPreferences.booleanvalid()Returnstrueif the settings that are currently made are valid, otherwisefalse.
-
Method Details
-
getComponent
JPanel getComponent()Returns theJPanelcomponent for thisFormatterOptionsPanel.- Returns:
- the
JPanelcomponent for thisFormatterOptionsPanel
-
addChangeListener
Adds aChangeListenerto thisFormatterOptionsPanelwhich will be informed if a user makes changes to the shown components.- Parameters:
listener- theChangeListenerto add- See Also:
-
load
Loads the current settings from the givenPreferencesand sets those to the components of thisFormatterOptionsPanel.- Parameters:
preferences- thePreferencesto load from
-
removeChangeListener
Removes aChangeListenerfrom thisFormatterOptionsPanel.- Parameters:
listener- theChangeListenerto remove- See Also:
-
store
Stores all the currently set values of all components to the givenPreferences.- Parameters:
preferences- thePreferenceswhere to store to
-
valid
boolean valid()Returnstrueif the settings that are currently made are valid, otherwisefalse.- Returns:
trueif the settings that are currently made are valid, otherwisefalse
-