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 TypeMethodDescriptionvoid
addChangeListener
(ChangeListener listener) Adds aChangeListener
to thisFormatterOptionsPanel
which will be informed if a user makes changes to the shown components.Returns theJPanel
component for thisFormatterOptionsPanel
.void
load
(Preferences preferences) Loads the current settings from the givenPreferences
and sets those to the components of thisFormatterOptionsPanel
.void
removeChangeListener
(ChangeListener listener) Removes aChangeListener
from thisFormatterOptionsPanel
.void
store
(Preferences preferences) Stores all the currently set values of all components to the givenPreferences
.boolean
valid()
Returnstrue
if the settings that are currently made are valid, otherwisefalse
.
-
Method Details
-
getComponent
JPanel getComponent()Returns theJPanel
component for thisFormatterOptionsPanel
.- Returns:
- the
JPanel
component for thisFormatterOptionsPanel
-
addChangeListener
Adds aChangeListener
to thisFormatterOptionsPanel
which will be informed if a user makes changes to the shown components.- Parameters:
listener
- theChangeListener
to add- See Also:
-
load
Loads the current settings from the givenPreferences
and sets those to the components of thisFormatterOptionsPanel
.- Parameters:
preferences
- thePreferences
to load from
-
removeChangeListener
Removes aChangeListener
from thisFormatterOptionsPanel
.- Parameters:
listener
- theChangeListener
to remove- See Also:
-
store
Stores all the currently set values of all components to the givenPreferences
.- Parameters:
preferences
- thePreferences
where to store to
-
valid
boolean valid()Returnstrue
if the settings that are currently made are valid, otherwisefalse
.- Returns:
true
if the settings that are currently made are valid, otherwisefalse
-