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
public final class DefaultLogixNGPreferences extends PreferencesBean implements LogixNGPreferences
Preferences for LogixNG
-
-
Field Summary
-
Fields inherited from class jmri.beans.PreferencesBean
DIRTY, RESTART_REQUIRED
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description DefaultLogixNGPreferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(LogixNGPreferences prefs)Apply other preferences to this classbooleancompareValuesDifferent(LogixNGPreferences prefs)Compare if the values are different from the other preferences.MaleSocket.ErrorHandlingTypegetErrorHandlingType()Get the default error handling type.IfThenElse.ExecuteTypegetIfThenElseExecuteTypeDefault()Get the default execute type for IfThenElse.booleangetInstallDebugger()Get whenether the debugger should be installed or nog.booleangetLogAllAfter()Get log all after.booleangetLogAllBefore()Get log all before.booleangetShowSystemNameInException()Get whether system names should be shown or not in exceptions.booleangetShowSystemUserNames()Get whenether system names and user names should be visible for actions and expressions.booleangetStartLogixNGOnStartup()Get whenether LogixNG should be started when the program starts or a panel is loaded.booleangetStrictTypingGlobalVariables()Get whenether strict typing should be used for global variables.booleangetStrictTypingLocalVariables()Get whenether strict typing should be used for local variables.booleangetTreeEditorHighlightRow()Get whether row in tree editor should be highlighted or not.voidsave()Save the preferencesvoidsetErrorHandlingType(MaleSocket.ErrorHandlingType type)Set the default error handling type.voidsetIfThenElseExecuteTypeDefault(IfThenElse.ExecuteType value)Set 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, setRestartRequired
-
Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
-
-
-
Constructor Detail
-
DefaultLogixNGPreferences
public DefaultLogixNGPreferences()
-
-
Method Detail
-
compareValuesDifferent
public boolean compareValuesDifferent(LogixNGPreferences prefs)
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
public void apply(LogixNGPreferences prefs)
Description copied from interface:LogixNGPreferencesApply other preferences to this class- Specified by:
applyin interfaceLogixNGPreferences- Parameters:
prefs- the other preferences
-
save
public void save()
Description copied from interface:LogixNGPreferencesSave the preferences- Specified by:
savein interfaceLogixNGPreferences
-
setStartLogixNGOnStartup
public void setStartLogixNGOnStartup(boolean value)
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
public boolean 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
public void setShowSystemUserNames(boolean value)
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
public boolean 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
public void setInstallDebugger(boolean value)
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
public boolean 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
public void setErrorHandlingType(MaleSocket.ErrorHandlingType type)
Description copied from interface:LogixNGPreferencesSet the default error handling type.- Specified by:
setErrorHandlingTypein interfaceLogixNGPreferences- Parameters:
type- the error handling type
-
getErrorHandlingType
public MaleSocket.ErrorHandlingType getErrorHandlingType()
Description copied from interface:LogixNGPreferencesGet the default error handling type.- Specified by:
getErrorHandlingTypein interfaceLogixNGPreferences- Returns:
- the error handling type
-
setTreeEditorHighlightRow
public void setTreeEditorHighlightRow(boolean value)
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
public boolean 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
public void setShowSystemNameInException(boolean value)
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
public boolean 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
public void setStrictTypingGlobalVariables(boolean value)
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
public boolean 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
public void setStrictTypingLocalVariables(boolean value)
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
public boolean 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
public void setIfThenElseExecuteTypeDefault(IfThenElse.ExecuteType value)
Description copied from interface:LogixNGPreferencesSet the default execute type for IfThenElse.- Specified by:
setIfThenElseExecuteTypeDefaultin interfaceLogixNGPreferences- Parameters:
value- the default
-
getIfThenElseExecuteTypeDefault
public IfThenElse.ExecuteType getIfThenElseExecuteTypeDefault()
Description copied from interface:LogixNGPreferencesGet the default execute type for IfThenElse.- Specified by:
getIfThenElseExecuteTypeDefaultin interfaceLogixNGPreferences- Returns:
- the default
-
setLogAllBefore
public void setLogAllBefore(boolean value)
Description copied from interface:LogixNGPreferencesSet log all before.- Specified by:
setLogAllBeforein interfaceLogixNGPreferences- Parameters:
value- true if log all before, false otherwise
-
getLogAllBefore
public boolean getLogAllBefore()
Description copied from interface:LogixNGPreferencesGet log all before.- Specified by:
getLogAllBeforein interfaceLogixNGPreferences- Returns:
- true if log all before, false otherwise
-
setLogAllAfter
public void setLogAllAfter(boolean value)
Description copied from interface:LogixNGPreferencesSet log all after.- Specified by:
setLogAllAfterin interfaceLogixNGPreferences- Parameters:
value- true if log all after, false otherwise
-
getLogAllAfter
public boolean getLogAllAfter()
Description copied from interface:LogixNGPreferencesGet log all after.- Specified by:
getLogAllAfterin interfaceLogixNGPreferences- Returns:
- true if log all after, false otherwise
-
-