All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface dtai.gwt.GadgetManager

public interface GadgetManager

Method Index

 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, Gadget)
Adds the specified gadget to this container.
 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.

Methods

 o getOverlayPanel
 public abstract OverlayPanelGadget getOverlayPanel()
Returns the panel in which overlays (menus, tips) are to be drawn.

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

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

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

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

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

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

Parameters:
gadget - 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 abstract 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 abstract void remove(Gadget gadget)
Removes the specified gadget from this container.

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

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

Parameters:
gadgetHelp - new GadgetHelp for this container
 o getGadgetAt
 public abstract 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.
See Also:
contains
 o getGadgetAt
 public abstract Gadget getGadgetAt(Point p)
Locates the gadget that contains the specified point.

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