Package org.adempiere.webui.adwindow
Interface IADTabbox
-
- All Superinterfaces:
UIPart
- All Known Implementing Classes:
AbstractADTabbox
,CompositeADTabbox
public interface IADTabbox extends UIPart
- Author:
- Low Heng Sin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTab(GridTab tab, IADTabpanel tabPanel)
boolean
canNavigateTo(int fromIndex, int toIndex)
void
dataIgnore()
ignore all pending changesboolean
dataSave(boolean onSaveEvent)
void
evaluate(DataStatusEvent e)
IADTabpanel
findADTabpanel(GridTab gTab)
IADTabpanel
getADTabpanel(int index)
IADTabpanel
getDirtyADTabpanel()
String
getPath()
IADTabpanel
getSelectedDetailADTabpanel()
GridTab
getSelectedGridTab()
int
getSelectedIndex()
IADTabpanel
getSelectedTabpanel()
int
getTabCount()
boolean
isDetailPaneLoaded()
boolean
isDisplay(int index)
boolean
isSortTab()
boolean
needSave(boolean rowChange, boolean onlyRealChange)
void
onDetailRecord()
drill down to the current selected adtabpanelvoid
setADWindowPanel(AbstractADWindowContent abstractADWindowPanel)
void
setDetailPaneSelectedTab(int tabIndex, int currentRow)
void
setDetailPaneStatusMessage(String status, boolean error)
void
setSelectedIndex(int i)
void
setSelectionEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
void
updateDetailPaneToolbar(boolean changed, boolean readOnly)
boolean
updateSelectedIndex(int oldTabIndex, int newTabIndex)
-
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart, getComponent
-
-
-
-
Method Detail
-
getSelectedIndex
int getSelectedIndex()
- Returns:
- selected tab index
-
setSelectedIndex
void setSelectedIndex(int i)
- Parameters:
i
- tab index
-
updateSelectedIndex
boolean updateSelectedIndex(int oldTabIndex, int newTabIndex)
- Parameters:
oldTabIndex
-newTabIndex
-- Returns:
-
getSelectedTabpanel
IADTabpanel getSelectedTabpanel()
- Returns:
- selected tab panel reference
-
canNavigateTo
boolean canNavigateTo(int fromIndex, int toIndex)
- Parameters:
fromIndex
-toIndex
-- Returns:
- boolean
-
isDisplay
boolean isDisplay(int index)
- Parameters:
index
-- Returns:
- boolean
-
addTab
void addTab(GridTab tab, IADTabpanel tabPanel)
- Parameters:
tab
-tabPanel
-
-
getTabCount
int getTabCount()
- Returns:
- Number of tab
-
evaluate
void evaluate(DataStatusEvent e)
- Parameters:
e
-
-
getPath
String getPath()
- Returns:
- path to the active tab
-
setSelectionEventListener
void setSelectionEventListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
- Parameters:
listener
-
-
getADTabpanel
IADTabpanel getADTabpanel(int index)
- Parameters:
index
-- Returns:
- IADTabpanel
-
findADTabpanel
IADTabpanel findADTabpanel(GridTab gTab)
- Parameters:
gTab
-- Returns:
- IADTabpanel or null if not found
-
setADWindowPanel
void setADWindowPanel(AbstractADWindowContent abstractADWindowPanel)
- Parameters:
abstractADWindowPanel
-
-
onDetailRecord
void onDetailRecord()
drill down to the current selected adtabpanel
-
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 all pending changes
-
getSelectedGridTab
GridTab getSelectedGridTab()
- Returns:
- selected header grid tab
-
dataSave
boolean dataSave(boolean onSaveEvent)
- Parameters:
onSaveEvent
-- Returns:
- true if save is successfull
-
setDetailPaneStatusMessage
void setDetailPaneStatusMessage(String status, boolean error)
- Parameters:
status
-error
-
-
getSelectedDetailADTabpanel
IADTabpanel getSelectedDetailADTabpanel()
- Returns:
- the currently selected detail adtabpanel
-
getDirtyADTabpanel
IADTabpanel getDirtyADTabpanel()
- Returns:
- dirty adtabpanel that need save ( if any )
-
updateDetailPaneToolbar
void updateDetailPaneToolbar(boolean changed, boolean readOnly)
- Parameters:
changed
-readOnly
-
-
setDetailPaneSelectedTab
void setDetailPaneSelectedTab(int tabIndex, int currentRow)
- Parameters:
tabIndex
-currentRow
-
-
isDetailPaneLoaded
boolean isDetailPaneLoaded()
- Returns:
- true if all the tabs of detail pane have been linked up with adtabpanel
-
-