Package org.adempiere.webui.adwindow
Interface IADTabbox
- All Superinterfaces:
UIPart
- All Known Implementing Classes:
AbstractADTabbox
,CompositeADTabbox
Controller 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 header tab (AD_Tab)boolean
canNavigateTo
(int fromIndex, int toIndex) Is navigation allow from fromIndex to toIndexvoid
Ignore/undo all pending changesboolean
dataSave
(boolean onSaveEvent) Save changesvoid
Evaluate state of each tab after DataStatusEventfindADTabpanel
(GridTab gTab) Find IADTabpanel by GridTabgetADTabpanel
(int index) Get header IADTabpanel at indexGet IADTabpanel that has pending changes to savegetPath()
Get full path to the selected header tab (for e.g Business Partner > Location)Get IADTabpanel of selected detail tabGet Grid of selected header tabint
Get selected header tab indexGet selected header tab panelint
Get number of header tabboolean
Is detail pane loadedboolean
isDisplay
(int index) Is header tab at index visibleboolean
Is current selected header tab a sort tabboolean
needSave
(boolean rowChange, boolean onlyRealChange) Is current selected header or detail tab has pending changes to save CallIADTabpanel.needSave(boolean, boolean)
void
Edit current row of selected detail tab.
The selected detail tab will become the new header tab.void
setADWindowPanel
(AbstractADWindowContent abstractADWindowPanel) Set parent AD Window panelvoid
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) Update state of detail pane toolbar.
CallDetailPane.updateToolbar(boolean, boolean)
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()Get selected header tab index- 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()Get selected header tab panel- Returns:
- selected header
IADTabpanel
instance
-
isDisplay
boolean isDisplay(int index) Is header tab at index visible- Parameters:
index
-- Returns:
- true if tab at index visible, false otherwise
-
addTab
Add new header tab (AD_Tab)- Parameters:
tab
-GridTab
for AD_TabtabPanel
-IADTabpanel
instance for AD_Tab
-
getTabCount
int getTabCount()Get number of header tab- Returns:
- Number of tab
-
evaluate
Evaluate state of each tab after DataStatusEvent- Parameters:
e
-
-
getPath
String getPath()Get full path to the selected header tab (for e.g Business Partner > Location)- 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
Get header IADTabpanel at index- Parameters:
index
- tab index- Returns:
IADTabpanel
instance at index
-
findADTabpanel
Find IADTabpanel by GridTab- Parameters:
gTab
-- Returns:
IADTabpanel
instance for gTab or null if not found
-
setADWindowPanel
Set parent AD Window panel- 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()Is current selected header tab a sort tab- Returns:
- true if current header tab is a sort tab
-
needSave
boolean needSave(boolean rowChange, boolean onlyRealChange) Is current selected header or detail tab has pending changes to save CallIADTabpanel.needSave(boolean, boolean)
- Parameters:
rowChange
-onlyRealChange
-- Returns:
- true if there are changes pending to be save
-
dataIgnore
void dataIgnore()Ignore/undo all pending changes -
getSelectedGridTab
GridTab getSelectedGridTab()Get Grid of selected header tab- 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()Get IADTabpanel of selected detail tab- Returns:
- the selected detail
IADTabpanel
instance
-
getDirtyADTabpanel
IADTabpanel getDirtyADTabpanel()Get IADTabpanel that has pending changes to save- Returns:
- dirty
IADTabpanel
that need save ( if any )
-
updateDetailPaneToolbar
void updateDetailPaneToolbar(boolean changed, boolean readOnly) Update state of detail pane toolbar.
CallDetailPane.updateToolbar(boolean, boolean)
- 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()Is detail pane loaded- Returns:
- true if all the tabs of detail pane have been linked up with header tab
-