public class ClientContextImpl extends AbstractClientContext implements VisionClientInterface
changeSupport, globalProps, log, loggingManagerVISION_MODULE_ID| Modifier and Type | Method and Description |
|---|---|
void |
addExtensibleBindingType(BindingType binding)
Adds a new binding type to be used in the extensible binding system
|
void |
addWindowListener(VisionWindowListener listener)
Adds a listener to be notified when windows are opened and closed.
|
static void |
configureClassNameResolver(ClassNameResolver r) |
static void |
configureDeserializer(XMLDeserializer d) |
XMLDeserializer |
createDeserializer()
Returns an instance of the XMLDeserializer that can be used to deserialize project resources.
|
protected FunctionFactory |
createExpressionFunctionFactory() |
java.lang.Object |
deserialize(byte[] data,
org.apache.log4j.Logger log)
Convenience function to deserialize a gzipped byte array into a single object.
|
BindingType |
getBindingType(java.lang.String bindingTypeKey) |
ExecutionManager |
getExecutionManager()
Returns the shared task execution manager for this client
|
GeneralProps |
getGeneralProps() |
GlobalProps |
getGlobalProps() |
WindowUtilities |
getGuiUtil() |
WindowUtilities |
getGuiUtil(java.lang.String desktopHandle)
Gets the WindowUtilities for a secondary desktop, by handle
|
LaunchProps |
getLaunchProps() |
LicenseState |
getLicenseState(java.lang.String moduleId)
Returns the license state for the given module
|
ClientLocalizationManager |
getLocalizationManager() |
LoginProps |
getLoginProps() |
java.lang.Object |
getModule(java.lang.String id)
Returns the hook class for another module, used for modules that deal with each other's models.
|
java.util.List<ModuleInfo> |
getModules()
Retrieve the list of all modules currently loaded in this context
|
NamedQueryRpc |
getNamedQueryRpc()
Returns the appropriate named query rpc for the context.
|
NavUtilities |
getNavUtil()
Gets the NavUtilities (for the primary desktop
|
NavUtilities |
getNavUtil(java.lang.String desktopHandle)
Gets the NavUtilities for a secondary desktop, by handle
|
ProjectVersion |
getProjectVersion()
What version of the project (staging or published) is this client running?
|
javax.swing.RootPaneContainer |
getRootPaneContainer()
Returns the RootPaneContainer that is currently the owner of the client
|
ScriptManager |
getScriptManager()
Returns the ScriptManager that can be used to execute Python scripts.
|
ClientTagManager |
getTagManager()
Returns the manager that provides access to Ignition's tag system.
|
UIProps |
getUiProps() |
void |
loadModules(java.util.List<ModuleInfo> modules)
Create LoadedModule objects to represent each client-scoped module in the list.
|
void |
receiveVisionWindowEvent(VisionWindowEvent event)
Listens to the event bus for vision window evens to push all window open/close events to any modules
that have registered VisionWindowListener objects.
|
void |
removeWindowListener(VisionWindowListener listener)
Removes window listener
|
void |
setApp(FPMIApp app) |
void |
setLocalizationManager(ClientLocalizationManager mgr) |
void |
setProject(Project project) |
void |
shutdown() |
void |
startup() |
protected void |
updateGlobalProps(Project diff) |
addProjectChangeListener, addPropertyChangeListener, addPropertyChangeListener, applyDiff, applyGlobalDiff, getAuthProfileName, getCacheDir, getDefaultDatasourceName, getDefaultTagProviderName, getEventBus, getExpressionFunctionFactory, getGlobalProject, getLaunchContext, getLoggingManager, getProgressManager, getProject, getProjectHolder, getTagPollRate, getUIEventBus, removeProjectChangeListener, resetExpressionFunctionFactory, setGlobalProjectHolder, setGlobalProps, setProjectHolder, updateProjectpublic ProjectVersion getProjectVersion()
ClientContextgetProjectVersion in interface ClientContextpublic void addExtensibleBindingType(BindingType binding)
VisionClientInterfaceaddExtensibleBindingType in interface VisionClientInterfacepublic BindingType getBindingType(java.lang.String bindingTypeKey)
getBindingType in interface VisionClientInterfacepublic ExecutionManager getExecutionManager()
ClientContextgetExecutionManager in interface ClientContextpublic ClientLocalizationManager getLocalizationManager()
getLocalizationManager in interface ClientContextpublic void setLocalizationManager(ClientLocalizationManager mgr)
public void addWindowListener(VisionWindowListener listener)
VisionClientInterfaceaddWindowListener in interface VisionClientInterfacepublic void removeWindowListener(VisionWindowListener listener)
VisionClientInterfaceremoveWindowListener in interface VisionClientInterfacepublic void receiveVisionWindowEvent(VisionWindowEvent event)
public java.lang.Object deserialize(byte[] data,
org.apache.log4j.Logger log)
throws SerializationException
ClientContextdeserialize in interface ClientContextSerializationExceptionpublic javax.swing.RootPaneContainer getRootPaneContainer()
ClientContextgetRootPaneContainer in interface ClientContextpublic java.util.List<ModuleInfo> getModules()
ClientContextgetModules in interface ClientContextpublic LicenseState getLicenseState(java.lang.String moduleId)
CommonContextgetLicenseState in interface CommonContextprotected FunctionFactory createExpressionFunctionFactory()
createExpressionFunctionFactory in class AbstractClientContextpublic void loadModules(java.util.List<ModuleInfo> modules) throws ModuleLoadException
ModuleLoadExceptionpublic void startup()
public void setApp(FPMIApp app)
public void shutdown()
public NavUtilities getNavUtil()
VisionClientInterfacegetNavUtil in interface VisionClientInterfacepublic NavUtilities getNavUtil(java.lang.String desktopHandle)
VisionClientInterfacegetNavUtil in interface VisionClientInterfacepublic WindowUtilities getGuiUtil()
getGuiUtil in interface VisionClientInterfacepublic WindowUtilities getGuiUtil(java.lang.String desktopHandle)
VisionClientInterfacegetGuiUtil in interface VisionClientInterfacepublic void setProject(Project project)
protected void updateGlobalProps(Project diff)
updateGlobalProps in class AbstractClientContextpublic ClientTagManager getTagManager()
CommonContextgetTagManager in interface ClientContextgetTagManager in interface CommonContextpublic ScriptManager getScriptManager()
CommonContextgetScriptManager in interface CommonContextpublic NamedQueryRpc getNamedQueryRpc()
ClientContextgetNamedQueryRpc in interface ClientContextpublic XMLDeserializer createDeserializer()
CommonContextcreateDeserializer in interface CommonContextpublic static void configureDeserializer(XMLDeserializer d)
public static void configureClassNameResolver(ClassNameResolver r)
public GeneralProps getGeneralProps()
public LaunchProps getLaunchProps()
public LoginProps getLoginProps()
public GlobalProps getGlobalProps()
getGlobalProps in class AbstractClientContextpublic UIProps getUiProps()
public java.lang.Object getModule(java.lang.String id)
CommonContextgetModule in interface CommonContext