Package jmri.jmrit.logixng
Interface LogixNGPreferences
-
- All Known Implementing Classes:
DefaultLogixNGPreferences
public interface LogixNGPreferences
Preferences for LogixNG
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(LogixNGPreferences prefs)
Apply other preferences to this classboolean
compareValuesDifferent(LogixNGPreferences prefs)
Compare if the values are different from the other preferences.MaleSocket.ErrorHandlingType
getErrorHandlingType()
Get the default error handling type.IfThenElse.ExecuteType
getIfThenElseExecuteTypeDefault()
Get the default execute type for IfThenElse.boolean
getInstallDebugger()
Get whenether the debugger should be installed or nog.boolean
getLogAllAfter()
Get log all after.boolean
getLogAllBefore()
Get log all before.boolean
getShowSystemNameInException()
Get whether system names should be shown or not in exceptions.boolean
getShowSystemUserNames()
Get whenether system names and user names should be visible for actions and expressions.boolean
getStartLogixNGOnStartup()
Get whenether LogixNG should be started when the program starts or a panel is loaded.boolean
getStrictTypingGlobalVariables()
Get whenether strict typing should be used for global variables.boolean
getStrictTypingLocalVariables()
Get whenether strict typing should be used for local variables.boolean
getTreeEditorHighlightRow()
Get whether row in tree editor should be highlighted or not.void
save()
Save the preferencesvoid
setErrorHandlingType(MaleSocket.ErrorHandlingType type)
Set the default error handling type.void
setIfThenElseExecuteTypeDefault(IfThenElse.ExecuteType value)
Set the default execute type for IfThenElse.void
setInstallDebugger(boolean value)
Set whenether the debugger should be installed or nog.void
setLogAllAfter(boolean value)
Set log all after.void
setLogAllBefore(boolean value)
Set log all before.void
setShowSystemNameInException(boolean value)
Set whether system names should be shown or not in exceptions.void
setShowSystemUserNames(boolean value)
Set whenether system names and user names should be visible for actions and expressions.void
setStartLogixNGOnStartup(boolean value)
Set whenether LogixNG should be started when the program starts or a panel is loaded.void
setStrictTypingGlobalVariables(boolean value)
Set whenether strict typing should be used for global variables.void
setStrictTypingLocalVariables(boolean value)
Set whenether strict typing should be used for local variables.void
setTreeEditorHighlightRow(boolean value)
Set whether row in tree editor should be highlighted or not.
-
-
-
Method Detail
-
compareValuesDifferent
boolean compareValuesDifferent(LogixNGPreferences prefs)
Compare if the values are different from the other preferences.- Parameters:
prefs
- the other preferences to check- Returns:
- true if preferences differ, false otherwise
-
apply
void apply(LogixNGPreferences prefs)
Apply other preferences to this class- Parameters:
prefs
- the other preferences
-
save
void save()
Save the preferences
-
setStartLogixNGOnStartup
void setStartLogixNGOnStartup(boolean value)
Set whenether LogixNG should be started when the program starts or a panel is loaded.- Parameters:
value
- true if LogixNG should start on program start or when a panel is loaded, false otherwise
-
getStartLogixNGOnStartup
boolean getStartLogixNGOnStartup()
Get whenether LogixNG should be started when the program starts or a panel is loaded.- Returns:
- true if LogixNG should start on program start or when a panel is loaded, false otherwise
-
setShowSystemUserNames
void setShowSystemUserNames(boolean value)
Set whenether system names and user names should be visible for actions and expressions.- Parameters:
value
- true if names should be visible, false otherwise
-
getShowSystemUserNames
boolean getShowSystemUserNames()
Get whenether system names and user names should be visible for actions and expressions.- Returns:
- true if names should be visible, false otherwise
-
setInstallDebugger
void setInstallDebugger(boolean value)
Set whenether the debugger should be installed or nog.- Parameters:
value
- true if the debugger should be installed, false otherwise
-
getInstallDebugger
boolean getInstallDebugger()
Get whenether the debugger should be installed or nog.- Returns:
- true if the debugger should be installed, false otherwise
-
setErrorHandlingType
void setErrorHandlingType(MaleSocket.ErrorHandlingType type)
Set the default error handling type.- Parameters:
type
- the error handling type
-
getErrorHandlingType
MaleSocket.ErrorHandlingType getErrorHandlingType()
Get the default error handling type.- Returns:
- the error handling type
-
setTreeEditorHighlightRow
void setTreeEditorHighlightRow(boolean value)
Set whether row in tree editor should be highlighted or not.- Parameters:
value
- true if the row should be highlighted, false otherwise
-
getTreeEditorHighlightRow
boolean getTreeEditorHighlightRow()
Get whether row in tree editor should be highlighted or not.- Returns:
- true if the row should be highlighted, false otherwise
-
setShowSystemNameInException
void setShowSystemNameInException(boolean value)
Set whether system names should be shown or not in exceptions.- Parameters:
value
- true if system names should be shown, false otherwise
-
getShowSystemNameInException
boolean getShowSystemNameInException()
Get whether system names should be shown or not in exceptions.- Returns:
- true if the system names should be shown, false otherwise
-
setStrictTypingGlobalVariables
void setStrictTypingGlobalVariables(boolean value)
Set whenether strict typing should be used for global variables.- Parameters:
value
- true if strict typing should be used for global variables, false otherwise
-
getStrictTypingGlobalVariables
boolean getStrictTypingGlobalVariables()
Get whenether strict typing should be used for global variables.- Returns:
- true if strict typing should be used for global variables, false otherwise
-
setStrictTypingLocalVariables
void setStrictTypingLocalVariables(boolean value)
Set whenether strict typing should be used for local variables.- Parameters:
value
- true if strict typing should be used for local variables, false otherwise
-
getStrictTypingLocalVariables
boolean getStrictTypingLocalVariables()
Get whenether strict typing should be used for local variables.- Returns:
- true if strict typing should be used for local variables, false otherwise
-
setIfThenElseExecuteTypeDefault
void setIfThenElseExecuteTypeDefault(IfThenElse.ExecuteType value)
Set the default execute type for IfThenElse.- Parameters:
value
- the default
-
getIfThenElseExecuteTypeDefault
IfThenElse.ExecuteType getIfThenElseExecuteTypeDefault()
Get the default execute type for IfThenElse.- Returns:
- the default
-
setLogAllBefore
void setLogAllBefore(boolean value)
Set log all before.- Parameters:
value
- true if log all before, false otherwise
-
getLogAllBefore
boolean getLogAllBefore()
Get log all before.- Returns:
- true if log all before, false otherwise
-
setLogAllAfter
void setLogAllAfter(boolean value)
Set log all after.- Parameters:
value
- true if log all after, false otherwise
-
getLogAllAfter
boolean getLogAllAfter()
Get log all after.- Returns:
- true if log all after, false otherwise
-
-