All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.GadgetCardLayout

java.lang.Object
   |
   +----dtai.gwt.GadgetCardLayout

public class GadgetCardLayout
extends Object
implements GadgetLayoutManager
A layout manager for a container that contains several 'cards'. Only one card is visible at a time, allowing you to flip through the cards.


Constructor Index

 o GadgetCardLayout()
Creates a new opaque card layout.
 o GadgetCardLayout(int, int)
Creates a card layout with the specified gaps.

Method Index

 o addLayoutGadget(String, Gadget)
Adds the specified gadget with the specified name to the layout.
 o childrenCanOverlap()
returns true if children can overlap each other.
 o first()
Flip to the first card.
 o first(ContainerGadget)
Flip to the first card.
 o last()
Flips to the last card of the specified container.
 o last(ContainerGadget)
Flips to the last card of the specified container.
 o layoutContainerGadget(ContainerGadget)
Performs a layout in the specified panel.
 o minimumLayoutSize(ContainerGadget)
Calculates the minimum size for the specified panel.
 o next()
Flips to the next card of the specified container.
 o next(ContainerGadget)
Flips to the next card of the specified container.
 o preferredLayoutSize(ContainerGadget)
Calculates the preferred size for the specified panel.
 o previous()
Flips to the previous card of the specified container.
 o previous(ContainerGadget)
Flips to the previous card of the specified container.
 o removeLayoutGadget(Gadget)
Removes the specified gadget from the layout.
 o setTransparent(boolean)
By default, a GadgetCardLayout allows multiple transparent cards to show through each other.
 o show(ContainerGadget, String)
shows the specified gadget name in the specified container.
 o show(String)
shows the specified gadget name in the specified container.
 o toString()
Returns the String representation of this GadgetCardLayout's values.

Constructors

 o GadgetCardLayout
 public GadgetCardLayout()
Creates a new opaque card layout.

 o GadgetCardLayout
 public GadgetCardLayout(int hgap,
                         int vgap)
Creates a card layout with the specified gaps.

Parameters:
hgap - the horizontal gap
vgap - the vertical gap

Methods

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

Returns:
true
 o setTransparent
 public void setTransparent(boolean transparent)
By default, a GadgetCardLayout allows multiple transparent cards to show through each other. Setting this to false will hide all but the top card, even if the top card(s) is transparent.

Parameters:
transparent - the transparency flag
 o addLayoutGadget
 public void addLayoutGadget(String name,
                             Gadget gadget)
Adds the specified gadget with the specified name to the layout.

Parameters:
name - the name of the gadget
gadget - the gadget to be added
 o removeLayoutGadget
 public void removeLayoutGadget(Gadget gadget)
Removes the specified gadget from the layout.

Parameters:
gadget - the gadget to be removed
 o preferredLayoutSize
 public Dimension preferredLayoutSize(ContainerGadget parent)
Calculates the preferred size for the specified panel.

Parameters:
parent - the name of the parent container
Returns:
the dimensions of this panel.
See Also:
minimumLayoutSize
 o minimumLayoutSize
 public Dimension minimumLayoutSize(ContainerGadget parent)
Calculates the minimum size for the specified panel.

Parameters:
parent - the name of the parent container
Returns:
the dimensions of this panel.
See Also:
preferredLayoutSize
 o layoutContainerGadget
 public void layoutContainerGadget(ContainerGadget parent)
Performs a layout in the specified panel.

Parameters:
parent - the name of the parent container
 o first
 public void first(ContainerGadget parent)
Flip to the first card.

Parameters:
parent - the name of the parent container
 o first
 public void first()
Flip to the first card.

 o next
 public void next(ContainerGadget parent)
Flips to the next card of the specified container.

Parameters:
parent - the name of the container
 o next
 public void next()
Flips to the next card of the specified container.

 o previous
 public void previous(ContainerGadget parent)
Flips to the previous card of the specified container.

Parameters:
parent - the name of the parent container
 o previous
 public void previous()
Flips to the previous card of the specified container.

 o last
 public void last(ContainerGadget parent)
Flips to the last card of the specified container.

Parameters:
parent - the name of the parent container
 o last
 public void last()
Flips to the last card of the specified container.

 o show
 public void show(ContainerGadget parent,
                  String name)
shows the specified gadget name in the specified container.

Parameters:
parent - the name of the parent container
name - the gadget name
 o show
 public void show(String name)
shows the specified gadget name in the specified container.

Parameters:
name - the gadget name
 o toString
 public String toString()
Returns the String representation of this GadgetCardLayout's values.

Returns:
String
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index