Package org.adempiere.webui.desktop
Interface IDesktop
-
- All Superinterfaces:
UIPart
- All Known Implementing Classes:
AbstractDesktop
,DefaultDesktop
,TabbedDesktop
public interface IDesktop extends UIPart
Desktop interface- Author:
- hengsin
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTIVITIES_EVENT_QUEUE
static String
ON_ACTIVITIES_CHANGED_EVENT
static String
WINDOWNO_ATTRIBUTE
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
closeActiveWindow()
close active windowboolean
closeWindow(int windowNo)
Object
findWindow(int WindowNo)
org.zkoss.zk.ui.Component
getActiveWindow()
get active windowClientInfo
getClientInfo()
org.zkoss.zk.ui.Component
getComponent()
Get the root component of the desktopboolean
isPendingWindow()
void
logout()
User logout from desktop, do clean upvoid
onMenuSelected(int nodeId)
ADForm
openForm(int formId)
void
openInfo(int infoId)
ProcessDialog
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
renderHomeTab()
void
setClientInfo(ClientInfo clientInfo)
void
setPage(org.zkoss.zk.ui.Page page)
Attached to pagevoid
setTabTitle(String title, int windowNo)
void
showHTMLContent(String content, String title, boolean closeable)
void
showURL(String url, boolean closeable)
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)
void
updateHelpQuickInfo(GridTab gridTab)
void
updateHelpTooltip(String hdr, String desc, String help, String otherContent)
void
updateHelpTooltip(GridField gridField)
-
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart
-
-
-
-
Field Detail
-
WINDOWNO_ATTRIBUTE
static final String WINDOWNO_ATTRIBUTE
- See Also:
- Constant Field Values
-
ACTIVITIES_EVENT_QUEUE
static final String ACTIVITIES_EVENT_QUEUE
- See Also:
- Constant Field Values
-
ON_ACTIVITIES_CHANGED_EVENT
static final String ON_ACTIVITIES_CHANGED_EVENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientInfo
ClientInfo getClientInfo()
- Returns:
- ClientInfo
-
onMenuSelected
void onMenuSelected(int nodeId)
- Parameters:
nodeId
-
-
registerWindow
int registerWindow(Object window)
- Parameters:
window
-- Returns:
- windowNo
-
findWindow
Object findWindow(int WindowNo)
- Parameters:
WindowNo
-- Returns:
- Object
-
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
void showURL(String url, boolean closeable)
- Parameters:
url
-closeable
-
-
showHTMLContent
void showHTMLContent(String content, String title, boolean closeable)
- Parameters:
content
-title
-closeable
-
-
showWindow
void showWindow(Window win)
- Parameters:
win
-
-
showZoomWindow
void showZoomWindow(int window_ID, MQuery query)
- Parameters:
window_ID
-query
-
-
showWindow
void showWindow(int window_ID, MQuery query)
Deprecated.- Parameters:
window_ID
-query
-
-
unregisterWindow
void unregisterWindow(int windowNo)
- Parameters:
windowNo
-
-
openProcessDialog
ProcessDialog openProcessDialog(int processId, boolean soTrx)
- Parameters:
processId
-soTrx
-- Returns:
- ProcessDialog
-
openForm
ADForm openForm(int formId)
- Parameters:
formId
-- Returns:
- ADWindow
-
openInfo
void openInfo(int infoId)
- Parameters:
infoId
-
-
openWindow
void openWindow(int windowId, Callback<ADWindow> callback)
- Parameters:
windowId
-callback
-
-
openWindow
void openWindow(int windowId, MQuery query, Callback<ADWindow> callback)
- 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
void setClientInfo(ClientInfo clientInfo)
- Parameters:
clientInfo
-
-
logout
void logout()
User logout from desktop, do clean up
-
updateHelpContext
void updateHelpContext(String ctxType, int recordId)
-
updateHelpTooltip
void updateHelpTooltip(GridField gridField)
-
updateHelpTooltip
void updateHelpTooltip(String hdr, String desc, String help, String otherContent)
-
updateHelpQuickInfo
void updateHelpQuickInfo(GridTab gridTab)
-
isPendingWindow
boolean isPendingWindow()
-
setTabTitle
void setTabTitle(String title, int windowNo)
-
renderHomeTab
void renderHomeTab()
-
-