Package org.adempiere.webui.desktop
Class AbstractDesktop
- java.lang.Object
-
- org.adempiere.webui.part.AbstractUIPart
-
- org.adempiere.webui.desktop.AbstractDesktop
-
- All Implemented Interfaces:
IDesktop,ISupportMask,UIPart
- Direct Known Subclasses:
TabbedDesktop
public abstract class AbstractDesktop extends AbstractUIPart implements IDesktop
Base class for desktop 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, WINDOWNO_ATTRIBUTE
-
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
-
Constructor Summary
Constructors Constructor Description AbstractDesktop()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ObjectfindWindow(int WindowNo)ClientInfogetClientInfo()protected StringgetPredefinedContextVariables()protected List<Object>getWindows()protected booleanisMenuSOTrx()voidonMenuSelected(int menuId)Event listener for menu item selection.intregisterWindow(Object win)voidsetClientInfo(ClientInfo clientInfo)voidsetMenuIsSOTrx(boolean isSOTrx)voidsetPredefinedContextVariables(String predefinedVariables)protected abstract voidshowEmbedded(Window win)protected voidshowHighlighted(Window win, String position)protected voidshowModal(Window win)protected voidshowOverlapped(Window win, String position)protected voidshowPopup(Window win, String position)voidshowWindow(Window win)voidshowWindow(Window win, String pos)when width of win set by stylesheet (css class or in style) win sometime don't in center.voidunregisterWindow(int WindowNo)-
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
closeActiveWindow, closeWindow, getActiveWindow, getComponent, isPendingWindow, logout, openForm, openInfo, openProcessDialog, openTask, openWindow, openWindow, openWorkflow, renderHomeTab, setPage, setTabTitle, showHTMLContent, showURL, showWindow, showZoomWindow, updateHelpContext, updateHelpQuickInfo, updateHelpTooltip, updateHelpTooltip
-
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart
-
-
-
-
Method Detail
-
onMenuSelected
public void onMenuSelected(int menuId)
Event listener for menu item selection. Identifies the action associated with the selected menu item and acts accordingly.- Specified by:
onMenuSelectedin interfaceIDesktop- Parameters:
menuId- Identifier for the selected menu item- Throws:
ApplicationException- If the selected menu action has yet to be implemented
-
getClientInfo
public ClientInfo getClientInfo()
- Specified by:
getClientInfoin interfaceIDesktop- Returns:
- clientInfo
-
setClientInfo
public void setClientInfo(ClientInfo clientInfo)
- Specified by:
setClientInfoin interfaceIDesktop- Parameters:
clientInfo-
-
registerWindow
public int registerWindow(Object win)
- Specified by:
registerWindowin interfaceIDesktop- Parameters:
win-- Returns:
- windowNo
-
unregisterWindow
public void unregisterWindow(int WindowNo)
- Specified by:
unregisterWindowin interfaceIDesktop- Parameters:
WindowNo-
-
findWindow
public Object findWindow(int WindowNo)
- Specified by:
findWindowin interfaceIDesktop- Parameters:
WindowNo-- Returns:
- Object
-
showWindow
public void showWindow(Window win)
- Specified by:
showWindowin interfaceIDesktop- Parameters:
win-
-
showWindow
public void showWindow(Window win, String pos)
when width of win set by stylesheet (css class or in style) win sometime don't in center. fix by find out method change toLayoutUtils.openOverlappedWindow(org.zkoss.zk.ui.Component, org.zkoss.zul.Window, String)- Specified by:
showWindowin interfaceIDesktop- Parameters:
win-pos-
-
showEmbedded
protected abstract void showEmbedded(Window win)
-
showModal
protected void showModal(Window win)
- Parameters:
win-
-
showOverlapped
protected void showOverlapped(Window win, String position)
- Parameters:
win-position-
-
showHighlighted
protected void showHighlighted(Window win, String position)
- Parameters:
win-position-
-
setPredefinedContextVariables
public void setPredefinedContextVariables(String predefinedVariables)
-
getPredefinedContextVariables
protected String getPredefinedContextVariables()
-
setMenuIsSOTrx
public void setMenuIsSOTrx(boolean isSOTrx)
-
isMenuSOTrx
protected boolean isMenuSOTrx()
-
-