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>
- Author:
- Low Heng Sin
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFER_SET_SELECTED_TAB
static String
ON_MOBILE_SET_SELECTED_TAB
static String
ON_WINDOW_CONTAINER_SELECTION_CHANGED_EVENT
-
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
Constructors Constructor Description WindowContainer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Tab
addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable)
Deprecated.keep for compatible, replace byaddWindow(Component, String, boolean, DecorateInfo)
Tab
addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
Deprecated.keep for compatible, replace byaddWindow(Component, String, boolean, boolean, DecorateInfo)
Tab
addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo)
Tab
addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, Tab.DecorateInfo decorateInfo)
boolean
closeActiveWindow()
protected void
closeTabs(Tab tab, int start, int end, int focus)
static WindowContainer
createFrom(Tabbox tb)
protected org.zkoss.zk.ui.Component
doCreatePart(org.zkoss.zk.ui.Component parent)
Tabbox
getComponent()
Tab
getSelectedTab()
ToolBar
getToobar()
Tab
insertAfter(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
Deprecated.keep for compatible, replace byinsertAfter(Tab, Component, String, boolean, boolean, DecorateInfo)
Tab
insertAfter(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo)
Tab
insertBefore(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
Deprecated.keep for compatible, replace byinsertBefore(Tab, Component, String, boolean, boolean, DecorateInfo)
Tab
insertBefore(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo)
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
setSelectedTab(org.zkoss.zul.Tab tab)
void
setTabTitle(int tabNo, String title, String tooltip)
void
setTabTitle(String title, int windowNo)
void
setTabTitle(String title, org.zkoss.zul.Tab tab)
-
Methods inherited from class org.adempiere.webui.part.AbstractUIPart
createPart, getMaskComponent, getMaskObj, hideMask, showMask
-
-
-
-
Field Detail
-
ON_MOBILE_SET_SELECTED_TAB
public static final String ON_MOBILE_SET_SELECTED_TAB
- See Also:
- Constant Field Values
-
ON_WINDOW_CONTAINER_SELECTION_CHANGED_EVENT
public static final String ON_WINDOW_CONTAINER_SELECTION_CHANGED_EVENT
- See Also:
- Constant Field Values
-
DEFER_SET_SELECTED_TAB
public static final String DEFER_SET_SELECTED_TAB
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFrom
public static WindowContainer createFrom(Tabbox tb)
- Parameters:
tb
-- Returns:
- WindowContainer
-
doCreatePart
protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
- Specified by:
doCreatePart
in classAbstractUIPart
-
addWindow
public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable)
Deprecated.keep for compatible, replace byaddWindow(Component, String, boolean, DecorateInfo)
- Parameters:
comp
-title
-closeable
-- Returns:
-
addWindow
public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
Deprecated.keep for compatible, replace byaddWindow(Component, String, boolean, boolean, DecorateInfo)
- Parameters:
comp
-title
-closeable
-enable
-- Returns:
-
insertBefore
public Tab insertBefore(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
Deprecated.keep for compatible, replace byinsertBefore(Tab, Component, String, boolean, boolean, DecorateInfo)
- Parameters:
refTab
-comp
-title
-closeable
-enable
-- Returns:
-
insertAfter
public Tab insertAfter(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
Deprecated.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)
- Parameters:
comp
-title
-closeable
-
-
addWindow
public Tab addWindow(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo)
- Parameters:
comp
-title
-closeable
-enable
-
-
insertBefore
public Tab insertBefore(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo)
- Parameters:
refTab
-comp
-title
-closeable
-enable
-
-
closeTabs
protected void closeTabs(Tab tab, int start, int end, int focus)
-
setTabTitle
public void setTabTitle(String title, int windowNo)
-
setTabTitle
public void setTabTitle(String title, org.zkoss.zul.Tab tab)
-
insertAfter
public Tab insertAfter(Tab refTab, org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable, Tab.DecorateInfo decorateInfo)
- Parameters:
refTab
-comp
-title
-closeable
-enable
-
-
setSelectedTab
public void setSelectedTab(org.zkoss.zul.Tab tab)
- Parameters:
tab
-
-
closeActiveWindow
public boolean closeActiveWindow()
- Returns:
- true if successfully close the active window
-
getSelectedTab
public Tab getSelectedTab()
- Returns:
- Tab
-
setTabTitle
public void setTabTitle(int tabNo, String title, String tooltip)
- Parameters:
tabNo
-title
-tooltip
-
-
getComponent
public Tabbox getComponent()
- Specified by:
getComponent
in interfaceUIPart
- Returns:
- Tabbox
-
getToobar
public ToolBar getToobar()
- Returns:
- toolbar
-
-