Package org.adempiere.webui.desktop
Class TabbedDesktop
java.lang.Object
org.adempiere.webui.part.AbstractUIPart
org.adempiere.webui.desktop.AbstractDesktop
org.adempiere.webui.desktop.TabbedDesktop
- All Implemented Interfaces:
IDesktop
,ISupportMask
,UIPart
- Direct Known Subclasses:
DefaultDesktop
Abstract base class for Tabbed MDI implementation
- Author:
- hengsin
-
Field Summary
Fields inherited from class org.adempiere.webui.part.AbstractUIPart
page, showMaskWrapper
Fields inherited from interface org.adempiere.webui.desktop.IDesktop
ACTIVITIES_EVENT_QUEUE, ON_ACTIVITIES_CHANGED_EVENT, ON_CLOSE_WINDOW_SHORTCUT_EVENT, WINDOWNO_ATTRIBUTE
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Close active tabboolean
closeWindow
(int windowNo) Close window via registered window noorg.zkoss.zk.ui.Component
Get component of active tabopenForm
(int formId) Open AD form in desktopvoid
openInfo
(int infoId) Open info window in desktopopenProcessDialog
(int processId, boolean soTrx) Open process dialog in desktopvoid
openTask
(int taskId) Open operating system task windowvoid
openWindow
(int windowId, Callback<ADWindow> callback) Open AD window in desktopvoid
openWindow
(int windowId, MQuery query, Callback<ADWindow> callback) Open AD window in desktopvoid
openWorkflow
(int workflow_ID) Open workflow window in desktopprotected void
invoke before a new tab is added to the desktopvoid
setTabTitle
(String title, int windowNo) Update tab title by windowNoprotected void
showEmbedded
(Window window) Show window in new tabvoid
showHTMLContent
(String content, String title, boolean closeable) Show HTML content in desktop windowvoid
Show URL in desktop windowvoid
void
showWindow
(int AD_Window_ID, MQuery query) Deprecated.void
showZoomWindow
(int AD_Window_ID, MQuery query) Zoom to AD window and show in desktopMethods inherited from class org.adempiere.webui.desktop.AbstractDesktop
findWindow, findWindowNo, getClientInfo, getPredefinedContextVariables, getWindows, isCloseTabWithShortcut, isMenuSOTrx, onMenuSelected, onNewRecord, registerWindow, setClientInfo, setCloseTabWithShortcut, setMenuIsSOTrx, setPredefinedContextVariables, showHighlighted, showModal, showOverlapped, showPopup, showWindow, showWindow, unregisterWindow, updateRecentMenuItem
Methods inherited from class org.adempiere.webui.part.AbstractUIPart
createPart, doCreatePart, getMaskComponent, getMaskObj, hideMask, showMask
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.adempiere.webui.desktop.IDesktop
getComponent, isPendingWindow, logout, logout, renderHomeTab, setPage, updateHelpContext, updateHelpContext, updateHelpQuickInfo, updateHelpQuickInfo, updateHelpTooltip, updateHelpTooltip
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart
-
Field Details
-
windowContainer
Controller for open desktop windows.
-
-
Constructor Details
-
TabbedDesktop
public TabbedDesktop()Default constructor
-
-
Method Details
-
openProcessDialog
Description copied from interface:IDesktop
Open process dialog in desktop- Parameters:
processId
-soTrx
-- Returns:
- ProcessDialog
-
openForm
Description copied from interface:IDesktop
Open AD form in desktop- Parameters:
formId
-- Returns:
- ADForm
-
openInfo
public void openInfo(int infoId) Description copied from interface:IDesktop
Open info window in desktop- Parameters:
infoId
-
-
openWorkflow
public void openWorkflow(int workflow_ID) Description copied from interface:IDesktop
Open workflow window in desktop- Parameters:
workflow_ID
-
-
openWindow
Description copied from interface:IDesktop
Open AD window in desktop- Parameters:
windowId
-callback
-
-
openWindow
Description copied from interface:IDesktop
Open AD window in desktop- Parameters:
windowId
-query
-callback
-
-
openTask
public void openTask(int taskId) Description copied from interface:IDesktop
Open operating system task window- Parameters:
taskId
-
-
showURL
Description copied from interface:IDesktop
Show URL in desktop window- Parameters:
url
-
-
showURL
- Parameters:
url
-title
-closeable
-
-
showHTMLContent
Description copied from interface:IDesktop
Show HTML content in desktop window- Parameters:
content
- HTML contenttitle
-closeable
-
-
showZoomWindow
Description copied from interface:IDesktop
Zoom to AD window and show in desktop- Parameters:
AD_Window_ID
-query
-
-
showWindow
Deprecated.- Parameters:
AD_Window_ID
-query
-
-
showEmbedded
Show window in new tab- Specified by:
showEmbedded
in classAbstractDesktop
- Parameters:
window
-
-
closeActiveWindow
public boolean closeActiveWindow()Close active tab- Returns:
- boolean
-
getActiveWindow
public org.zkoss.zk.ui.Component getActiveWindow()Get component of active tab- Returns:
- Component
-
closeWindow
public boolean closeWindow(int windowNo) Description copied from interface:IDesktop
Close window via registered window no- Parameters:
windowNo
-- Returns:
- true if found and close
-
preOpenNewTab
protected void preOpenNewTab()invoke before a new tab is added to the desktop -
setTabTitle
Description copied from interface:IDesktop
Update tab title by windowNo- Parameters:
title
-windowNo
-
-