Package org.adempiere.webui.adwindow
Interface IADTabbox
- All Superinterfaces:
UIPart
- All Known Implementing Classes:
AbstractADTabbox
,CompositeADTabbox
Interface for header+details AD_Tabs UI for AD_Window.
- Author:
- Low Heng Sin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTab
(GridTab tab, IADTabpanel tabPanel) add new tab (AD_Tab)boolean
canNavigateTo
(int fromIndex, int toIndex) void
ignore/undo all pending changesboolean
dataSave
(boolean onSaveEvent) Save changesvoid
Evaluate state of each tab after DataStatusEventfindADTabpanel
(GridTab gTab) getADTabpanel
(int index) getPath()
int
int
boolean
boolean
isDisplay
(int index) boolean
boolean
needSave
(boolean rowChange, boolean onlyRealChange) void
Edit current row of selected detail tab.void
setADWindowPanel
(AbstractADWindowContent abstractADWindowPanel) Set AD Window content part that own this IADTabbox instance.void
setDetailPaneSelectedTab
(int tabIndex, int currentRow) Set selected tab ofDetailPane
to tabIndex.void
setDetailPaneStatusMessage
(String status, boolean error) Update status text ofDetailPane
void
setSelectedIndex
(int i) set selected header tabvoid
setSelectionEventListener
(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener) Set event listener for tab selection change eventvoid
updateDetailPaneToolbar
(boolean changed, boolean readOnly) boolean
updateSelectedIndex
(int oldTabIndex, int newTabIndex) Change selected header tab index from oldTabIndex to newTabIndexMethods inherited from interface org.adempiere.webui.part.UIPart
createPart, getComponent
-
Method Details
-
getSelectedIndex
int getSelectedIndex()- Returns:
- selected header tab index
-
setSelectedIndex
void setSelectedIndex(int i) set selected header tab- Parameters:
i
- tab index
-
updateSelectedIndex
boolean updateSelectedIndex(int oldTabIndex, int newTabIndex) Change selected header tab index from oldTabIndex to newTabIndex- Parameters:
oldTabIndex
-newTabIndex
-- Returns:
- true if selected tab successfully change to newTabIndex
-
getSelectedTabpanel
IADTabpanel getSelectedTabpanel()- Returns:
- selected header
IADTabpanel
instance
-
isDisplay
boolean isDisplay(int index) - Parameters:
index
-- Returns:
- true if tab at index visible, false otherwise
-
addTab
add new tab (AD_Tab)- Parameters:
tab
-GridTab
for AD_TabtabPanel
-IADTabpanel
instance for AD_Tab
-
getTabCount
int getTabCount()- Returns:
- Number of tab
-
evaluate
Evaluate state of each tab after DataStatusEvent- Parameters:
e
-
-
getPath
String getPath()- Returns:
- folder like parent/child path to the selected tab (for e.g Business Partner > Location)
-
setSelectionEventListener
void setSelectionEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener) Set event listener for tab selection change event- Parameters:
listener
-
-
getADTabpanel
- Parameters:
index
- tab index- Returns:
IADTabpanel
instance at index
-
findADTabpanel
- Parameters:
gTab
-- Returns:
IADTabpanel
instance for gTab or null if not found
-
setADWindowPanel
Set AD Window content part that own this IADTabbox instance.- Parameters:
abstractADWindowPanel
-
-
onDetailRecord
void onDetailRecord()Edit current row of selected detail tab. The selected detail tab will become the new header tab. -
isSortTab
boolean isSortTab()- Returns:
- true if current header tab is a sort tab
-
needSave
boolean needSave(boolean rowChange, boolean onlyRealChange) - Parameters:
rowChange
-onlyRealChange
-- Returns:
- true if there are changes pending to be save
-
dataIgnore
void dataIgnore()ignore/undo all pending changes -
getSelectedGridTab
GridTab getSelectedGridTab()- Returns:
GridTab
instance of header tab
-
dataSave
boolean dataSave(boolean onSaveEvent) Save changes- Parameters:
onSaveEvent
-- Returns:
- true if save is successful
-
setDetailPaneStatusMessage
Update status text ofDetailPane
- Parameters:
status
-error
-
-
getSelectedDetailADTabpanel
IADTabpanel getSelectedDetailADTabpanel()- Returns:
- the selected detail
IADTabpanel
instance
-
getDirtyADTabpanel
IADTabpanel getDirtyADTabpanel()- Returns:
- dirty
IADTabpanel
that need save ( if any )
-
updateDetailPaneToolbar
void updateDetailPaneToolbar(boolean changed, boolean readOnly) - Parameters:
changed
- true if header tab has changedreadOnly
- true if header tab is readonly
-
setDetailPaneSelectedTab
void setDetailPaneSelectedTab(int tabIndex, int currentRow) Set selected tab ofDetailPane
to tabIndex.- Parameters:
tabIndex
-currentRow
- set current row of tab at tabIndex to currentRow
-
isDetailPaneLoaded
boolean isDetailPaneLoaded()- Returns:
- true if all the tabs of detail pane have been linked up with header tab
-