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.
-
TabPanel()
- Constructs a new Tab Panel.
-
addItemListener(ItemListener)
-
-
adjustmentValueChanged(AdjustmentEvent)
-
-
getSelectedIndex()
- Get the selected panel.
-
getSelectedObjects()
-
-
getSelectedTab()
- Get the selected panel.
-
getTabNames()
- Show the selected panel.
-
paint(Graphics)
-
Paints the container.
-
processMouseEvent(MouseEvent)
- This method attempts to distribute a mouse event to a lightweight
component.
-
removeItemListener(ItemListener)
-
-
setSelectedTab(String)
- Show the selected tab.
-
setTabName(int, String)
- Show the selected panel.
-
validate()
-
Validates this Container and all of the components contained
within it.
TabPanel
public TabPanel()
- Constructs a new Tab Panel.
addItemListener
public void addItemListener(ItemListener al)
removeItemListener
public void removeItemListener(ItemListener al)
getSelectedObjects
public Object[] getSelectedObjects()
getTabNames
public String[] getTabNames()
- Show the selected panel.
- Parameters:
- the - index name of the requested panel.
setTabName
public void setTabName(int tabNumber,
String tabName)
- Show the selected panel.
- Parameters:
- the - index name of the requested panel.
setSelectedTab
public void setSelectedTab(String tabName)
- Show the selected tab.
- Parameters:
- the - index name of the requested panel.
getSelectedTab
public String getSelectedTab()
- Get the selected panel.
- Returns:
- the index name of the requested panel.
getSelectedIndex
public int getSelectedIndex()
- Get the selected panel.
- Returns:
- the index name of the requested panel.
validate
public void validate()
- Validates this Container and all of the components contained
within it.
- Overrides:
- validate in class Container
paint
public void paint(Graphics g)
- Paints the container.
- Overrides:
- paint in class Container
processMouseEvent
public void processMouseEvent(MouseEvent me)
- This method attempts to distribute a mouse event to a lightweight
component.
- Overrides:
- processMouseEvent in class Container
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
All Packages Class Hierarchy This Package Previous Next Index