All Packages Class Hierarchy This Package Previous Next Index
public class netscape.application.PackLayout extends java.lang.Object implements netscape.application.LayoutManager, netscape.util.Codable { /* Constructors */ public PackLayout(); /* Methods */ public void addSubview(View); public PackConstraints constraintsFor(View); public void decode(Decoder); public void describeClassInfo(ClassInfo); public void encode(Encoder); public void finishDecoding(); public void layoutView(View, int, int); public void removeSubview(View); public void setConstraints(View, PackConstraints); }Object subclass implementing a LayoutManager similar to the TK Packer. See the PackConstraints class for more information about the available settings can be used.
Note: Because Views do not call layoutView() whenever subviews are added or removed, an application using a PackLayout must explicitly call the PackLayout View's layoutView() with a zero delta width and delta height. Calling layoutView() in this manner will cause the LayoutManager to properly position and size the View's subviews.
public PackLayout()
public PackConstraints constraintsFor(View aView)
public void addSubview(View aView)
public void setConstraints(View aView, PackConstraints constraints)
Note: This method adds a clone of constraints to its internal constraint container. You can therefore reconfigure and pass in the PackConstraints same instance on each call without no side effects.
public void removeSubview(View aView)
public void layoutView(View aView, int deltaWidth, int deltaHeight)
public void describeClassInfo(ClassInfo info)
public void decode(Decoder decoder) throws CodingException
public void encode(Encoder encoder) throws CodingException
public void finishDecoding() throws CodingException
All Packages Class Hierarchy This Package Previous Next Index