Package org.adempiere.webui.desktop
Class DefaultDesktop
- java.lang.Object
-
- org.adempiere.webui.part.AbstractUIPart
-
- org.adempiere.webui.desktop.AbstractDesktop
-
- org.adempiere.webui.desktop.TabbedDesktop
-
- org.adempiere.webui.desktop.DefaultDesktop
-
- All Implemented Interfaces:
Serializable
,IDesktop
,MenuListener
,ISupportMask
,UIPart
,org.osgi.service.event.EventHandler
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
,org.zkoss.zk.ui.util.DesktopCleanup
public class DefaultDesktop extends TabbedDesktop implements MenuListener, Serializable, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.osgi.service.event.EventHandler, org.zkoss.zk.ui.util.DesktopCleanup
Default desktop implementation.- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass, Low Heng Sin, Deepak Pansheriya/Vivek - Adding support for message broadcasting
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.adempiere.webui.desktop.TabbedDesktop
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 DefaultDesktop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindEventManager()
void
cleanup(org.zkoss.zk.ui.Desktop desktop)
protected void
collapseHeader()
protected org.zkoss.zk.ui.Component
doCreatePart(org.zkoss.zk.ui.Component parent)
org.zkoss.zk.ui.Component
getComponent()
Get the root componentvoid
handleEvent(org.osgi.service.event.Event event)
boolean
isPendingWindow()
void
logout()
User logout from desktop, do clean upvoid
onEvent(org.zkoss.zk.ui.event.Event event)
void
onMenuSelected(int menuId)
Event listener for menu item selection.ADForm
openForm(int formId)
void
openInfo(int infoId)
ProcessDialog
openProcessDialog(int processId, boolean soTrx)
void
openTask(int taskId)
Open operating system task windowvoid
openWorkflow(int workflow_ID)
protected void
preOpenNewTab()
invoke before a new tab is added to the desktopvoid
renderHomeTab()
protected void
restoreHeader()
void
setClientInfo(ClientInfo clientInfo)
void
setPage(org.zkoss.zk.ui.Page page)
Attached to pageprotected void
setSidePopupWidth(org.zkoss.zul.Popup popup)
void
unbindEventManager()
void
updateHelpContext(String ctxType, int recordId)
void
updateHelpQuickInfo(GridTab gridTab)
void
updateHelpTooltip(String hdr, String desc, String help, String otherContent)
void
updateHelpTooltip(GridField gridField)
protected void
updateHelpWidthPreference(String width)
protected void
updateSideControllerWidthPreference(String width)
void
updateUI()
-
Methods inherited from class org.adempiere.webui.desktop.TabbedDesktop
closeActiveWindow, closeWindow, getActiveWindow, openWindow, openWindow, setTabTitle, showEmbedded, showHTMLContent, showURL, showURL, showWindow, showZoomWindow
-
Methods inherited from class org.adempiere.webui.desktop.AbstractDesktop
findWindow, getClientInfo, getPredefinedContextVariables, getWindows, isMenuSOTrx, registerWindow, setMenuIsSOTrx, setPredefinedContextVariables, showHighlighted, showModal, showOverlapped, showPopup, showWindow, showWindow, unregisterWindow
-
Methods inherited from class org.adempiere.webui.part.AbstractUIPart
createPart, 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.part.UIPart
createPart
-
-
-
-
Method Detail
-
doCreatePart
protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
- Specified by:
doCreatePart
in classAbstractUIPart
-
updateSideControllerWidthPreference
protected void updateSideControllerWidthPreference(String width)
-
updateHelpWidthPreference
protected void updateHelpWidthPreference(String width)
-
renderHomeTab
public void renderHomeTab()
- Specified by:
renderHomeTab
in interfaceIDesktop
-
setSidePopupWidth
protected void setSidePopupWidth(org.zkoss.zul.Popup popup)
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event)
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
restoreHeader
protected void restoreHeader()
-
collapseHeader
protected void collapseHeader()
-
setPage
public void setPage(org.zkoss.zk.ui.Page page)
Description copied from interface:IDesktop
Attached to page
-
getComponent
public org.zkoss.zk.ui.Component getComponent()
Get the root component- Specified by:
getComponent
in interfaceIDesktop
- Specified by:
getComponent
in interfaceUIPart
- Returns:
- Component
-
logout
public void logout()
Description copied from interface:IDesktop
User logout from desktop, do clean up
-
updateUI
public void updateUI()
-
preOpenNewTab
protected void preOpenNewTab()
Description copied from class:TabbedDesktop
invoke before a new tab is added to the desktop- Overrides:
preOpenNewTab
in classTabbedDesktop
-
bindEventManager
public void bindEventManager()
-
unbindEventManager
public void unbindEventManager()
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event)
- Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-
cleanup
public void cleanup(org.zkoss.zk.ui.Desktop desktop) throws Exception
- Specified by:
cleanup
in interfaceorg.zkoss.zk.ui.util.DesktopCleanup
- Throws:
Exception
-
updateHelpContext
public void updateHelpContext(String ctxType, int recordId)
- Specified by:
updateHelpContext
in interfaceIDesktop
-
updateHelpTooltip
public void updateHelpTooltip(GridField gridField)
- Specified by:
updateHelpTooltip
in interfaceIDesktop
-
updateHelpTooltip
public void updateHelpTooltip(String hdr, String desc, String help, String otherContent)
- Specified by:
updateHelpTooltip
in interfaceIDesktop
-
updateHelpQuickInfo
public void updateHelpQuickInfo(GridTab gridTab)
- Specified by:
updateHelpQuickInfo
in interfaceIDesktop
-
openProcessDialog
public ProcessDialog openProcessDialog(int processId, boolean soTrx)
- Specified by:
openProcessDialog
in interfaceIDesktop
- Overrides:
openProcessDialog
in classTabbedDesktop
- Returns:
- ProcessDialog
-
openForm
public ADForm openForm(int formId)
- Specified by:
openForm
in interfaceIDesktop
- Overrides:
openForm
in classTabbedDesktop
- Returns:
- ADWindow
-
openInfo
public void openInfo(int infoId)
- Specified by:
openInfo
in interfaceIDesktop
- Overrides:
openInfo
in classTabbedDesktop
-
openWorkflow
public void openWorkflow(int workflow_ID)
- Specified by:
openWorkflow
in interfaceIDesktop
- Overrides:
openWorkflow
in classTabbedDesktop
-
openTask
public void openTask(int taskId)
Description copied from interface:IDesktop
Open operating system task window- Specified by:
openTask
in interfaceIDesktop
- Overrides:
openTask
in classTabbedDesktop
-
isPendingWindow
public boolean isPendingWindow()
- Specified by:
isPendingWindow
in interfaceIDesktop
-
onMenuSelected
public void onMenuSelected(int menuId)
Description copied from class:AbstractDesktop
Event listener for menu item selection. Identifies the action associated with the selected menu item and acts accordingly.- Specified by:
onMenuSelected
in interfaceIDesktop
- Specified by:
onMenuSelected
in interfaceMenuListener
- Overrides:
onMenuSelected
in classAbstractDesktop
- Parameters:
menuId
- Identifier for the selected menu item
-
setClientInfo
public void setClientInfo(ClientInfo clientInfo)
- Specified by:
setClientInfo
in interfaceIDesktop
- Overrides:
setClientInfo
in classAbstractDesktop
-
-