All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.FramePaneGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.FramePaneGadget

public class FramePaneGadget
extends PanelGadget
implements MouseListener, MouseMotionListener
FramePaneGadget


Variable Index

 o HORIZONTAL
 o VERTICAL

Constructor Index

 o FramePaneGadget()
FramePaneGadget
 o FramePaneGadget(int)
FramePaneGadget

Method Index

 o add(Gadget, int)
Adds the specified gadget to this frame pane container.
 o childrenCanOverlap()
returns true if children can overlap each other.
 o doLayout()
Lays out this container by resizing its child to its preferred size.
 o getGadgetIndex(Gadget)
gets the index of the gadget
 o getMinimumSize()
gets the minimum dimensions
 o getOrientation()
Gets the orientation of the button.
 o getPreferredSize()
gets the preferred dimensions
 o mouseClicked(MouseEvent)
mouseClicked
 o mouseDragged(MouseEvent)
mouseDragged
 o mouseEntered(MouseEvent)
mouseEntered - empty mehtod
 o mouseExited(MouseEvent)
mouseExited
 o mouseMoved(MouseEvent)
mouseMoved
 o mousePressed(MouseEvent)
mousePressed
 o mouseReleased(MouseEvent)
mouseReleased
 o remove(Gadget, int)
removes a gadget
 o setOrientation(int)
Sets the button with the specified orientation

Variables

 o HORIZONTAL
 public static final int HORIZONTAL
 o VERTICAL
 public static final int VERTICAL

Constructors

 o FramePaneGadget
 public FramePaneGadget()
FramePaneGadget

 o FramePaneGadget
 public FramePaneGadget(int orientation)
FramePaneGadget

Parameters:
orientation - Frame orientation, either vertical or horizontal

Methods

 o childrenCanOverlap
 public boolean childrenCanOverlap()
returns true if children can overlap each other.

Returns:
false
Overrides:
childrenCanOverlap in class ContainerGadget
 o getOrientation
 public final int getOrientation()
Gets the orientation of the button.

Returns:
orientation
 o setOrientation
 public void setOrientation(int orientation)
Sets the button with the specified orientation

Parameters:
orientation - - the orientation to set the button with either VERTICAL (1) or HORIZONTAL (0)
 o add
 public Gadget add(Gadget gadget,
                   int pos)
Adds the specified gadget to this frame pane container. If the frame pane has an existing child gadget, that gadget is removed and the new one is added. Overrides: add in class Container

Parameters:
gadget - - the gadget to be added
pos - - position of child gadget (must be <= 0)
Returns:
Gadget
Overrides:
add in class ContainerGadget
 o remove
 protected void remove(Gadget gadget,
                       int i)
removes a gadget

Parameters:
gadget - Gadget to be removed
i - index of Gadget to be removed
Overrides:
remove in class ContainerGadget
 o getGadgetIndex
 public int getGadgetIndex(Gadget gadget)
gets the index of the gadget

Parameters:
gadget - - TBD
Returns:
int
Overrides:
getGadgetIndex in class ContainerGadget
 o getMinimumSize
 public Dimension getMinimumSize()
gets the minimum dimensions

Returns:
Dimension
Overrides:
getMinimumSize in class ContainerGadget
 o getPreferredSize
 public Dimension getPreferredSize()
gets the preferred dimensions

Returns:
Dimension
Overrides:
getPreferredSize in class ContainerGadget
 o doLayout
 public void doLayout()
Lays out this container by resizing its child to its preferred size. If the new preferred size of the child causes the current scroll position to be invalid, the scroll position is set to the closest valid position. Overrides: doLayout in class Container

Overrides:
doLayout in class ContainerGadget
See Also:
validate
 o mouseDragged
 public void mouseDragged(MouseEvent e)
mouseDragged

Parameters:
e - the firing MouseEvent
 o mouseMoved
 public void mouseMoved(MouseEvent e)
mouseMoved

Parameters:
e - the firing MouseEvent
 o mouseClicked
 public void mouseClicked(MouseEvent e)
mouseClicked

Parameters:
e - the firing MouseEvent
 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed

Parameters:
e - the firing MouseEvent
 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased

Parameters:
e - the firing MouseEvent
 o mouseEntered
 public void mouseEntered(MouseEvent e)
mouseEntered - empty mehtod

Parameters:
e - the firing MouseEvent
 o mouseExited
 public void mouseExited(MouseEvent e)
mouseExited

Parameters:
e - the firing MouseEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index