Class AddePreferences
java.lang.Object
edu.wisc.ssec.mcidasv.servermanager.AddePreferences
The ADDE Server preference panel is almost a read-only
"view" of the current state of the server manager. The only
thing that users can change from here is the visibility of individual
AddeEntries
, though there has been some talk of allowing
for reordering.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class is essentially a specialized tuple of the different things required by theIdvPreferenceManager
.static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JButton
Allows the user to disable allAddeEntry
s, without disabling the preference panel.private JButton
Allows the user to enable allAddeEntry
s, without disabling the preference panel.private JPanel
Panel that contains the variousAddeEntry
s.private JScrollPane
private final EntryStore
Contains the lists of ADDE servers that we'll use as content.private static final org.slf4j.Logger
private static final String
Property ID that allows McIDAS-V to remember whether or not the user has chosen to use all available ADDE servers or has specified the "active" servers. -
Constructor Summary
ConstructorsConstructorDescriptionAddePreferences
(EntryStore entryStore) Prepares a new preference panel based upon the suppliedEntryStore
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPanel
(McIdasPreferenceManager prefManager) Adds the variousAddePreferences.AddePrefConglomeration
objects to theprefManager
.buildPanel
(McIDASV mcv) Builds the remote server preference panel, using the givenMcIdasPreferenceManager
.private AddePreferences.Selection
Returns the value of thePREF_LIST_SPECIFY
preference.void
handleCategoryToggle
(String topic, CheckboxCategoryPanel catPanel) Listens forCheckboxCategoryPanel
updates and stores the current status.void
setGUIEnabled
(boolean enabled) private void
setSpecifyServers
(AddePreferences.Selection entrySelection) Sets the value of thePREF_LIST_SPECIFY
preference tovalue
.
-
Field Details
-
logger
-
PREF_LIST_SPECIFY
Property ID that allows McIDAS-V to remember whether or not the user has chosen to use all available ADDE servers or has specified the "active" servers.- See Also:
-
entryStore
Contains the lists of ADDE servers that we'll use as content. -
cbPanel
Panel that contains the variousAddeEntry
s. -
cbScroller
-
allOn
Allows the user to enable allAddeEntry
s, without disabling the preference panel. -
allOff
Allows the user to disable allAddeEntry
s, without disabling the preference panel.
-
-
Constructor Details
-
AddePreferences
Prepares a new preference panel based upon the suppliedEntryStore
.- Parameters:
entryStore
- TheEntryStore
to query. Cannot benull
.- Throws:
NullPointerException
- ifentryStore
isnull
.
-
-
Method Details
-
addPanel
Adds the variousAddePreferences.AddePrefConglomeration
objects to theprefManager
.- Parameters:
prefManager
- McIDAS-V'sPreferenceManager
. Should not benull
.
-
handleCategoryToggle
Listens forCheckboxCategoryPanel
updates and stores the current status.- Parameters:
topic
- Topic of interest is"CheckboxCategoryPanel.PanelToggled"
.catPanel
- The object that changed.
-
buildPanel
Builds the remote server preference panel, using the givenMcIdasPreferenceManager
.- Parameters:
mcv
- Reference to the McIDAS-V object; mostly used to control the server manager GUI. Cannot benull
.- Returns:
- An object containing the various components required of a preference panel.
-
setGUIEnabled
Enables or disables: Enabling the components allows the user to pick and choose servers, while disabling enables all servers.- Parameters:
enabled
-true
enables the components andfalse
disables.
-
setSpecifyServers
Sets the value of thePREF_LIST_SPECIFY
preference tovalue
.- Parameters:
entrySelection
- New value to associate withPREF_LIST_SPECIFY
.
-
getSpecifyServers
Returns the value of thePREF_LIST_SPECIFY
preference. Defaults to "ALL".- Returns:
- Value of the
PREF_LIST_SPECIFY
preference.
-