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 classThis class is essentially a specialized tuple of the different things required by theIdvPreferenceManager.static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JButtonAllows the user to disable allAddeEntrys, without disabling the preference panel.private JButtonAllows the user to enable allAddeEntrys, without disabling the preference panel.private JPanelPanel that contains the variousAddeEntrys.private JScrollPaneprivate final EntryStoreContains the lists of ADDE servers that we'll use as content.private static final org.slf4j.Loggerprivate static final StringProperty 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 TypeMethodDescriptionvoidaddPanel(McIdasPreferenceManager prefManager) Adds the variousAddePreferences.AddePrefConglomerationobjects to theprefManager.buildPanel(McIDASV mcv) Builds the remote server preference panel, using the givenMcIdasPreferenceManager.private AddePreferences.SelectionReturns the value of thePREF_LIST_SPECIFYpreference.voidhandleCategoryToggle(String topic, CheckboxCategoryPanel catPanel) Listens forCheckboxCategoryPanelupdates and stores the current status.voidsetGUIEnabled(boolean enabled) private voidsetSpecifyServers(AddePreferences.Selection entrySelection) Sets the value of thePREF_LIST_SPECIFYpreference 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 variousAddeEntrys. -
cbScroller
-
allOn
Allows the user to enable allAddeEntrys, without disabling the preference panel. -
allOff
Allows the user to disable allAddeEntrys, without disabling the preference panel.
-
-
Constructor Details
-
AddePreferences
Prepares a new preference panel based upon the suppliedEntryStore.- Parameters:
entryStore- TheEntryStoreto query. Cannot benull.- Throws:
NullPointerException- ifentryStoreisnull.
-
-
Method Details
-
addPanel
Adds the variousAddePreferences.AddePrefConglomerationobjects to theprefManager.- Parameters:
prefManager- McIDAS-V'sPreferenceManager. Should not benull.
-
handleCategoryToggle
Listens forCheckboxCategoryPanelupdates 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-trueenables the components andfalsedisables.
-
setSpecifyServers
Sets the value of thePREF_LIST_SPECIFYpreference tovalue.- Parameters:
entrySelection- New value to associate withPREF_LIST_SPECIFY.
-
getSpecifyServers
Returns the value of thePREF_LIST_SPECIFYpreference. Defaults to "ALL".- Returns:
- Value of the
PREF_LIST_SPECIFYpreference.
-