Package org.adempiere.webui.desktop
Interface IDesktop
- All Superinterfaces:
UIPart
- All Known Implementing Classes:
AbstractDesktop
,DefaultDesktop
,TabbedDesktop
Desktop interface
- Author:
- hengsin
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
close active windowboolean
closeWindow
(int windowNo) findWindow
(int WindowNo) int
findWindowNo
(org.zkoss.zk.ui.Component component) org.zkoss.zk.ui.Component
get active windoworg.zkoss.zk.ui.Component
Get the root component of the desktopboolean
Is closing tab with shortcut allowedboolean
void
logout()
User logout from desktop, do clean updefault void
void
onMenuSelected
(int nodeId) Launch menu itemvoid
onNewRecord
(int menuId) Launch AD Window in new record modeopenForm
(int formId) void
openInfo
(int infoId) openProcessDialog
(int processId, boolean soTrx) void
openTask
(int task_ID) Open operating system task windowvoid
openWindow
(int windowId, Callback<ADWindow> callback) void
openWindow
(int windowId, MQuery query, Callback<ADWindow> callback) void
openWorkflow
(int workflow_ID) int
registerWindow
(Object window) void
render home tabvoid
setClientInfo
(ClientInfo clientInfo) void
setCloseTabWithShortcut
(boolean isCloseTabWithShortcut) Set if closing tab with shortcut is allowedvoid
setPage
(org.zkoss.zk.ui.Page page) Attached to pagevoid
setTabTitle
(String title, int windowNo) update tab title by windowNovoid
showHTMLContent
(String content, String title, boolean closeable) void
void
showWindow
(int window_ID, MQuery query) Deprecated.void
showWindow
(Window win) void
showWindow
(Window win, String position) void
showZoomWindow
(int window_ID, MQuery query) void
unregisterWindow
(int windowNo) void
updateHelpContext
(String ctxType, int recordId) update help content in help/info panelvoid
updateHelpContext
(String ctxType, int infoWindowId, InfoPanel infoPanel) update help content in help/info panelvoid
updateHelpQuickInfo
(InfoPanel infoPanel) update quick info (status line) in help/info panelvoid
updateHelpQuickInfo
(GridTab gridTab) update quick info (status line) in help/info panelvoid
update tooltip content in help/info panelvoid
updateHelpTooltip
(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
EventQueue
name 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 shortcut- See Also:
-
-
Method Details
-
getClientInfo
ClientInfo getClientInfo()- 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
- Parameters:
window
-- Returns:
- windowNo
-
findWindow
- Parameters:
WindowNo
-- Returns:
- Object
-
findWindowNo
int findWindowNo(org.zkoss.zk.ui.Component component) - 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) - Parameters:
windowNo
-- Returns:
- boolean
-
showURL
- Parameters:
url
-closeable
-
-
showHTMLContent
- Parameters:
content
-title
-closeable
-
-
showWindow
- Parameters:
win
-
-
showWindow
- Parameters:
win
-position
-
-
showZoomWindow
- Parameters:
window_ID
-query
-
-
showWindow
Deprecated.- Parameters:
window_ID
-query
-
-
unregisterWindow
void unregisterWindow(int windowNo) - Parameters:
windowNo
-
-
openProcessDialog
- Parameters:
processId
-soTrx
-- Returns:
- ProcessDialog
-
openForm
- Parameters:
formId
-- Returns:
- ADWindow
-
openInfo
void openInfo(int infoId) - Parameters:
infoId
-
-
openWindow
- Parameters:
windowId
-callback
-
-
openWindow
- Parameters:
windowId
-query
-callback
-
-
openTask
void openTask(int task_ID) Open operating system task window- Parameters:
task_ID
-
-
openWorkflow
void openWorkflow(int workflow_ID) - Parameters:
workflow_ID
-
-
getComponent
org.zkoss.zk.ui.Component getComponent()Get the root component of the desktop- Specified by:
getComponent
in interfaceUIPart
- Returns:
- Component
-
setPage
void setPage(org.zkoss.zk.ui.Page page) Attached to page- Parameters:
page
-
-
setClientInfo
- Parameters:
clientInfo
-
-
logout
void logout()User logout from desktop, do clean up -
logout
- 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
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()- 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 shortcut allowed- Returns:
- true if allowed
-
setCloseTabWithShortcut
void setCloseTabWithShortcut(boolean isCloseTabWithShortcut) Set if closing tab with shortcut is allowed- Parameters:
isCloseTabWithShortcut
-
-