Class jToolkit.Gui.TabPanel
All Packages Class Hierarchy This Package Previous Next Index
Class jToolkit.Gui.TabPanel
Object
|
+----Component
|
+----Container
|
+----Panel
|
+----jToolkit.Gui.TabPanel
- public class TabPanel
- extends Panel
- implements MouseListener
TabPanel is a container for a set of tabbed cards, lying atop each other,
but with the labelled tabs exposed at the top. That is, the classic Tab
Folder. Each card is an awt.component of whatever design you wish. The
topmost card can be selected programmatically (Using first(), last(),
next(), previous(), or show(name)), or by clicking on the tab with the mouse.
Components should be added using add(name,component)); the name is used
to label the tab. If you set the layout manager, it should be a subclass
of CardLayout.
You probably want to setBackground() to a color contrasting that of
the parent and the components.
- Author:
- Andreas Schroeter
- Since:
- 30.03.
-
margin
-
-
jToolkit.Gui.TabPanel()
-
-
add(String, Component)
-
-
doLayout()
-
-
documentCard(String)
-
-
first()
-
-
getFont()
-
-
getInsets()
-
-
last()
-
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
next()
-
-
paint(Graphics)
-
-
previous()
-
-
remove(Component)
-
-
remove(String)
-
-
removeAll()
-
-
setFont(Font)
-
-
setTabFont(Font)
-
-
show(String)
-
-
show(Component)
-
margin
public int margin
TabPanel
public TabPanel()
add
public java.awt.Component add(String name,
Component component)
- Overrides:
- add in class Container
doLayout
public void doLayout()
- Overrides:
- doLayout in class Container
documentCard
public java.lang.String documentCard(String name)
first
public void first()
getFont
public java.awt.Font getFont()
- Overrides:
- getFont in class Component
getInsets
public java.awt.Insets getInsets()
- Overrides:
- getInsets in class Container
last
public void last()
mouseClicked
public void mouseClicked(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent mouseevent)
mouseExited
public void mouseExited(MouseEvent mouseevent)
mousePressed
public void mousePressed(MouseEvent mouseevent)
mouseReleased
public void mouseReleased(MouseEvent e)
next
public void next()
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
previous
public void previous()
remove
public void remove(Component component)
- Overrides:
- remove in class Container
remove
public void remove(String name)
removeAll
public void removeAll()
- Overrides:
- removeAll in class Container
setFont
public void setFont(Font f)
- Overrides:
- setFont in class Container
setTabFont
public void setTabFont(Font font)
show
public void show(String name)
show
public void show(Component component)
All Packages Class Hierarchy This Package Previous Next Index