Interface LayoutManager
All Packages Class Hierarchy This Package Previous Next Index
Interface LayoutManager
public interface netscape.application.LayoutManager
{
/* Methods
*/
public abstract void addSubview(View);
public abstract void layoutView(View, int, int);
public abstract void removeSubview(View);
}
Interface for objects interested in acting as a LayoutManager, an object
which determines the size and position of a View's subviews. Views
automatically call their LayoutManager's layoutView() method from
their didSizeBy() method (in response to a resize), so that the
LayoutManager can adjust the View's subviews' sizes and positions. Views
also call their LayoutManager's addSubview() and
removeSubview() methods as they gain and lose subviews. In
response, a LayoutManager can immediately relayout the View's subviews, or
do nothing until all modifications have been made to the View. In this
case, layoutView() must be called explicitly once the modifications
have been completed.
- See Also:
- setLayoutManager
Methods
addSubview
public abstract void addSubview(View aView)
- Notifies the LayoutManager that aView has been added to the
View hierarchy.
removeSubview
public abstract void removeSubview(View aView)
- Notifies the LayoutManager that aView has been removed from the
View hierarchy.
layoutView
public abstract void layoutView(View aView,
int deltaWidth,
int deltaHeight)
- Requests that the LayoutManager position aView's subviews.
A View calls layoutView() from its didSizeBy() method.
deltaWidth and deltaHeight represent the delta between
aView's old size and its current size.
- See Also:
- didSizeBy
All Packages Class Hierarchy This Package Previous Next Index