Class DefaultLogixNGPreferences
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.beans.PreferencesBean
jmri.jmrit.logixng.implementation.DefaultLogixNGPreferences
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider,LogixNGPreferences
Preferences for LogixNG
-
Field Summary
Fields inherited from class jmri.beans.PreferencesBean
DIRTY, RESTART_REQUIREDFields inherited from class jmri.beans.Bean
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(LogixNGPreferences prefs) Apply other preferences to this classbooleanCompare if the values are different from the other preferences.Get the default error handling type.Get the default execute type for IfThenElse.booleanGet whenether the debugger should be installed or nog.booleanGet log all after.booleanGet log all before.booleanGet whether system names should be shown or not in exceptions.booleanGet whenether system names and user names should be visible for actions and expressions.booleanGet whenether LogixNG should be started when the program starts or a panel is loaded.booleanGet whenether strict typing should be used for global variables.booleanGet whenether strict typing should be used for local variables.booleanGet whether row in tree editor should be highlighted or not.voidsave()Save the preferencesvoidSet the default error handling type.voidSet the default execute type for IfThenElse.voidsetInstallDebugger(boolean value) Set whenether the debugger should be installed or nog.voidsetLogAllAfter(boolean value) Set log all after.voidsetLogAllBefore(boolean value) Set log all before.voidsetShowSystemNameInException(boolean value) Set whether system names should be shown or not in exceptions.voidsetShowSystemUserNames(boolean value) Set whenether system names and user names should be visible for actions and expressions.voidsetStartLogixNGOnStartup(boolean value) Set whenether LogixNG should be started when the program starts or a panel is loaded.voidsetStrictTypingGlobalVariables(boolean value) Set whenether strict typing should be used for global variables.voidsetStrictTypingLocalVariables(boolean value) Set whenether strict typing should be used for local variables.voidsetTreeEditorHighlightRow(boolean value) Set whether row in tree editor should be highlighted or not.Methods inherited from class jmri.beans.PreferencesBean
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getProfile, isDirty, isRestartRequired, setIsDirty, setRestartRequiredMethods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Constructor Details
-
DefaultLogixNGPreferences
public DefaultLogixNGPreferences()
-
-
Method Details
-
compareValuesDifferent
Description copied from interface:LogixNGPreferencesCompare if the values are different from the other preferences.- Specified by:
compareValuesDifferentin interfaceLogixNGPreferences- Parameters:
prefs- the other preferences to check- Returns:
- true if preferences differ, false otherwise
-
apply
Description copied from interface:LogixNGPreferencesApply other preferences to this class- Specified by:
applyin interfaceLogixNGPreferences- Parameters:
prefs- the other preferences
-
save
Description copied from interface:LogixNGPreferencesSave the preferences- Specified by:
savein interfaceLogixNGPreferences
-
setStartLogixNGOnStartup
Description copied from interface:LogixNGPreferencesSet whenether LogixNG should be started when the program starts or a panel is loaded.- Specified by:
setStartLogixNGOnStartupin interfaceLogixNGPreferences- Parameters:
value- true if LogixNG should start on program start or when a panel is loaded, false otherwise
-
getStartLogixNGOnStartup
Description copied from interface:LogixNGPreferencesGet whenether LogixNG should be started when the program starts or a panel is loaded.- Specified by:
getStartLogixNGOnStartupin interfaceLogixNGPreferences- Returns:
- true if LogixNG should start on program start or when a panel is loaded, false otherwise
-
setShowSystemUserNames
Description copied from interface:LogixNGPreferencesSet whenether system names and user names should be visible for actions and expressions.- Specified by:
setShowSystemUserNamesin interfaceLogixNGPreferences- Parameters:
value- true if names should be visible, false otherwise
-
getShowSystemUserNames
Description copied from interface:LogixNGPreferencesGet whenether system names and user names should be visible for actions and expressions.- Specified by:
getShowSystemUserNamesin interfaceLogixNGPreferences- Returns:
- true if names should be visible, false otherwise
-
setInstallDebugger
Description copied from interface:LogixNGPreferencesSet whenether the debugger should be installed or nog.- Specified by:
setInstallDebuggerin interfaceLogixNGPreferences- Parameters:
value- true if the debugger should be installed, false otherwise
-
getInstallDebugger
Description copied from interface:LogixNGPreferencesGet whenether the debugger should be installed or nog.- Specified by:
getInstallDebuggerin interfaceLogixNGPreferences- Returns:
- true if the debugger should be installed, false otherwise
-
setErrorHandlingType
Description copied from interface:LogixNGPreferencesSet the default error handling type.- Specified by:
setErrorHandlingTypein interfaceLogixNGPreferences- Parameters:
type- the error handling type
-
getErrorHandlingType
Description copied from interface:LogixNGPreferencesGet the default error handling type.- Specified by:
getErrorHandlingTypein interfaceLogixNGPreferences- Returns:
- the error handling type
-
setTreeEditorHighlightRow
Description copied from interface:LogixNGPreferencesSet whether row in tree editor should be highlighted or not.- Specified by:
setTreeEditorHighlightRowin interfaceLogixNGPreferences- Parameters:
value- true if the row should be highlighted, false otherwise
-
getTreeEditorHighlightRow
Description copied from interface:LogixNGPreferencesGet whether row in tree editor should be highlighted or not.- Specified by:
getTreeEditorHighlightRowin interfaceLogixNGPreferences- Returns:
- true if the row should be highlighted, false otherwise
-
setShowSystemNameInException
Description copied from interface:LogixNGPreferencesSet whether system names should be shown or not in exceptions.- Specified by:
setShowSystemNameInExceptionin interfaceLogixNGPreferences- Parameters:
value- true if system names should be shown, false otherwise
-
getShowSystemNameInException
Description copied from interface:LogixNGPreferencesGet whether system names should be shown or not in exceptions.- Specified by:
getShowSystemNameInExceptionin interfaceLogixNGPreferences- Returns:
- true if the system names should be shown, false otherwise
-
setStrictTypingGlobalVariables
Description copied from interface:LogixNGPreferencesSet whenether strict typing should be used for global variables.- Specified by:
setStrictTypingGlobalVariablesin interfaceLogixNGPreferences- Parameters:
value- true if strict typing should be used for global variables, false otherwise
-
getStrictTypingGlobalVariables
Description copied from interface:LogixNGPreferencesGet whenether strict typing should be used for global variables.- Specified by:
getStrictTypingGlobalVariablesin interfaceLogixNGPreferences- Returns:
- true if strict typing should be used for global variables, false otherwise
-
setStrictTypingLocalVariables
Description copied from interface:LogixNGPreferencesSet whenether strict typing should be used for local variables.- Specified by:
setStrictTypingLocalVariablesin interfaceLogixNGPreferences- Parameters:
value- true if strict typing should be used for local variables, false otherwise
-
getStrictTypingLocalVariables
Description copied from interface:LogixNGPreferencesGet whenether strict typing should be used for local variables.- Specified by:
getStrictTypingLocalVariablesin interfaceLogixNGPreferences- Returns:
- true if strict typing should be used for local variables, false otherwise
-
setIfThenElseExecuteTypeDefault
Description copied from interface:LogixNGPreferencesSet the default execute type for IfThenElse.- Specified by:
setIfThenElseExecuteTypeDefaultin interfaceLogixNGPreferences- Parameters:
value- the default
-
getIfThenElseExecuteTypeDefault
Description copied from interface:LogixNGPreferencesGet the default execute type for IfThenElse.- Specified by:
getIfThenElseExecuteTypeDefaultin interfaceLogixNGPreferences- Returns:
- the default
-
setLogAllBefore
Description copied from interface:LogixNGPreferencesSet log all before.- Specified by:
setLogAllBeforein interfaceLogixNGPreferences- Parameters:
value- true if log all before, false otherwise
-
getLogAllBefore
Description copied from interface:LogixNGPreferencesGet log all before.- Specified by:
getLogAllBeforein interfaceLogixNGPreferences- Returns:
- true if log all before, false otherwise
-
setLogAllAfter
Description copied from interface:LogixNGPreferencesSet log all after.- Specified by:
setLogAllAfterin interfaceLogixNGPreferences- Parameters:
value- true if log all after, false otherwise
-
getLogAllAfter
Description copied from interface:LogixNGPreferencesGet log all after.- Specified by:
getLogAllAfterin interfaceLogixNGPreferences- Returns:
- true if log all after, false otherwise
-