public class AddePreferences extends java.lang.Object
AddeEntries, though there has been some talk of allowing
for reordering.| Modifier and Type | Class and Description |
|---|---|
static class |
AddePreferences.AddePrefConglomeration
This class is essentially a specialized tuple of the different things
required by the
IdvPreferenceManager. |
static class |
AddePreferences.Selection |
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JButton |
allOff
Allows the user to disable all
AddeEntrys, without
disabling the preference panel. |
private javax.swing.JButton |
allOn
Allows the user to enable all
AddeEntrys, without
disabling the preference panel. |
private javax.swing.JPanel |
cbPanel
Panel that contains the various
AddeEntrys. |
private javax.swing.JScrollPane |
cbScroller |
private EntryStore |
entryStore
Contains the lists of ADDE servers that we'll use as content.
|
private static org.slf4j.Logger |
logger |
private static java.lang.String |
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.
|
| Constructor and Description |
|---|
AddePreferences(EntryStore entryStore)
Prepares a new preference panel based upon the supplied
EntryStore. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPanel(McIdasPreferenceManager prefManager)
Adds the various
AddePreferences.AddePrefConglomeration objects to the prefManager. |
AddePreferences.AddePrefConglomeration |
buildPanel(McIDASV mcv)
Builds the remote server preference panel, using the given
McIdasPreferenceManager. |
private AddePreferences.Selection |
getSpecifyServers()
Returns the value of the
PREF_LIST_SPECIFY preference. |
void |
handleCategoryToggle(java.lang.String topic,
ucar.unidata.ui.CheckboxCategoryPanel catPanel)
Listens for
CheckboxCategoryPanel updates and
stores the current status. |
void |
setGUIEnabled(boolean enabled)
|
private void |
setSpecifyServers(AddePreferences.Selection entrySelection)
Sets the value of the
PREF_LIST_SPECIFY preference to
value. |
private static final org.slf4j.Logger logger
private static final java.lang.String PREF_LIST_SPECIFY
private final EntryStore entryStore
private javax.swing.JScrollPane cbScroller
private javax.swing.JButton allOn
AddeEntrys, without
disabling the preference panel.public AddePreferences(EntryStore entryStore)
EntryStore.entryStore - The EntryStore to query. Cannot be
null.java.lang.NullPointerException - if entryStore is null.public void addPanel(McIdasPreferenceManager prefManager)
AddePreferences.AddePrefConglomeration objects to the prefManager.prefManager - McIDAS-V's PreferenceManager. Should not be null.public void handleCategoryToggle(java.lang.String topic, ucar.unidata.ui.CheckboxCategoryPanel catPanel)
CheckboxCategoryPanel updates and
stores the current status.topic - Topic of interest is "CheckboxCategoryPanel.PanelToggled".catPanel - The object that changed.public AddePreferences.AddePrefConglomeration buildPanel(McIDASV mcv)
McIdasPreferenceManager.mcv - Reference to the McIDAS-V object; mostly used to control the
server manager GUI. Cannot be null.public void setGUIEnabled(boolean enabled)
enabled - true enables the components and false disables.private void setSpecifyServers(AddePreferences.Selection entrySelection)
PREF_LIST_SPECIFY preference to
value.entrySelection - New value to associate with PREF_LIST_SPECIFY.private AddePreferences.Selection getSpecifyServers()
PREF_LIST_SPECIFY preference. Defaults
to "ALL".PREF_LIST_SPECIFY preference.