Package org.adempiere.webui.adwindow
Class CompositeADTabbox
- java.lang.Object
-
- org.adempiere.webui.part.AbstractUIPart
-
- org.adempiere.webui.adwindow.AbstractADTabbox
-
- org.adempiere.webui.adwindow.CompositeADTabbox
-
- All Implemented Interfaces:
IADTabbox
,ISupportMask
,UIPart
public class CompositeADTabbox extends AbstractADTabbox
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass, Low Heng Sin
-
-
Field Summary
Fields Modifier and Type Field Description static String
AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE
static String
ON_SELECTION_CHANGED_EVENT
-
Fields inherited from class org.adempiere.webui.adwindow.AbstractADTabbox
adWindowPanel
-
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 CompositeADTabbox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DetailPane
createDetailPane()
void
dataIgnore()
ignore all pending changesboolean
dataSave(boolean onSaveEvent)
protected void
doAddTab(GridTab gTab, IADTabpanel tabPanel)
protected org.zkoss.zk.ui.Component
doCreatePart(org.zkoss.zk.ui.Component parent)
protected void
doTabSelectionChanged(int oldIndex, int newIndex)
IADTabpanel
findADTabpanel(GridTab gTab)
org.zkoss.zk.ui.Component
getComponent()
IADTabpanel
getDirtyADTabpanel()
IADTabpanel
getSelectedDetailADTabpanel()
GridTab
getSelectedGridTab()
int
getSelectedIndex()
IADTabpanel
getSelectedTabpanel()
Return the selected Tab Panelboolean
isDetailActivated()
boolean
isDetailPaneLoaded()
boolean
isSortTab()
boolean
needSave(boolean rowChange, boolean onlyRealChange)
void
onDetailRecord()
drill down to the current selected adtabpanelprotected void
onEditDetail(int row, boolean formView)
void
setDetailPaneSelectedTab(int adTabNo, int currentRow)
void
setDetailPaneStatusMessage(String status, boolean error)
void
setSelectionEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
void
updateDetailPaneToolbar(boolean changed, boolean readOnly)
boolean
updateSelectedIndex(int oldIndex, int newIndex)
protected void
updateTabState()
-
Methods inherited from class org.adempiere.webui.adwindow.AbstractADTabbox
addTab, canNavigateTo, canNavigateTo, evaluate, getADTabpanel, getPath, getTabCount, isDisplay, isEnabledAt, setADWindowPanel, setSelectedIndex
-
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
-
-
-
-
Field Detail
-
AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE
public static final String AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE
- See Also:
- Constant Field Values
-
ON_SELECTION_CHANGED_EVENT
public static final String ON_SELECTION_CHANGED_EVENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
createDetailPane
protected DetailPane createDetailPane()
-
onEditDetail
protected void onEditDetail(int row, boolean formView)
-
doCreatePart
protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
- Specified by:
doCreatePart
in classAbstractUIPart
-
doAddTab
protected void doAddTab(GridTab gTab, IADTabpanel tabPanel)
- Specified by:
doAddTab
in classAbstractADTabbox
-
updateSelectedIndex
public boolean updateSelectedIndex(int oldIndex, int newIndex)
- Specified by:
updateSelectedIndex
in interfaceIADTabbox
- Overrides:
updateSelectedIndex
in classAbstractADTabbox
- Returns:
-
updateTabState
protected void updateTabState()
- Specified by:
updateTabState
in classAbstractADTabbox
-
getSelectedTabpanel
public IADTabpanel getSelectedTabpanel()
Return the selected Tab Panel- Returns:
- selected tab panel reference
-
getSelectedIndex
public int getSelectedIndex()
- Returns:
- selected tab index
-
setSelectionEventListener
public void setSelectionEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
-
doTabSelectionChanged
protected void doTabSelectionChanged(int oldIndex, int newIndex)
- Specified by:
doTabSelectionChanged
in classAbstractADTabbox
-
getComponent
public org.zkoss.zk.ui.Component getComponent()
-
findADTabpanel
public IADTabpanel findADTabpanel(GridTab gTab)
- Returns:
- IADTabpanel or null if not found
-
onDetailRecord
public void onDetailRecord()
Description copied from interface:IADTabbox
drill down to the current selected adtabpanel
-
isDetailActivated
public boolean isDetailActivated()
-
isSortTab
public boolean isSortTab()
- Returns:
- true if current header tab is a sort tab
-
getSelectedDetailADTabpanel
public IADTabpanel getSelectedDetailADTabpanel()
- Returns:
- the currently selected detail adtabpanel
-
needSave
public boolean needSave(boolean rowChange, boolean onlyRealChange)
- Returns:
- true if there are changes pending to be save
-
dataIgnore
public void dataIgnore()
Description copied from interface:IADTabbox
ignore all pending changes
-
getSelectedGridTab
public GridTab getSelectedGridTab()
- Returns:
- selected header grid tab
-
dataSave
public boolean dataSave(boolean onSaveEvent)
- Returns:
- true if save is successfull
-
setDetailPaneStatusMessage
public void setDetailPaneStatusMessage(String status, boolean error)
-
getDirtyADTabpanel
public IADTabpanel getDirtyADTabpanel()
- Returns:
- dirty adtabpanel that need save ( if any )
-
updateDetailPaneToolbar
public void updateDetailPaneToolbar(boolean changed, boolean readOnly)
-
isDetailPaneLoaded
public boolean isDetailPaneLoaded()
- Returns:
- true if all the tabs of detail pane have been linked up with adtabpanel
-
setDetailPaneSelectedTab
public void setDetailPaneSelectedTab(int adTabNo, int currentRow)
-
-