Class TabApp
Class TabApp
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----TabApp
- public class TabApp
- extends Applet
- implements TabApplet
-
TabApp()
- Constructs a new TabApp
-
doLayout(Graphics)
- Lays out the tab children according to my orientation.
-
handleEvent(Event)
- Handles events for the applet.
-
init()
- Performs initialization for this applet, including reading the parameters
from the HTML.
-
paint(Graphics)
- Paints the applet by laying out and painting all the tab children.
-
paintLines(Graphics)
- Paints lines either across the bottom (if orientation is horizontal)
or the left hand side (if orientation is vertical).
-
selectChild(Tab)
- Selects (arms) a particular tab.
-
unselectChild(Tab)
- Unselects (disarms) a particular tab.
TabApp
public TabApp()
- Constructs a new TabApp
init
public void init()
- Performs initialization for this applet, including reading the parameters
from the HTML.
- Overrides:
- init in class Applet
paintLines
public void paintLines(Graphics g)
- Paints lines either across the bottom (if orientation is horizontal)
or the left hand side (if orientation is vertical).
- Parameters:
- g - the graphics object used to paint the lines.
paint
public void paint(Graphics g)
- Paints the applet by laying out and painting all the tab children.
- Parameters:
- g - the graphics object used to paint the applet
- Overrides:
- paint in class Component
doLayout
public void doLayout(Graphics g)
- Lays out the tab children according to my orientation.
- Parameters:
- g - the graphics object used to erase and repaint the children when I move them around.
selectChild
public void selectChild(Tab child)
- Selects (arms) a particular tab.
- Parameters:
- child - the newly armed tab
unselectChild
public void unselectChild(Tab child)
- Unselects (disarms) a particular tab.
- Parameters:
- child - the (until recently) selected tab.
handleEvent
public boolean handleEvent(Event e)
- Handles events for the applet.
- Parameters:
- e - the event.
- Overrides:
- handleEvent in class Component