public class AddePreferences extends 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 JButton |
allOff
Allows the user to disable all
AddeEntry s, without
disabling the preference panel. |
private JButton |
allOn
Allows the user to enable all
AddeEntry s, without
disabling the preference panel. |
private JPanel |
cbPanel
Panel that contains the various
AddeEntry s. |
private 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 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(String topic,
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 String PREF_LIST_SPECIFY
private final EntryStore entryStore
private JScrollPane cbScroller
private JButton allOn
AddeEntry
s, without
disabling the preference panel.public AddePreferences(EntryStore entryStore)
EntryStore
.entryStore
- The EntryStore
to query. Cannot be
null
.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(String topic, 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.