All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.GadgetApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----dtai.gwt.GadgetApplet

public class GadgetApplet
extends Applet
implements GadgetManager
GadgetApplet


Constructor Index

 o GadgetApplet()
GadgetApplet

Method Index

 o add(Component)
Overridden to make it an error to add components to it.
 o add(Component, int)
Overridden to make it an error to add components to it.
 o add(Gadget)
Adds the specified gadget to this container.
 o add(Gadget, int)
Adds the specified gadget to this container at the given position.
 o add(String, Component)
Overridden to make it an error to add components to it.
 o add(String, Gadget)
Adds the specified gadget to this container.
 o addNotify()
notified of applet creation
 o destroy()
The Applet destroy method.
 o getDefaultApplet()
 o getFrame()
 o getGadget(int)
Gets the nth gadget in this container.
 o getGadgetAt(int, int)
Locates the gadget that contains the x,y position.
 o getGadgetAt(Point)
Locates the gadget that contains the specified point.
 o getGadgetCount()
Returns the number of gadgets in this panel.
 o getGadgets()
Gets all the gadgets in this container.
 o getMainPanel()
Returns the panel in which all other gadgets (non-overlays) are to be drawn.
 o getOverlayPanel()
Returns the panel in which overlays (menus, tips) are to be drawn.
 o remove(Gadget)
Removes the specified gadget from this container.
 o setGadgetHelp(GadgetHelp)
Sets the gadget help for this container.
 o setLayout(GadgetLayoutManager)
Sets the layout manager for this container.
 o setLayout(LayoutManager)
Overridden to make it an error to add a Component layout manager to it.

Constructors

 o GadgetApplet
 public GadgetApplet()
GadgetApplet

Methods

 o addNotify
 public void addNotify()
notified of applet creation

Overrides:
addNotify in class Panel
 o destroy
 public void destroy()
The Applet destroy method. Please try to remember to call super.destroy() if you override this method.

Overrides:
destroy in class Applet
 o getFrame
 public Frame getFrame()
 o getDefaultApplet
 public static GadgetApplet getDefaultApplet()
 o add
 public Component add(Component comp)
Overridden to make it an error to add components to it.

Parameters:
comp - the component to be added
Returns:
Component
Overrides:
add in class Container
 o add
 public synchronized Component add(Component comp,
                                   int pos)
Overridden to make it an error to add components to it.

Parameters:
comp - the component to be added
pos - the position at which to insert the component. -1 means insert at the end.
Returns:
Component
Overrides:
add in class Container
See Also:
remove
 o add
 public synchronized Component add(String name,
                                   Component comp)
Overridden to make it an error to add components to it.

Parameters:
name - the component name
comp - the component to be added
Returns:
Component
Overrides:
add in class Container
See Also:
remove, LayoutManager
 o setLayout
 public void setLayout(LayoutManager mgr)
Overridden to make it an error to add a Component layout manager to it.

Parameters:
mgr - the specified layout manager
Overrides:
setLayout in class Container
See Also:
getLayout
 o getOverlayPanel
 public OverlayPanelGadget getOverlayPanel()
Returns the panel in which overlays (menus, tips) are to be drawn.

Returns:
OverlayPanelGadget
See Also:
getGadget
 o getMainPanel
 public PanelGadget getMainPanel()
Returns the panel in which all other gadgets (non-overlays) are to be drawn.

Returns:
PanelGadget
See Also:
getGadget
 o getGadgetCount
 public int getGadgetCount()
Returns the number of gadgets in this panel.

Returns:
int
See Also:
getGadget
 o getGadget
 public synchronized Gadget getGadget(int n)
Gets the nth gadget in this container.

Parameters:
n - the number of the gadget to get
Returns:
Gadget exist.
Throws: ArrayIndexOutOfBoundsException
If the nth value does not
 o getGadgets
 public synchronized Gadget[] getGadgets()
Gets all the gadgets in this container.

Returns:
Gadget[]
 o add
 public Gadget add(Gadget gadget)
Adds the specified gadget to this container.

Parameters:
comp - the gadget to be added
Returns:
Gadget
 o add
 public synchronized Gadget add(Gadget gadget,
                                int pos)
Adds the specified gadget to this container at the given position.

Parameters:
comp - the gadget to be added
pos - the position at which to insert the gadget. -1 means insert at the end.
Returns:
Gadget
See Also:
remove
 o add
 public synchronized Gadget add(String name,
                                Gadget gadget)
Adds the specified gadget to this container. The gadget is also added to the layout manager of this container using the name specified

Parameters:
name - the gadget name
gadget - the gadget to be added
Returns:
Gadget
See Also:
remove, GadgetLayoutManager
 o remove
 public synchronized void remove(Gadget gadget)
Removes the specified gadget from this container.

Parameters:
gadget - the gadget to be removed
See Also:
add
 o setLayout
 public void setLayout(GadgetLayoutManager mgr)
Sets the layout manager for this container.

Parameters:
mgr - the specified layout manager
See Also:
getLayout
 o setGadgetHelp
 public void setGadgetHelp(GadgetHelp gadgetHelp)
Sets the gadget help for this container.

 o getGadgetAt
 public synchronized Gadget getGadgetAt(int x,
                                        int y)
Locates the gadget that contains the x,y position.

Parameters:
x - the x coordinate
y - the y coordinate
Returns:
null if the gadget is not within the x and y coordinates; returns the gadget otherwise.
 o getGadgetAt
 public Gadget getGadgetAt(Point p)
Locates the gadget that contains the specified point. Overrides: getGadgetAt in class Gadget

Parameters:
p - - the point
Returns:
null if the gadget does not contain the point; returns the gadget otherwise.
See Also:
contains

All Packages  Class Hierarchy  This Package  Previous  Next  Index