All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface dtai.gwt.GadgetLayoutManager

public interface GadgetLayoutManager
Defines the interface for classes that know how to layout GadgetContainers.

See Also:
ContainerGadget

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 layoutContainerGadget(ContainerGadget)
Lays out the container in the specified panel.
 o minimumLayoutSize(ContainerGadget)
Calculates the minimum size dimensions for the specified panel given the gadgets in the specified parent container.
 o preferredLayoutSize(ContainerGadget)
Calculates the preferred size dimensions for the specified panel given the gadgets in the specified parent container.
 o removeLayoutGadget(Gadget)
Removes the specified gadget from the layout.

Methods

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

Returns:
false
 o addLayoutGadget
 public abstract void addLayoutGadget(String name,
                                      Gadget gadget)
Adds the specified gadget with the specified name to the layout.

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

Parameters:
gadget - the gadget ot be removed
 o preferredLayoutSize
 public abstract Dimension preferredLayoutSize(ContainerGadget parent)
Calculates the preferred size dimensions for the specified panel given the gadgets in the specified parent container.

Parameters:
parent - the gadget to be laid out
See Also:
minimumLayoutSize
 o minimumLayoutSize
 public abstract Dimension minimumLayoutSize(ContainerGadget parent)
Calculates the minimum size dimensions for the specified panel given the gadgets in the specified parent container.

Parameters:
parent - the gadget to be laid out
See Also:
preferredLayoutSize
 o layoutContainerGadget
 public abstract void layoutContainerGadget(ContainerGadget parent)
Lays out the container in the specified panel.

Parameters:
parent - the gadget which needs to be laid out

All Packages  Class Hierarchy  This Package  Previous  Next  Index