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.
-
GadgetCardLayout()
- Creates a new opaque card layout.
-
GadgetCardLayout(int, int)
- Creates a card layout with the specified gaps.
-
addLayoutGadget(String, Gadget)
- Adds the specified gadget with the specified name to the layout.
-
childrenCanOverlap()
- returns true if children can overlap each other.
-
first()
- Flip to the first card.
-
first(ContainerGadget)
- Flip to the first card.
-
last()
- Flips to the last card of the specified container.
-
last(ContainerGadget)
- Flips to the last card of the specified container.
-
layoutContainerGadget(ContainerGadget)
- Performs a layout in the specified panel.
-
minimumLayoutSize(ContainerGadget)
- Calculates the minimum size for the specified panel.
-
next()
- Flips to the next card of the specified container.
-
next(ContainerGadget)
- Flips to the next card of the specified container.
-
preferredLayoutSize(ContainerGadget)
- Calculates the preferred size for the specified panel.
-
previous()
- Flips to the previous card of the specified container.
-
previous(ContainerGadget)
- Flips to the previous card of the specified container.
-
removeLayoutGadget(Gadget)
- Removes the specified gadget from the layout.
-
setTransparent(boolean)
- By default, a GadgetCardLayout allows multiple transparent cards to show
through each other.
-
show(ContainerGadget, String)
- shows the specified gadget name in the specified container.
-
show(String)
- shows the specified gadget name in the specified container.
-
toString()
- Returns the String representation of this GadgetCardLayout's values.
GadgetCardLayout
public GadgetCardLayout()
- Creates a new opaque card layout.
GadgetCardLayout
public GadgetCardLayout(int hgap,
int vgap)
- Creates a card layout with the specified gaps.
- Parameters:
- hgap - the horizontal gap
- vgap - the vertical gap
childrenCanOverlap
public boolean childrenCanOverlap()
- returns true if children can overlap each other.
- Returns:
- true
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
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
removeLayoutGadget
public void removeLayoutGadget(Gadget gadget)
- Removes the specified gadget from the layout.
- Parameters:
- gadget - the gadget to be removed
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
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
layoutContainerGadget
public void layoutContainerGadget(ContainerGadget parent)
- Performs a layout in the specified panel.
- Parameters:
- parent - the name of the parent container
first
public void first(ContainerGadget parent)
- Flip to the first card.
- Parameters:
- parent - the name of the parent container
first
public void first()
- Flip to the first card.
next
public void next(ContainerGadget parent)
- Flips to the next card of the specified container.
- Parameters:
- parent - the name of the container
next
public void next()
- Flips to the next card of the specified container.
previous
public void previous(ContainerGadget parent)
- Flips to the previous card of the specified container.
- Parameters:
- parent - the name of the parent container
previous
public void previous()
- Flips to the previous card of the specified container.
last
public void last(ContainerGadget parent)
- Flips to the last card of the specified container.
- Parameters:
- parent - the name of the parent container
last
public void last()
- Flips to the last card of the specified container.
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
show
public void show(String name)
- shows the specified gadget name in the specified container.
- Parameters:
- name - the gadget name
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