Package org.adempiere.webui.desktop
Interface IDesktop
- All Superinterfaces:
UIPart
- All Known Implementing Classes:
AbstractDesktop,DefaultDesktop,TabbedDesktop
Interface for iDempiere desktop
- Author:
- hengsin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanClose active windowbooleancloseWindow(int windowNo) Close window via registered window nofindWindow(int WindowNo) Find window via registered window nointfindWindowNo(org.zkoss.zk.ui.Component component) Find registered window no via component treeorg.zkoss.zk.ui.ComponentGet active windowGet client (browser) infoorg.zkoss.zk.ui.ComponentGet root component of desktopbooleanIs closing tab with ESC shortcut key allowedbooleanIs pending changes to be savedvoidlogout()User logout from desktop, do clean updefault voidLogout from desktop (calllogout().voidonMenuSelected(int nodeId) Launch menu itemvoidonNewRecord(int menuId) Launch AD Window in new record modeopenForm(int formId) Open AD form in desktopvoidopenInfo(int infoId) Open info window in desktopopenProcessDialog(int processId, boolean soTrx) Open process dialog in desktopvoidopenTask(int task_ID) Open operating system task windowvoidopenWindow(int windowId, Callback<ADWindow> callback) Open AD window in desktopvoidopenWindow(int windowId, MQuery query, Callback<ADWindow> callback) Open AD window in desktopvoidopenWorkflow(int workflow_ID) Open workflow window in desktopintregisterWindow(Object window) Register new windowvoidRender home tabvoidsetClientInfo(ClientInfo clientInfo) Set client (browser) infovoidsetCloseTabWithShortcut(boolean isCloseTabWithShortcut) Set if closing tab with ESC shortcut key is allowedvoidsetPage(org.zkoss.zk.ui.Page page) Attached to pagevoidsetTabTitle(String title, int windowNo) Update tab title by windowNovoidshowHTMLContent(String content, String title, boolean closeable) Show HTML content in desktop windowvoidShow URL in desktop windowvoidshowWindow(int window_ID, MQuery query) Deprecated.voidshowWindow(Window win) Show window in desktopvoidshowWindow(Window win, String position) Show window in desktopvoidshowZoomWindow(int window_ID, MQuery query) Zoom to AD window and show in desktopvoidunregisterWindow(int windowNo) Remove registered windowvoidupdateHelpContext(String ctxType, int recordId) Update help content in help/info panelvoidupdateHelpContext(String ctxType, int infoWindowId, InfoPanel infoPanel) Update help content in help/info panelvoidupdateHelpQuickInfo(InfoPanel infoPanel) Update quick info (status line) in help/info panelvoidupdateHelpQuickInfo(GridTab gridTab) Update quick info (status line) in help/info paneldefault voidupdateHelpTooltip(String hdr, String desc, String help, String otherContent) Update tooltip content in help/info panelvoidUpdate tooltip content in help/info panelvoidupdateHelpTooltip(GridField gridField) Update tooltip content in help/info panelMethods inherited from interface org.adempiere.webui.part.UIPart
createPart
-
Field Details
-
WINDOWNO_ATTRIBUTE
- See Also:
-
ACTIVITIES_EVENT_QUEUE
EventQueuename for activities (workflow activities, request, notice and unprocessed documents)- See Also:
-
ON_ACTIVITIES_CHANGED_EVENT
- See Also:
-
ON_CLOSE_WINDOW_SHORTCUT_EVENT
Event when closing window/tab with ESC shortcut key- See Also:
-
-
Method Details
-
getClientInfo
ClientInfo getClientInfo()Get client (browser) info- Returns:
- ClientInfo
-
onMenuSelected
void onMenuSelected(int nodeId) Launch menu item- Parameters:
nodeId-
-
onNewRecord
void onNewRecord(int menuId) Launch AD Window in new record mode- Parameters:
menuId-
-
registerWindow
Register new window- Parameters:
window-- Returns:
- windowNo for new window
-
findWindow
Find window via registered window no- Parameters:
WindowNo-- Returns:
- Object
-
findWindowNo
int findWindowNo(org.zkoss.zk.ui.Component component) Find registered window no via component tree- Parameters:
component-- Returns:
- register window no or -1 if not found
-
closeActiveWindow
boolean closeActiveWindow()Close active window- Returns:
- boolean
-
getActiveWindow
org.zkoss.zk.ui.Component getActiveWindow()Get active window- Returns:
- Component
-
closeWindow
boolean closeWindow(int windowNo) Close window via registered window no- Parameters:
windowNo-- Returns:
- boolean
-
showURL
Show URL in desktop window- Parameters:
url-closeable-
-
showHTMLContent
Show HTML content in desktop window- Parameters:
content-title-closeable-
-
showWindow
Show window in desktop- Parameters:
win-
-
showWindow
Show window in desktop- Parameters:
win-position-
-
showZoomWindow
Zoom to AD window and show in desktop- Parameters:
window_ID- AD_Window_IDquery-
-
showWindow
Deprecated.- Parameters:
window_ID-query-
-
unregisterWindow
void unregisterWindow(int windowNo) Remove registered window- Parameters:
windowNo-
-
openProcessDialog
Open process dialog in desktop- Parameters:
processId-soTrx-- Returns:
- ProcessDialog
-
openForm
Open AD form in desktop- Parameters:
formId-- Returns:
- ADWindow
-
openInfo
void openInfo(int infoId) Open info window in desktop- Parameters:
infoId-
-
openWindow
Open AD window in desktop- Parameters:
windowId- AD_Window_IDcallback-
-
openWindow
Open AD window in desktop- Parameters:
windowId- AD_Window_IDquery-callback-
-
openTask
void openTask(int task_ID) Open operating system task window- Parameters:
task_ID-
-
openWorkflow
void openWorkflow(int workflow_ID) Open workflow window in desktop- Parameters:
workflow_ID-
-
getComponent
org.zkoss.zk.ui.Component getComponent()Get root component of desktop- Specified by:
getComponentin interfaceUIPart- Returns:
- Component
-
setPage
void setPage(org.zkoss.zk.ui.Page page) Attached to page- Parameters:
page-
-
setClientInfo
Set client (browser) info- Parameters:
clientInfo-
-
logout
void logout()User logout from desktop, do clean up -
logout
Logout from desktop (calllogout().- Parameters:
callback- callback after logout
-
updateHelpContext
Update help content in help/info panel- Parameters:
infoWindowId-infoPanel-
-
updateHelpContext
Update help content in help/info panel- Parameters:
ctxType-recordId-
-
updateHelpTooltip
Update tooltip content in help/info panel- Parameters:
gridField-
-
updateHelpTooltip
Update tooltip content in help/info panel- Parameters:
hdr-desc-help-otherContent-
-
updateHelpTooltip
void updateHelpTooltip(String hdr, String desc, String help, String otherContent, String entityType) Update tooltip content in help/info panel- Parameters:
hdr-desc-help-otherContent-entityType-
-
updateHelpQuickInfo
Update quick info (status line) in help/info panel- Parameters:
gridTab-
-
updateHelpQuickInfo
Update quick info (status line) in help/info panel- Parameters:
infoPanel-
-
isPendingWindow
boolean isPendingWindow()Is pending changes to be saved- Returns:
- true if there are changes not save yet
-
setTabTitle
Update tab title by windowNo- Parameters:
title-windowNo-
-
renderHomeTab
void renderHomeTab()Render home tab -
isCloseTabWithShortcut
boolean isCloseTabWithShortcut()Is closing tab with ESC shortcut key allowed- Returns:
- true if allowed
-
setCloseTabWithShortcut
void setCloseTabWithShortcut(boolean isCloseTabWithShortcut) Set if closing tab with ESC shortcut key is allowed- Parameters:
isCloseTabWithShortcut-
-