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
public abstract class TabbedDesktop extends AbstractDesktop
A Tabbed MDI implementation- Author:
- hengsin
-
-
Field Summary
Fields Modifier and Type Field Description protected WindowContainer
windowContainer
-
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, WINDOWNO_ATTRIBUTE
-
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
-
Constructor Summary
Constructors Constructor Description TabbedDesktop()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
closeActiveWindow()
Close active tabboolean
closeWindow(int windowNo)
org.zkoss.zk.ui.Component
getActiveWindow()
get active windowADForm
openForm(int formId)
void
openInfo(int infoId)
ProcessDialog
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
preOpenNewTab()
invoke before a new tab is added to the desktopvoid
setTabTitle(String title, int windowNo)
protected void
showEmbedded(Window window)
void
showHTMLContent(String content, String title, boolean closeable)
void
showURL(String url, boolean closeable)
void
showURL(String url, String title, boolean closeable)
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, getClientInfo, getPredefinedContextVariables, getWindows, isMenuSOTrx, onMenuSelected, registerWindow, setClientInfo, setMenuIsSOTrx, setPredefinedContextVariables, showHighlighted, showModal, showOverlapped, showPopup, showWindow, showWindow, unregisterWindow
-
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, renderHomeTab, setPage, updateHelpContext, updateHelpQuickInfo, updateHelpTooltip, updateHelpTooltip
-
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart
-
-
-
-
Field Detail
-
windowContainer
protected WindowContainer windowContainer
-
-
Method Detail
-
openProcessDialog
public ProcessDialog openProcessDialog(int processId, boolean soTrx)
- Parameters:
processId
-soTrx
-- Returns:
- ProcessDialog
-
openForm
public ADForm openForm(int formId)
- Parameters:
formId
-- Returns:
- ADWindow
-
openInfo
public void openInfo(int infoId)
- Parameters:
infoId
-
-
openWorkflow
public void openWorkflow(int workflow_ID)
- Parameters:
workflow_ID
-
-
openWindow
public void openWindow(int windowId, Callback<ADWindow> callback)
- Parameters:
windowId
-callback
-
-
openWindow
public void openWindow(int windowId, MQuery query, Callback<ADWindow> callback)
- Parameters:
windowId
-query
-callback
-
-
openTask
public void openTask(int taskId)
Description copied from interface:IDesktop
Open operating system task window- Parameters:
taskId
-
-
showURL
public void showURL(String url, boolean closeable)
- Parameters:
url
-
-
showURL
public void showURL(String url, String title, boolean closeable)
- Parameters:
url
-title
-closeable
-
-
showHTMLContent
public void showHTMLContent(String content, String title, boolean closeable)
- Parameters:
content
-title
-closeable
-
-
showZoomWindow
public void showZoomWindow(int AD_Window_ID, MQuery query)
- Parameters:
AD_Window_ID
-query
-
-
showWindow
public void showWindow(int AD_Window_ID, MQuery query)
Deprecated.- Parameters:
AD_Window_ID
-query
-
-
showEmbedded
protected void showEmbedded(Window window)
- 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:
- boolean
-
preOpenNewTab
protected void preOpenNewTab()
invoke before a new tab is added to the desktop
-
setTabTitle
public void setTabTitle(String title, int windowNo)
-
-