Extension SDK 10.1.2

oracle.ide.controls
Class ButtonsLayoutManager

java.lang.Object
  extended byoracle.ide.controls.ButtonsLayoutManager
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, javax.swing.SwingConstants

public class ButtonsLayoutManager
extends java.lang.Object
implements java.awt.LayoutManager2, javax.swing.SwingConstants

A Class class.


Field Summary
static boolean DIRECTION_LTR
           
static boolean DIRECTION_RTL
           
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
ButtonsLayoutManager()
          Constructor
 
Method Summary
protected  void addButton(java.awt.Component c, int nConstraint)
           
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 java.awt.Component getButton(int i)
           
 int getButtonCount()
           
 boolean getDirection()
           
 int getGap()
           
 float getLayoutAlignmentX(java.awt.Container target)
           
 float getLayoutAlignmentY(java.awt.Container target)
           
 int getOrientation()
           
 java.awt.Rectangle getSpaceLeft()
           
 void invalidateLayout(java.awt.Container target)
           
 void layoutContainer(java.awt.Container parent)
           
protected  int layoutContainer(java.awt.Container parent, java.awt.Dimension dParent)
           
 java.awt.Dimension maximumLayoutSize(java.awt.Container target)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
protected  void removeButton(int nConstraint)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 void setDirection(boolean rtl)
           
 void setGap(int nGap)
           
 void setOrientation(int nOrient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTION_RTL

public static final boolean DIRECTION_RTL
See Also:
Constant Field Values

DIRECTION_LTR

public static final boolean DIRECTION_LTR
See Also:
Constant Field Values
Constructor Detail

ButtonsLayoutManager

public ButtonsLayoutManager()
Constructor

Method Detail

setGap

public void setGap(int nGap)

getGap

public int getGap()

setDirection

public void setDirection(boolean rtl)

getDirection

public boolean getDirection()

getSpaceLeft

public java.awt.Rectangle getSpaceLeft()

setOrientation

public void setOrientation(int nOrient)

getOrientation

public int getOrientation()

getButtonCount

public final int getButtonCount()

getButton

public final java.awt.Component getButton(int i)

addButton

protected final void addButton(java.awt.Component c,
                               int nConstraint)

removeButton

protected final void removeButton(int nConstraint)

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager

layoutContainer

protected int layoutContainer(java.awt.Container parent,
                              java.awt.Dimension dParent)
Returns:
number of components that fit

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container target)
Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container target)
Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2

invalidateLayout

public void invalidateLayout(java.awt.Container target)
Specified by:
invalidateLayout in interface java.awt.LayoutManager2

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.