Class AbstractClientContext
java.lang.Object
com.inductiveautomation.ignition.client.model.AbstractClientContext
- All Implemented Interfaces:
ClientContext
,CommonContext
- Direct Known Subclasses:
ClientContextImpl
,DesignerContextImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PropertyChangeSupport
protected GlobalProps
protected LoggerEx
protected LoggingManagerImpl
protected Project
protected String
protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractClientContext
(LaunchContext launchContext, String projectName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String property, PropertyChangeListener pcl) protected abstract FunctionFactory
Returns the current project's user sourceReturns the current project's default datasource nameReturns the current project's default Tag providerReturns a list of currently available Edge editions (either licensed or in trial).com.google.common.eventbus.EventBus
This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)Returns the core function factory used by expressions.protected <T> T
getOrDefault
(ResourceType type, Supplier<T> defaultSupplier) Returns the progress manager, which allows the execution of long running or async tasks.The name of the project this client will be / is runningint
Returns the rate at which Tags should be polled for updatescom.google.common.eventbus.EventBus
This event bus schedules event notification on the swing EDT.protected void
initProject
(Project project) protected void
installLegacyScriptLibrary
(ProjectResource resource) protected ProjectResourceListener
void
void
removePropertyChangeListener
(String property, PropertyChangeListener pcl) void
Null out theexpressionFunctionFactory
field, causing the next call togetExpressionFunctionFactory()
to first invokecreateExpressionFunctionFactory()
.protected void
setGlobalProps
(GlobalProps newGp) protected void
shutdown()
protected void
startup()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.client.model.ClientContext
deserialize, getExecutionManager, getLocalizationManager, getModules, getNamedQueryManager, getProject, getRootPaneContainer, getTagManager
Methods inherited from interface com.inductiveautomation.ignition.common.model.CommonContext
createDeserializer, getLicenseState, getModule, getScriptManager
-
Field Details
-
log
-
changeSupport
-
globalProps
-
project
-
loggingManager
-
projectTitle
-
projectDescription
-
-
Constructor Details
-
AbstractClientContext
-
-
Method Details
-
startup
protected void startup() -
shutdown
protected void shutdown() -
initProject
-
getOrDefault
-
newProjectResourceListener
-
getProjectName
Description copied from interface:ClientContext
The name of the project this client will be / is running- Specified by:
getProjectName
in interfaceClientContext
-
getProjectTitle
-
getProjectDescription
-
getExpressionFunctionFactory
Description copied from interface:CommonContext
Returns the core function factory used by expressions. Includes extension functions registered by modules.- Specified by:
getExpressionFunctionFactory
in interfaceCommonContext
-
resetExpressionFunctionFactory
public void resetExpressionFunctionFactory()Null out theexpressionFunctionFactory
field, causing the next call togetExpressionFunctionFactory()
to first invokecreateExpressionFunctionFactory()
. -
createExpressionFunctionFactory
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceClientContext
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceClientContext
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceClientContext
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceClientContext
-
getLoggingManager
- Specified by:
getLoggingManager
in interfaceCommonContext
-
getDefaultDatasourceName
Description copied from interface:ClientContext
Returns the current project's default datasource name- Specified by:
getDefaultDatasourceName
in interfaceClientContext
-
getDefaultTagProviderName
Description copied from interface:ClientContext
Returns the current project's default Tag provider- Specified by:
getDefaultTagProviderName
in interfaceClientContext
-
getAuthProfileName
Description copied from interface:ClientContext
Returns the current project's user source- Specified by:
getAuthProfileName
in interfaceClientContext
-
getTagPollRate
public int getTagPollRate()Description copied from interface:ClientContext
Returns the rate at which Tags should be polled for updates- Specified by:
getTagPollRate
in interfaceClientContext
-
getGlobalProps
-
setGlobalProps
-
installLegacyScriptLibrary
-
getProgressManager
Description copied from interface:ClientContext
Returns the progress manager, which allows the execution of long running or async tasks.- Specified by:
getProgressManager
in interfaceClientContext
-
getLaunchContext
- Specified by:
getLaunchContext
in interfaceClientContext
-
getEdgeEditions
Description copied from interface:CommonContext
Returns a list of currently available Edge editions (either licensed or in trial). Does not check if any required modules are installed and running.- Specified by:
getEdgeEditions
in interfaceCommonContext
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()Description copied from interface:CommonContext
This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)- Specified by:
getEventBus
in interfaceCommonContext
-
getUIEventBus
public com.google.common.eventbus.EventBus getUIEventBus()Description copied from interface:ClientContext
This event bus schedules event notification on the swing EDT. This is opposed to the event bus found onCommonContext.getEventBus()
, which schedules event notification on a background thread.- Specified by:
getUIEventBus
in interfaceClientContext
-