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) org.zkoss.zk.ui.Component
get active windowopenForm
(int formId) void
openInfo
(int infoId) openProcessDialog
(int processId, boolean soTrx) void
openTask
(int taskId) 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) protected 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) void
void
void
showWindow
(int AD_Window_ID, MQuery query) Deprecated.void
showZoomWindow
(int AD_Window_ID, MQuery query) Methods 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
- Parameters:
processId
-soTrx
-- Returns:
- ProcessDialog
-
openForm
- Parameters:
formId
-- Returns:
- ADForm
-
openInfo
public void openInfo(int infoId) - Parameters:
infoId
-
-
openWorkflow
public void openWorkflow(int workflow_ID) - Parameters:
workflow_ID
-
-
openWindow
- Parameters:
windowId
-callback
-
-
openWindow
- Parameters:
windowId
-query
-callback
-
-
openTask
public void openTask(int taskId) Description copied from interface:IDesktop
Open operating system task window- Parameters:
taskId
-
-
showURL
- Parameters:
url
-
-
showURL
- Parameters:
url
-title
-closeable
-
-
showHTMLContent
- Parameters:
content
- HTML contenttitle
-closeable
-
-
showZoomWindow
- 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()Description copied from interface:IDesktop
get active window- Returns:
- Component
-
closeWindow
public boolean closeWindow(int windowNo) - 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
-
-