public class Application
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
addActiveDatasetChangedListener(com.supermap.desktop.core.event.ActiveDatasetsChangeListener listener)
添加激活数据集改变事件
|
void |
addActiveDatasourceChangedListener(com.supermap.desktop.core.event.ActiveDatasourcesChangeListener listener)
添加激活数据源改变事件
|
void |
addDesktopExitingListener(com.supermap.desktop.core.event.DesktopExitingListener desktopExitingListener)
添加桌面退出的监听事件
|
void |
addFormLoadedListener(com.supermap.desktop.core.event.FormLoadedListener listener)
添加桌面加载完成的监听事件
|
void |
addWorkflowsChangedListener(com.supermap.desktop.core.event.WorkflowsChangedListener workflowsChangedListener)
添加可视化建模改变事件
|
void |
exit()
退出桌面
|
boolean |
exitWithoutLicense()
退出桌面
|
static Application |
getActiveApplication()
获取当前激活的Application
|
com.supermap.data.Dataset[] |
getActiveDatasets()
获取当前选中的数据集
|
com.supermap.data.Datasource[] |
getActiveDatasources()
获取当前选中的数据源
|
IForm |
getActiveForm()
获取当前激活的窗口
|
com.supermap.desktop.core.DesktopClassLoader |
getClassLoader()
获取bundle的类加载器
|
IFormMain |
getMainFrame()
获取主窗口
|
IOutput |
getOutput()
获取应用程序的输出信息对象。
|
PluginManager |
getPluginManager()
获得插件管理器
|
com.supermap.desktop.core.WorkEnvironmentManager |
getWorkEnvironmentManager()
设置程序的默认工作环境
|
com.supermap.data.Workspace |
getWorkspace()
获取当前工作空间
|
boolean |
initialize()
初始化操作
|
void |
removeActiveDatasetChangedListener(com.supermap.desktop.core.event.ActiveDatasetsChangeListener listener)
移除激活数据集改变事件
|
void |
removeActiveDatasourceChangedListener(com.supermap.desktop.core.event.ActiveDatasourcesChangeListener listener)
移除激活数据源改变事件
|
void |
removeDesktopExitingListener(com.supermap.desktop.core.event.DesktopExitingListener desktopExitingListener)
移除桌面退出监听事件
|
void |
removeWorkflowsChangedListener(com.supermap.desktop.core.event.WorkflowsChangedListener workflowsChangedListener)
移除可视化建模改变事件
|
void |
setActiveForm(IForm form)
激活指定的窗口
|
void |
setOutput(IOutput output)
设置应用程序的输出信息对象。
|
public IFormMain getMainFrame()
public IOutput getOutput()
public void setOutput(IOutput output)
public com.supermap.data.Workspace getWorkspace()
public com.supermap.desktop.core.DesktopClassLoader getClassLoader()
public com.supermap.data.Datasource[] getActiveDatasources()
public com.supermap.data.Dataset[] getActiveDatasets()
public PluginManager getPluginManager()
public com.supermap.desktop.core.WorkEnvironmentManager getWorkEnvironmentManager()
public static Application getActiveApplication()
public IForm getActiveForm()
public void setActiveForm(IForm form)
form
- 需要激活的窗口public boolean initialize()
public void exit()
public boolean exitWithoutLicense()
public void addFormLoadedListener(com.supermap.desktop.core.event.FormLoadedListener listener)
listener
- 桌面加载完成监听事件public void addDesktopExitingListener(com.supermap.desktop.core.event.DesktopExitingListener desktopExitingListener)
desktopExitingListener
- 桌面退出监听事件public void removeDesktopExitingListener(com.supermap.desktop.core.event.DesktopExitingListener desktopExitingListener)
desktopExitingListener
- 桌面退出监听事件public void addActiveDatasourceChangedListener(com.supermap.desktop.core.event.ActiveDatasourcesChangeListener listener)
public void removeActiveDatasourceChangedListener(com.supermap.desktop.core.event.ActiveDatasourcesChangeListener listener)
public void addActiveDatasetChangedListener(com.supermap.desktop.core.event.ActiveDatasetsChangeListener listener)
public void removeActiveDatasetChangedListener(com.supermap.desktop.core.event.ActiveDatasetsChangeListener listener)
public void addWorkflowsChangedListener(com.supermap.desktop.core.event.WorkflowsChangedListener workflowsChangedListener)
public void removeWorkflowsChangedListener(com.supermap.desktop.core.event.WorkflowsChangedListener workflowsChangedListener)