borland Packages Class Hierarchy dbswing Package
java.lang.Object +----java.awt.FlowLayout +----com.borland.dbswing.ToolBarLayout
Variables Constructors Properties Methods
Implements LayoutManager, Serializable
ToolBarLayout
is a hybrid layout manager that combines the behaviors of the AWT FlowLayout
and GridLayout
layout managers. When the managed container is made smaller (either vertically or horizontally) than the total preferred size of all its subcomponents, the manager switches from FlowLayout
to GridLayout
behavior, reducing the size of each subcomponent proportionally.
Unlike GridLayout
, ToolBarLayout
takes into account the visibility state of each component, removing non-visible components from the layout.
ToolBarLayout
is used by JdbNavToolBar
as its default layout manager.
public ToolBarLayout()Creates a
ToolBarLayout
with horizontal orientation.
public ToolBarLayout(int orientation)Constructs a
ToolBarLayout
component with the specified orientation.
orientation
public void setOrientation(int orientation)Sets the orientation. Possible values are HORIZONTAL and VERTICAL.