Package org.adempiere.webui.adwindow
Class AbstractADTabbox
- java.lang.Object
-
- org.adempiere.webui.part.AbstractUIPart
-
- org.adempiere.webui.adwindow.AbstractADTabbox
-
- All Implemented Interfaces:
IADTabbox
,ISupportMask
,UIPart
- Direct Known Subclasses:
CompositeADTabbox
public abstract class AbstractADTabbox extends AbstractUIPart implements IADTabbox
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass, Low Heng Sin
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractADWindowContent
adWindowPanel
protected List<IADTabpanel>
tabPanelList
Tabs associated to this tab box-
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 AbstractADTabbox()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addTab(GridTab gTab, IADTabpanel tabPanel)
Add Tabboolean
canNavigateTo(int fromIndex, int toIndex)
boolean
canNavigateTo(int fromIndex, int toIndex, boolean checkRecordID)
protected abstract void
doAddTab(GridTab tab, IADTabpanel tabPanel)
protected abstract void
doTabSelectionChanged(int oldIndex, int newIndex)
void
evaluate(DataStatusEvent e)
Evaluate Tab LogicIADTabpanel
getADTabpanel(int index)
String
getPath()
int
getTabCount()
boolean
isDisplay(int index)
boolean
isEnabledAt(int index)
void
setADWindowPanel(AbstractADWindowContent abstractADWindowPanel)
void
setSelectedIndex(int newIndex)
boolean
updateSelectedIndex(int oldIndex, int newIndex)
protected abstract void
updateTabState()
-
Methods inherited from class org.adempiere.webui.part.AbstractUIPart
createPart, doCreatePart, 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.adwindow.IADTabbox
dataIgnore, dataSave, findADTabpanel, getDirtyADTabpanel, getSelectedDetailADTabpanel, getSelectedGridTab, getSelectedIndex, getSelectedTabpanel, isDetailPaneLoaded, isSortTab, needSave, onDetailRecord, setDetailPaneSelectedTab, setDetailPaneStatusMessage, setSelectionEventListener, updateDetailPaneToolbar
-
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart, getComponent
-
-
-
-
Field Detail
-
tabPanelList
protected List<IADTabpanel> tabPanelList
Tabs associated to this tab box
-
adWindowPanel
protected AbstractADWindowContent adWindowPanel
-
-
Method Detail
-
addTab
public void addTab(GridTab gTab, IADTabpanel tabPanel)
Add Tab
-
doAddTab
protected abstract void doAddTab(GridTab tab, IADTabpanel tabPanel)
-
isEnabledAt
public boolean isEnabledAt(int index)
- Parameters:
index
- of tab panel- Returns:
-
updateSelectedIndex
public boolean updateSelectedIndex(int oldIndex, int newIndex)
- Specified by:
updateSelectedIndex
in interfaceIADTabbox
- Parameters:
oldIndex
-newIndex
-- Returns:
-
doTabSelectionChanged
protected abstract void doTabSelectionChanged(int oldIndex, int newIndex)
-
isDisplay
public boolean isDisplay(int index)
-
canNavigateTo
public boolean canNavigateTo(int fromIndex, int toIndex)
- Specified by:
canNavigateTo
in interfaceIADTabbox
- Returns:
- boolean
-
canNavigateTo
public boolean canNavigateTo(int fromIndex, int toIndex, boolean checkRecordID)
-
evaluate
public void evaluate(DataStatusEvent e)
Evaluate Tab Logic
-
updateTabState
protected abstract void updateTabState()
-
getTabCount
public int getTabCount()
- Specified by:
getTabCount
in interfaceIADTabbox
- Returns:
- the number of tab panels present
-
getADTabpanel
public IADTabpanel getADTabpanel(int index)
- Specified by:
getADTabpanel
in interfaceIADTabbox
- Returns:
- IADTabpanel
-
setSelectedIndex
public void setSelectedIndex(int newIndex)
- Specified by:
setSelectedIndex
in interfaceIADTabbox
- Parameters:
newIndex
- tab index
-
setADWindowPanel
public void setADWindowPanel(AbstractADWindowContent abstractADWindowPanel)
- Specified by:
setADWindowPanel
in interfaceIADTabbox
-
-