public interface IForm
限定符和类型 | 方法和说明 |
---|---|
void |
actived()
激活窗口时触发
|
void |
addFormActivatedListener(com.supermap.desktop.core.event.FormActivatedListener listener)
添加窗口激活监听事件
|
void |
addFormClosedListener(com.supermap.desktop.core.event.FormClosedListener listener)
添加窗口关闭事件
|
void |
addFormClosingListener(com.supermap.desktop.core.event.FormClosingListener listener)
添加窗口关闭时监听事件
|
void |
addFormDeactivatedListener(com.supermap.desktop.core.event.FormDeactivatedListener listener)
添加窗口失去激活监听事件
|
void |
addFormShownListener(com.supermap.desktop.core.event.FormShownListener listener)
添加窗口展示监听事件
|
void |
clean()
关闭时清理
|
void |
deactived()
窗口失去激活状态时触发
|
void |
formClosed(com.supermap.desktop.core.event.FormClosedEvent e)
窗口关闭后触发
|
void |
formClosing(com.supermap.desktop.core.event.FormClosingEvent e)
窗口关闭前触发
|
void |
formShown(com.supermap.desktop.core.event.FormShownEvent e)
窗体第一次添加到桌面并可见时触发。
|
java.lang.String |
getTitle()
获取标题
|
com.supermap.desktop.core.enums.WindowType |
getWindowType()
获取窗口的类型
|
boolean |
isActivated()
获取窗口是否处于激活状态。
|
boolean |
isClosed()
判断窗口是否关闭
|
boolean |
isNeedSave()
获取窗口内容是否需要保存。
|
void |
removeFormActivatedListener(com.supermap.desktop.core.event.FormActivatedListener listener)
移除窗口激活监听事件
|
void |
removeFormClosedListener(com.supermap.desktop.core.event.FormClosedListener listener)
移除窗口关闭事件
|
void |
removeFormClosingListener(com.supermap.desktop.core.event.FormClosingListener listener)
移除窗口关闭时监听事件
|
void |
removeFormDeactivatedListener(com.supermap.desktop.core.event.FormDeactivatedListener listener)
移除窗口失去激活监听事件
|
void |
removeFormShownListener(com.supermap.desktop.core.event.FormShownListener listener)
移除窗口展示监听事件
|
boolean |
save()
保存窗口中的内容。
|
boolean |
save(boolean notify, boolean isNewWindow)
保存窗口中的内容。
|
boolean |
saveAs(boolean isNewWindow)
另存窗口中的内容。
|
boolean |
saveFormInfos()
保存窗口的参数信息,目前场景窗口用到,保存KML信息
|
void |
setNeedSave(boolean needSave)
设置内容是否需要保存。
|
void |
setTitle(java.lang.String text)
设置标题
|
java.lang.String getTitle()
void setTitle(java.lang.String text)
com.supermap.desktop.core.enums.WindowType getWindowType()
boolean save()
boolean save(boolean notify, boolean isNewWindow)
notify
- 是否弹出提示对话框。boolean saveFormInfos()
boolean saveAs(boolean isNewWindow)
boolean isNeedSave()
void setNeedSave(boolean needSave)
boolean isActivated()
void actived()
void deactived()
void formShown(com.supermap.desktop.core.event.FormShownEvent e)
void formClosing(com.supermap.desktop.core.event.FormClosingEvent e)
void formClosed(com.supermap.desktop.core.event.FormClosedEvent e)
void addFormActivatedListener(com.supermap.desktop.core.event.FormActivatedListener listener)
void removeFormActivatedListener(com.supermap.desktop.core.event.FormActivatedListener listener)
void addFormDeactivatedListener(com.supermap.desktop.core.event.FormDeactivatedListener listener)
void removeFormDeactivatedListener(com.supermap.desktop.core.event.FormDeactivatedListener listener)
void addFormClosingListener(com.supermap.desktop.core.event.FormClosingListener listener)
void removeFormClosingListener(com.supermap.desktop.core.event.FormClosingListener listener)
void addFormClosedListener(com.supermap.desktop.core.event.FormClosedListener listener)
void removeFormClosedListener(com.supermap.desktop.core.event.FormClosedListener listener)
void addFormShownListener(com.supermap.desktop.core.event.FormShownListener listener)
void removeFormShownListener(com.supermap.desktop.core.event.FormShownListener listener)
void clean()
boolean isClosed()