Package org.adempiere.webui.part
Class WindowContainer
java.lang.Object
org.adempiere.webui.part.AbstractUIPart
org.adempiere.webui.part.WindowContainer
- All Implemented Interfaces:
ISupportMask
,UIPart
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WindowContainer
extends AbstractUIPart
implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Controller for multiple desktop windows.
Implemented using
Implemented using
Tabbox
.- Author:
- Low Heng Sin
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class org.adempiere.webui.part.AbstractUIPart
page, showMaskWrapper
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byaddWindow(Component, String, boolean, boolean, DecorateInfo)
addWindow
(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo) Add comp as new tabaddWindow
(org.zkoss.zk.ui.Component comp, String title, boolean closeable, Tab.DecorateInfo decorateInfo) Add comp as new tabboolean
Close current active window (tab)protected void
Close tabs from start to end, set focus to focus index parameter.static WindowContainer
createFrom
(Tabbox tb) protected org.zkoss.zk.ui.Component
doCreatePart
(org.zkoss.zk.ui.Component parent) Sub class override this to create root UI block or child UI blockGet current selected taborg.zkoss.zul.Tab
getTab
(int windowNo) IDEMPIERE-2333 / getTab - get tab by windowNoinsertAfter
(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable) Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byinsertAfter(Tab, Component, String, boolean, boolean, DecorateInfo)
insertAfter
(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo) Insert comp as new tab after refTab.insertBefore
(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable) Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byinsertBefore(Tab, Component, String, boolean, boolean, DecorateInfo)
insertBefore
(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo) Insert comp as new tab before refTabvoid
onEvent
(org.zkoss.zk.ui.event.Event event) org.zkoss.zul.Tab
IDEMPIERE-5275 - Tabular Report Re-Run button/close parameter window.void
setSelectedTab
(org.zkoss.zul.Tab tab) Set tab as selected tab.void
setTabTitle
(int tabNo, String title, String tooltip) void
setTabTitle
(String title, int windowNo) Set tab title by windowNovoid
setTabTitle
(String title, org.zkoss.zul.Tab tab) Set title of tabMethods inherited from class org.adempiere.webui.part.AbstractUIPart
createPart, getMaskComponent, getMaskObj, hideMask, showMask
-
Field Details
-
ON_MOBILE_SET_SELECTED_TAB
- See Also:
-
ON_WINDOW_CONTAINER_SELECTION_CHANGED_EVENT
- See Also:
-
DEFER_SET_SELECTED_TAB
- See Also:
-
REPLACE_WINDOW_NO
- See Also:
-
-
Constructor Details
-
WindowContainer
public WindowContainer()
-
-
Method Details
-
createFrom
- Parameters:
tb
-- Returns:
- WindowContainer
-
doCreatePart
protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent) Description copied from class:AbstractUIPart
Sub class override this to create root UI block or child UI block- Specified by:
doCreatePart
in classAbstractUIPart
- Parameters:
parent
- parent Component or null for root UI block- Returns:
- Component
-
addWindow
@Deprecated(forRemoval=true, since="11") public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable) Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byaddWindow(Component, String, boolean, DecorateInfo)
- Parameters:
comp
-title
-closeable
-- Returns:
-
addWindow
@Deprecated(forRemoval=true, since="11") public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable) Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byaddWindow(Component, String, boolean, boolean, DecorateInfo)
- Parameters:
comp
-title
-closeable
-enable
-- Returns:
-
insertBefore
@Deprecated(forRemoval=true, since="11") public Tab insertBefore(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable) Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byinsertBefore(Tab, Component, String, boolean, boolean, DecorateInfo)
- Parameters:
refTab
-comp
-title
-closeable
-enable
-- Returns:
-
insertAfter
@Deprecated(forRemoval=true, since="11") public Tab insertAfter(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable) Deprecated, for removal: This API element is subject to removal in a future version.keep for compatible, replace byinsertAfter(Tab, Component, String, boolean, boolean, DecorateInfo)
- Parameters:
refTab
-comp
-title
-closeable
-enable
-- Returns:
-
addWindow
public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, Tab.DecorateInfo decorateInfo) Add comp as new tab- Parameters:
comp
-title
-closeable
-decorateInfo
-- Returns:
- new tab
-
addWindow
public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo) Add comp as new tab- Parameters:
comp
-title
-closeable
-enable
-decorateInfo
-- Returns:
- new tab
-
insertBefore
public Tab insertBefore(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo) Insert comp as new tab before refTab- Parameters:
refTab
-comp
-title
-closeable
-enable
-decorateInfo
-- Returns:
- new tab
-
closeTabs
Close tabs from start to end, set focus to focus index parameter.- Parameters:
tab
-start
-end
-focus
-
-
setTabTitle
Set tab title by windowNo- Parameters:
title
-windowNo
-
-
getTab
public org.zkoss.zul.Tab getTab(int windowNo) IDEMPIERE-2333 / getTab - get tab by windowNo- Parameters:
windowNo
-- Returns:
- org.zkoss.zul.Tab
-
setTabTitle
Set title of tab- Parameters:
title
-tab
-
-
insertAfter
public Tab insertAfter(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo) Insert comp as new tab after refTab.- Parameters:
refTab
-comp
-title
-closeable
-enable
-decorateInfo
-- Returns:
- new tab
-
replace
IDEMPIERE-5275 - Tabular Report Re-Run button/close parameter window.
Replace content of refTab with comp.- Parameters:
refTab
-comp
-title
-- Returns:
- org.zkoss.zul.Tab
-
setSelectedTab
public void setSelectedTab(org.zkoss.zul.Tab tab) Set tab as selected tab.- Parameters:
tab
-
-
closeActiveWindow
public boolean closeActiveWindow()Close current active window (tab)- Returns:
- true if successfully close the active window
-
getSelectedTab
Get current selected tab- Returns:
- Tab
-
setTabTitle
- Parameters:
tabNo
-title
-tooltip
-
-
getComponent
- Specified by:
getComponent
in interfaceUIPart
- Returns:
- Tabbox
-
getToobar
- Returns:
- toolbar
-
onEvent
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
addWindow(Component, String, boolean, DecorateInfo)