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
-
HORIZONTAL
-
-
VERTICAL
-
-
FramePaneGadget()
- FramePaneGadget
-
FramePaneGadget(int)
- FramePaneGadget
-
add(Gadget, int)
- Adds the specified gadget to this frame pane container.
-
childrenCanOverlap()
- returns true if children can overlap each other.
-
doLayout()
- Lays out this container by resizing its child to its preferred size.
-
getGadgetIndex(Gadget)
- gets the index of the gadget
-
getMinimumSize()
- gets the minimum dimensions
-
getOrientation()
- Gets the orientation of the button.
-
getPreferredSize()
- gets the preferred dimensions
-
mouseClicked(MouseEvent)
- mouseClicked
-
mouseDragged(MouseEvent)
- mouseDragged
-
mouseEntered(MouseEvent)
- mouseEntered - empty mehtod
-
mouseExited(MouseEvent)
-
mouseExited
-
mouseMoved(MouseEvent)
- mouseMoved
-
mousePressed(MouseEvent)
- mousePressed
-
mouseReleased(MouseEvent)
- mouseReleased
-
remove(Gadget, int)
- removes a gadget
-
setOrientation(int)
- Sets the button with the specified orientation
HORIZONTAL
public static final int HORIZONTAL
VERTICAL
public static final int VERTICAL
FramePaneGadget
public FramePaneGadget()
- FramePaneGadget
FramePaneGadget
public FramePaneGadget(int orientation)
- FramePaneGadget
- Parameters:
- orientation - Frame orientation, either vertical or horizontal
childrenCanOverlap
public boolean childrenCanOverlap()
- returns true if children can overlap each other.
- Returns:
- false
- Overrides:
- childrenCanOverlap in class ContainerGadget
getOrientation
public final int getOrientation()
- Gets the orientation of the button.
- Returns:
- orientation
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)
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
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
getGadgetIndex
public int getGadgetIndex(Gadget gadget)
- gets the index of the gadget
- Parameters:
- gadget - - TBD
- Returns:
- int
- Overrides:
- getGadgetIndex in class ContainerGadget
getMinimumSize
public Dimension getMinimumSize()
- gets the minimum dimensions
- Returns:
- Dimension
- Overrides:
- getMinimumSize in class ContainerGadget
getPreferredSize
public Dimension getPreferredSize()
- gets the preferred dimensions
- Returns:
- Dimension
- Overrides:
- getPreferredSize in class ContainerGadget
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
mouseDragged
public void mouseDragged(MouseEvent e)
- mouseDragged
- Parameters:
- e - the firing MouseEvent
mouseMoved
public void mouseMoved(MouseEvent e)
- mouseMoved
- Parameters:
- e - the firing MouseEvent
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked
- Parameters:
- e - the firing MouseEvent
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed
- Parameters:
- e - the firing MouseEvent
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased
- Parameters:
- e - the firing MouseEvent
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered - empty mehtod
- Parameters:
- e - the firing MouseEvent
mouseExited
public void mouseExited(MouseEvent e)
- mouseExited
- Parameters:
- e - the firing MouseEvent
All Packages Class Hierarchy This Package Previous Next Index