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 Object
findWindow(int WindowNo)
ClientInfo
getClientInfo()
protected String
getPredefinedContextVariables()
protected List<Object>
getWindows()
protected boolean
isMenuSOTrx()
void
onMenuSelected(int menuId)
Event listener for menu item selection.int
registerWindow(Object win)
void
setClientInfo(ClientInfo clientInfo)
void
setMenuIsSOTrx(boolean isSOTrx)
void
setPredefinedContextVariables(String predefinedVariables)
protected abstract void
showEmbedded(Window win)
protected void
showHighlighted(Window win, String position)
protected void
showModal(Window win)
protected void
showOverlapped(Window win, String position)
protected void
showPopup(Window win, String position)
void
showWindow(Window win)
void
showWindow(Window win, String pos)
when width of win set by stylesheet (css class or in style) win sometime don't in center.void
unregisterWindow(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:
onMenuSelected
in 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:
getClientInfo
in interfaceIDesktop
- Returns:
- clientInfo
-
setClientInfo
public void setClientInfo(ClientInfo clientInfo)
- Specified by:
setClientInfo
in interfaceIDesktop
- Parameters:
clientInfo
-
-
registerWindow
public int registerWindow(Object win)
- Specified by:
registerWindow
in interfaceIDesktop
- Parameters:
win
-- Returns:
- windowNo
-
unregisterWindow
public void unregisterWindow(int WindowNo)
- Specified by:
unregisterWindow
in interfaceIDesktop
- Parameters:
WindowNo
-
-
findWindow
public Object findWindow(int WindowNo)
- Specified by:
findWindow
in interfaceIDesktop
- Parameters:
WindowNo
-- Returns:
- Object
-
showWindow
public void showWindow(Window win)
- Specified by:
showWindow
in 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:
showWindow
in 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()
-
-