All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.TabPanel

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.Container
                   |
                   +----com.bulletproof.gui.Panel
                           |
                           +----com.bulletproof.gui.TabPanel

public class TabPanel
extends Panel
implements ItemSelectable, AdjustmentListener
Class TabPanel represents a panel using the CardLayout layout manager.


Constructor Index

 o TabPanel()
Constructs a new Tab Panel.

Method Index

 o addItemListener(ItemListener)
 o adjustmentValueChanged(AdjustmentEvent)
 o getSelectedIndex()
Get the selected panel.
 o getSelectedObjects()
 o getSelectedTab()
Get the selected panel.
 o getTabNames()
Show the selected panel.
 o paint(Graphics)
Paints the container.
 o processMouseEvent(MouseEvent)
This method attempts to distribute a mouse event to a lightweight component.
 o removeItemListener(ItemListener)
 o setSelectedTab(String)
Show the selected tab.
 o setTabName(int, String)
Show the selected panel.
 o validate()
Validates this Container and all of the components contained within it.

Constructors

 o TabPanel
 public TabPanel()
Constructs a new Tab Panel.

Methods

 o addItemListener
 public void addItemListener(ItemListener al)
 o removeItemListener
 public void removeItemListener(ItemListener al)
 o getSelectedObjects
 public Object[] getSelectedObjects()
 o getTabNames
 public String[] getTabNames()
Show the selected panel.

Parameters:
the - index name of the requested panel.
 o setTabName
 public void setTabName(int tabNumber,
                        String tabName)
Show the selected panel.

Parameters:
the - index name of the requested panel.
 o setSelectedTab
 public void setSelectedTab(String tabName)
Show the selected tab.

Parameters:
the - index name of the requested panel.
 o getSelectedTab
 public String getSelectedTab()
Get the selected panel.

Returns:
the index name of the requested panel.
 o getSelectedIndex
 public int getSelectedIndex()
Get the selected panel.

Returns:
the index name of the requested panel.
 o validate
 public void validate()
Validates this Container and all of the components contained within it.

Overrides:
validate in class Container
 o paint
 public void paint(Graphics g)
Paints the container.

Overrides:
paint in class Container
 o processMouseEvent
 public void processMouseEvent(MouseEvent me)
This method attempts to distribute a mouse event to a lightweight component.

Overrides:
processMouseEvent in class Container
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index