Package jmri.jmrix.ecos
Class EcosPreferences
- java.lang.Object
-
- jmri.jmrix.ecos.EcosPreferences
-
public class EcosPreferences extends java.lang.Object
Stores User Preferences on how to deal with synchronising the Ecos Database with JMRI.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ASK
(package private) java.lang.Runnable
ecosPreferencesShutDownTask
static int
NO
(package private) java.beans.PropertyChangeSupport
pcs
(package private) boolean
preferencesLoaded
static int
YES
-
Constructor Summary
Constructors Constructor Description EcosPreferences(EcosSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener l)
(package private) void
changeMade()
protected void
firePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
EcosSystemConnectionMemo
getAdaptermemo()
int
getAddLocoToEcos()
int
getAddLocoToJMRI()
int
getAddTurnoutsToEcos()
int
getAddTurnoutsToJMRI()
int
getAdhocLocoFromEcos()
boolean
getChangeMade()
java.lang.String
getEcosLocoDescription()
int
getForceControlFromEcos()
boolean
getLocoControl()
int
getLocoMaster()
java.lang.String
getLocoMasterAsString()
Determine GUI string from system description for how to solve conflicts between rosters in JMRI and ECoS.boolean
getPreferencesLoaded()
int
getRemoveLocoFromEcos()
int
getRemoveLocoFromJMRI()
int
getRemoveTurnoutsFromEcos()
int
getRemoveTurnoutsFromJMRI()
java.lang.String
getRosterAttribute()
java.lang.String
getRosterAttributeSuffix()
java.lang.String
name()
void
removePropertyChangeListener(java.beans.PropertyChangeListener l)
void
resetChangeMade()
Reset is used after the preferences have been loaded for the first time.void
setAddLocoToEcos(int boo)
void
setAddLocoToJMRI(int boo)
void
setAddTurnoutsToEcos(int boo)
void
setAddTurnoutsToJMRI(int boo)
void
setAdhocLocoFromEcos(int boo)
void
setEcosLocoDescription(java.lang.String descript)
void
setForceControlFromEcos(int boo)
void
setLocoControl(boolean boo)
void
setLocoMaster(int master)
void
setLocoMaster(java.lang.String master)
Determine system description from GUI string for how to solve conflicts between rosters in JMRI and ECoS and store in _locomaster.void
setPreferencesLoaded()
void
setRemoveLocoFromEcos(int boo)
void
setRemoveLocoFromJMRI(int boo)
void
setRemoveTurnoutsFromEcos(int boo)
void
setRemoveTurnoutsFromJMRI(int boo)
void
setRosterAttribute(java.lang.String att)
-
-
-
Field Detail
-
preferencesLoaded
boolean preferencesLoaded
-
ecosPreferencesShutDownTask
java.lang.Runnable ecosPreferencesShutDownTask
-
ASK
public static final int ASK
- See Also:
- Constant Field Values
-
NO
public static final int NO
- See Also:
- Constant Field Values
-
YES
public static final int YES
- See Also:
- Constant Field Values
-
pcs
java.beans.PropertyChangeSupport pcs
-
-
Constructor Detail
-
EcosPreferences
public EcosPreferences(EcosSystemConnectionMemo memo)
-
-
Method Detail
-
getPreferencesLoaded
public boolean getPreferencesLoaded()
-
setPreferencesLoaded
public void setPreferencesLoaded()
-
getChangeMade
public boolean getChangeMade()
-
resetChangeMade
public void resetChangeMade()
Reset is used after the preferences have been loaded for the first time.
-
getAddLocoToEcos
public int getAddLocoToEcos()
-
setAddLocoToEcos
public void setAddLocoToEcos(int boo)
-
getAddLocoToJMRI
public int getAddLocoToJMRI()
-
setAddLocoToJMRI
public void setAddLocoToJMRI(int boo)
-
getEcosLocoDescription
public java.lang.String getEcosLocoDescription()
-
setEcosLocoDescription
public void setEcosLocoDescription(java.lang.String descript)
-
getLocoMaster
public int getLocoMaster()
-
setLocoMaster
public void setLocoMaster(int master)
-
setLocoMaster
public void setLocoMaster(java.lang.String master)
Determine system description from GUI string for how to solve conflicts between rosters in JMRI and ECoS and store in _locomaster.Keep identical to
PreferencesPane
#initializeMasterControlCombo(javax.swing.JComboBox)- Parameters:
master
- setting for conflict syncing
-
getLocoMasterAsString
public java.lang.String getLocoMasterAsString()
Determine GUI string from system description for how to solve conflicts between rosters in JMRI and ECoS.Keep identical to
PreferencesPane
#initializeMasterControlCombo(javax.swing.JComboBox)- Returns:
- GUI string
-
getAdhocLocoFromEcos
public int getAdhocLocoFromEcos()
-
setAdhocLocoFromEcos
public void setAdhocLocoFromEcos(int boo)
-
getForceControlFromEcos
public int getForceControlFromEcos()
-
setForceControlFromEcos
public void setForceControlFromEcos(int boo)
-
getLocoControl
public boolean getLocoControl()
-
setLocoControl
public void setLocoControl(boolean boo)
-
getRemoveLocoFromEcos
public int getRemoveLocoFromEcos()
-
setRemoveLocoFromEcos
public void setRemoveLocoFromEcos(int boo)
-
getRemoveLocoFromJMRI
public int getRemoveLocoFromJMRI()
-
setRemoveLocoFromJMRI
public void setRemoveLocoFromJMRI(int boo)
-
getAddTurnoutsToEcos
public int getAddTurnoutsToEcos()
-
setAddTurnoutsToEcos
public void setAddTurnoutsToEcos(int boo)
-
getAddTurnoutsToJMRI
public int getAddTurnoutsToJMRI()
-
setAddTurnoutsToJMRI
public void setAddTurnoutsToJMRI(int boo)
-
getRemoveTurnoutsFromJMRI
public int getRemoveTurnoutsFromJMRI()
-
setRemoveTurnoutsFromJMRI
public void setRemoveTurnoutsFromJMRI(int boo)
-
getRemoveTurnoutsFromEcos
public int getRemoveTurnoutsFromEcos()
-
setRemoveTurnoutsFromEcos
public void setRemoveTurnoutsFromEcos(int boo)
-
setRosterAttribute
public void setRosterAttribute(java.lang.String att)
-
getRosterAttribute
public java.lang.String getRosterAttribute()
-
getRosterAttributeSuffix
public java.lang.String getRosterAttributeSuffix()
-
name
public java.lang.String name()
-
changeMade
void changeMade()
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
-
firePropertyChange
protected void firePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
-
getAdaptermemo
public EcosSystemConnectionMemo getAdaptermemo()
- Returns:
- the adaptermemo
-
-