Class hungry.tabs.Tab
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hungry.tabs.Tab

java.lang.Object
   |
   +----hungry.tabs.Tab

public class Tab
extends Object

Constructor Index

 o Tab(String, String, String, Color, Color, Color, Font, int, TabApplet)
Creates a new Tab.
 o Tab(String, String, String, TabApplet)
Creates a new Tab

Method Index

 o activate()
Activates the tab, by opening the URL into the frame specified when the tab was created.
 o erase(Graphics)
Erases the tab.
 o getBounds()
Returns the bounding box for this tab.
 o getURL()
Returns the URL associated with this tab.
 o move(int, int)
Moves the tab to a new position within the applet.
 o paint(Graphics)
Paints the tab.
 o resize(int, int)
Resizes the tab to a new width and height.
 o setSelected(boolean)
Sets whether or not this tab is selected

Constructors

 o Tab
  public Tab(String name,
             String url,
             String frame,
             Color background,
             Color text,
             Color select,
             Font font,
             int orientation,
             TabApplet applet)
Creates a new Tab.
Parameters:
name - the name to use for this tab.
url - the url to associate with this tab.
frame - the frame in which to open the url.
background - the color of the tab.
text - the normal text color.
select - the selected (armed) text color.
font - the font used to draw the text.
orientation - the orientation of this tab.
applet - the applet containing this tab.
 o Tab
  public Tab(String name,
             String url,
             String frame,
             TabApplet applet)
Creates a new Tab
Parameters:
name - the text displayed in this tab
url - the url to open when we're activated
frame - the frame in which we open the url
applet - the applet containing this tab

Methods

 o erase
  public void erase(Graphics g)
Erases the tab.
Parameters:
g - the graphics object used to erase the tab
 o paint
  public void paint(Graphics g)
Paints the tab.
Parameters:
g - the graphics object used to paint the tab.
 o move
  public void move(int x,
                   int y)
Moves the tab to a new position within the applet.
Parameters:
x - the new x position.
y - the new y position.
 o resize
  public void resize(int width,
                     int height)
Resizes the tab to a new width and height.
Parameters:
width - the new width.
height - the new height.
 o getBounds
  public Rectangle getBounds()
Returns the bounding box for this tab.
 o setSelected
  public void setSelected(boolean flag)
Sets whether or not this tab is selected
Parameters:
flag - whether or not this tab is selected.
 o activate
  public void activate()
Activates the tab, by opening the URL into the frame specified when the tab was created.
 o getURL
  public String getURL()
Returns the URL associated with this tab.

All Packages  Class Hierarchy  This Package  Previous  Next  Index