Adempiere 3.5.2a

org.adempiere.webui.component
Class AbstractADTab

java.lang.Object
  extended by org.adempiere.webui.part.AbstractUIPart
      extended by org.adempiere.webui.component.AbstractADTab
All Implemented Interfaces:
IADTab, UIPart
Direct Known Subclasses:
CompositeADTab

public abstract class AbstractADTab
extends AbstractUIPart
implements IADTab

Version:
$Revision: 0.10 $
Author:
Ashley G Ramdass, Low Heng Sin

Field Summary
protected  List<IADTabpanel> tabPanelList
          Tabs associated to this tab box
 
Fields inherited from class org.adempiere.webui.part.AbstractUIPart
page
 
Constructor Summary
AbstractADTab()
           
 
Method Summary
 void addTab(GridTab gTab, IADTabpanel tabPanel)
          Add Tab
 boolean canNavigateTo(int fromIndex, int toIndex)
           
protected abstract  void doAddTab(GridTab tab, IADTabpanel tabPanel)
           
protected abstract  void doTabSelectionChanged(int oldIndex, int newIndex)
           
 void evaluate(DataStatusEvent e)
          Evaluate Tab Logic
 IADTabpanel getADTabpanel(int index)
           
 String getPath()
           
 int getTabCount()
           
 boolean isEnabledAt(int index)
           
 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
 
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.component.IADTab
addSelectionEventListener, getSelectedIndex, getSelectedTabpanel, getTabSelectionComponent, isUseExternalSelection
 
Methods inherited from interface org.adempiere.webui.part.UIPart
createPart, getComponent
 

Field Detail

tabPanelList

protected List<IADTabpanel> tabPanelList
Tabs associated to this tab box

Constructor Detail

AbstractADTab

public AbstractADTab()
Method Detail

addTab

public void addTab(GridTab gTab,
                   IADTabpanel tabPanel)
Add Tab

Specified by:
addTab in interface IADTab
Parameters:
tabName - name
gTab - grid tab model
tabElement - GridController or VSortTab

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 interface IADTab
Parameters:
oldIndex -
newIndex -
Returns:

doTabSelectionChanged

protected abstract void doTabSelectionChanged(int oldIndex,
                                              int newIndex)

canNavigateTo

public boolean canNavigateTo(int fromIndex,
                             int toIndex)
Specified by:
canNavigateTo in interface IADTab

getPath

public String getPath()
Specified by:
getPath in interface IADTab
Returns:
full path

evaluate

public void evaluate(DataStatusEvent e)
Evaluate Tab Logic

Specified by:
evaluate in interface IADTab
Parameters:
e - event

updateTabState

protected abstract void updateTabState()

getTabCount

public int getTabCount()
Specified by:
getTabCount in interface IADTab
Returns:
the number of tab panels present

getADTabpanel

public IADTabpanel getADTabpanel(int index)

setSelectedIndex

public void setSelectedIndex(int newIndex)
Specified by:
setSelectedIndex in interface IADTab

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.