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
Abstract base class for header+details AD_Tabs UI for AD_Window.
- Author:
- Ashley G Ramdass, Low Heng Sin
-
Field Summary
Modifier and TypeFieldDescriptionprotected AbstractADWindowContent
Parent part, the content part of AD Windowprotected List<IADTabpanel>
List ofIADTabpanel
instance manage by this AbstractADTabbox instanceFields inherited from class org.adempiere.webui.part.AbstractUIPart
page, showMaskWrapper
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTab
(GridTab gTab, IADTabpanel tabPanel) Add new tab(AD_Tab).
Delegate todoAddTab(GridTab, IADTabpanel)
boolean
canNavigateTo
(int fromIndex, int toIndex) Delegate tocanNavigateTo(int, int, boolean)
boolean
canNavigateTo
(int fromIndex, int toIndex, boolean checkRecordID) Is navigation allow from fromIndex to toIndexprotected abstract void
doAddTab
(GridTab tab, IADTabpanel tabPanel) Handle add new tab to UI.
Override to implement add new tab to UI.protected abstract void
doTabSelectionChanged
(int oldIndex, int newIndex) Handle tab selection change event.
Override to update UI for tab selection change.void
Handle DataStatusEvent.
Delegate toupdateTabState()
.getADTabpanel
(int index) Get IADTabpanel at indexgetPath()
Get break crumb pathint
Get number of tabboolean
isDisplay
(int index) Evaluate display logicboolean
isEnabledAt
(int index) Is tab enable at indexvoid
setADWindowPanel
(AbstractADWindowContent abstractADWindowPanel) Set parent AD window panelvoid
setSelectedIndex
(int newIndex) Set newIndex as selected tab.
Delegate toupdateSelectedIndex(int, int)
.boolean
updateSelectedIndex
(int oldIndex, int newIndex) Change selected tab index from oldIndex to newIndex.
Delegate todoTabSelectionChanged(int, int)
.protected abstract void
Update UI state of tab (visibility, activation and if need invalidate)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 Details
-
tabPanelList
List ofIADTabpanel
instance manage by this AbstractADTabbox instance -
adWindowPanel
Parent part, the content part of AD Window
-
-
Constructor Details
-
AbstractADTabbox
public AbstractADTabbox()default constructor
-
-
Method Details
-
addTab
Add new tab(AD_Tab).
Delegate todoAddTab(GridTab, IADTabpanel)
-
doAddTab
Handle add new tab to UI.
Override to implement add new tab to UI.- Parameters:
tab
-tabPanel
-
-
isEnabledAt
public boolean isEnabledAt(int index) Is tab enable at index- Parameters:
index
- of tab- Returns:
- true if enable, false otherwise
-
updateSelectedIndex
public boolean updateSelectedIndex(int oldIndex, int newIndex) Change selected tab index from oldIndex to newIndex.
Delegate todoTabSelectionChanged(int, int)
.- Specified by:
updateSelectedIndex
in interfaceIADTabbox
- Parameters:
oldIndex
-newIndex
-- Returns:
- true if successfully switch to newIndex
-
doTabSelectionChanged
protected abstract void doTabSelectionChanged(int oldIndex, int newIndex) Handle tab selection change event.
Override to update UI for tab selection change.- Parameters:
oldIndex
-newIndex
-
-
isDisplay
public boolean isDisplay(int index) Evaluate display logic -
getPath
Get break crumb path -
evaluate
Handle DataStatusEvent.
Delegate toupdateTabState()
. -
updateTabState
protected abstract void updateTabState()Update UI state of tab (visibility, activation and if need invalidate) -
getTabCount
public int getTabCount()Get number of tab- Specified by:
getTabCount
in interfaceIADTabbox
- Returns:
- the number of tab panels present
-
getADTabpanel
Get IADTabpanel at index- Specified by:
getADTabpanel
in interfaceIADTabbox
- Parameters:
index
-- Returns:
IADTabpanel
-
setSelectedIndex
public void setSelectedIndex(int newIndex) Set newIndex as selected tab.
Delegate toupdateSelectedIndex(int, int)
.- Specified by:
setSelectedIndex
in interfaceIADTabbox
- Parameters:
newIndex
-
-
setADWindowPanel
Set parent AD window panel- Specified by:
setADWindowPanel
in interfaceIADTabbox
- Parameters:
abstractADWindowPanel
-
-