public class ClientContextImpl extends AbstractClientContext implements VisionClientInterface
changeSupport, globalProps, log, loggingManager
VISION_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 TagManager that can be used to read,write,browse, and subscribe to SQLTags from this context.
|
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, getDefaultSQLTagsProviderName, getEventBus, getExpressionFunctionFactory, getGlobalProject, getLaunchContext, getLoggingManager, getProgressManager, getProject, getTagPollRate, getUIEventBus, ph, removeProjectChangeListener, resetExpressionFunctionFactory, setGlobalProjectHolder, setGlobalProps, setProjectHolder, updateProject
public ProjectVersion getProjectVersion()
ClientContext
getProjectVersion
in interface ClientContext
public void addExtensibleBindingType(BindingType binding)
VisionClientInterface
addExtensibleBindingType
in interface VisionClientInterface
public BindingType getBindingType(java.lang.String bindingTypeKey)
getBindingType
in interface VisionClientInterface
public ExecutionManager getExecutionManager()
ClientContext
getExecutionManager
in interface ClientContext
public ClientLocalizationManager getLocalizationManager()
getLocalizationManager
in interface ClientContext
public void setLocalizationManager(ClientLocalizationManager mgr)
public void addWindowListener(VisionWindowListener listener)
VisionClientInterface
addWindowListener
in interface VisionClientInterface
public void removeWindowListener(VisionWindowListener listener)
VisionClientInterface
removeWindowListener
in interface VisionClientInterface
public void receiveVisionWindowEvent(VisionWindowEvent event)
public java.lang.Object deserialize(byte[] data, org.apache.log4j.Logger log) throws SerializationException
ClientContext
deserialize
in interface ClientContext
SerializationException
public javax.swing.RootPaneContainer getRootPaneContainer()
ClientContext
getRootPaneContainer
in interface ClientContext
public java.util.List<ModuleInfo> getModules()
ClientContext
getModules
in interface ClientContext
public LicenseState getLicenseState(java.lang.String moduleId)
BaseContext
getLicenseState
in interface BaseContext
protected FunctionFactory createExpressionFunctionFactory()
createExpressionFunctionFactory
in class AbstractClientContext
public void loadModules(java.util.List<ModuleInfo> modules) throws ModuleLoadException
ModuleLoadException
public void startup()
public void setApp(FPMIApp app)
public void shutdown()
public NavUtilities getNavUtil()
VisionClientInterface
getNavUtil
in interface VisionClientInterface
public NavUtilities getNavUtil(java.lang.String desktopHandle)
VisionClientInterface
getNavUtil
in interface VisionClientInterface
public WindowUtilities getGuiUtil()
getGuiUtil
in interface VisionClientInterface
public WindowUtilities getGuiUtil(java.lang.String desktopHandle)
VisionClientInterface
getGuiUtil
in interface VisionClientInterface
public void setProject(Project project)
protected void updateGlobalProps(Project diff)
updateGlobalProps
in class AbstractClientContext
public ClientTagManager getTagManager()
BaseContext
getTagManager
in interface ClientContext
getTagManager
in interface BaseContext
public ScriptManager getScriptManager()
BaseContext
getScriptManager
in interface BaseContext
public NamedQueryRpc getNamedQueryRpc()
ClientContext
getNamedQueryRpc
in interface ClientContext
public XMLDeserializer createDeserializer()
BaseContext
createDeserializer
in interface BaseContext
public 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 AbstractClientContext
public UIProps getUiProps()
public java.lang.Object getModule(java.lang.String id)
BaseContext
getModule
in interface BaseContext