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.
- Version:
- $Revision: 0.10 $
- 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).boolean
canNavigateTo
(int fromIndex, int toIndex) Delegate tocanNavigateTo(int, int, boolean)
boolean
canNavigateTo
(int fromIndex, int toIndex, boolean checkRecordID) protected abstract void
doAddTab
(GridTab tab, IADTabpanel tabPanel) Handle add new tab to UI.protected abstract void
doTabSelectionChanged
(int oldIndex, int newIndex) Handle tab selection change event.void
Handle DataStatusEvent.getADTabpanel
(int index) getPath()
Get break crumb pathint
boolean
isDisplay
(int index) Evaluate display logicboolean
isEnabledAt
(int index) void
setADWindowPanel
(AbstractADWindowContent abstractADWindowPanel) Set AD Window content part that own this IADTabbox instance.void
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.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) - Parameters:
index
- of tab panel- 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()- Specified by:
getTabCount
in interfaceIADTabbox
- Returns:
- the number of tab panels present
-
getADTabpanel
- 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
Description copied from interface:IADTabbox
Set AD Window content part that own this IADTabbox instance.- Specified by:
setADWindowPanel
in interfaceIADTabbox
- Parameters:
abstractADWindowPanel
-
-