Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.jdevimpl.audit.swing
Class CommandButtonLayout

java.lang.Object
  extended by oracle.jdevimpl.audit.swing.CommandButtonLayout

All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2

public class CommandButtonLayout
extends java.lang.Object
implements java.awt.LayoutManager2

A layout manager which which lays out a horizontal command button panel.


Field Summary
protected  float alignmentX
           
protected  float alignmentY
           
static float BOTTOM
           
static float CENTER
           
static float FILL
           
protected  int gap
           
static float LEFT
           
protected static java.awt.Dimension MAXIMUM_SIZE
           
static float RIGHT
           
static float TOP
           

 

Constructor Summary
CommandButtonLayout()
          Creates a command button layout with right/top alignment and a gap of 5.
CommandButtonLayout(float alignmentX)
          Creates a command button layout with top alignment and a gap of 5.
CommandButtonLayout(float alignmentX, float alignmentY, int gap)
          Create a command button layout.
CommandButtonLayout(float alignmentX, int gap)
          Create a command button layout with top alignment.

 

Method Summary
 void addLayoutComponent(java.awt.Component component, java.lang.Object constraints)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component component)
           
 float getAlignmentX()
          Gets the x alignment for this layout manager.
 float getAlignmentY()
          Gets the y alignment for this layout manager.
 int getGap()
          Gets the gap for this layout manager.
 float getLayoutAlignmentX(java.awt.Container target)
           
 float getLayoutAlignmentY(java.awt.Container target)
           
 void invalidateLayout(java.awt.Container target)
           
 void layoutContainer(java.awt.Container container)
           
 java.awt.Dimension maximumLayoutSize(java.awt.Container container)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container container)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container container)
           
 void removeLayoutComponent(java.awt.Component component)
           
 void setAlignmentX(float newValue)
          Sets the x alignment for this layout manager.
 void setAlignmentY(float newValue)
          Sets the y alignment for this layout manager.
 void setGap(int newValue)
          Sets the gap for this layout manager.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

TOP

public static final float TOP
See Also:
Constant Field Values

LEFT

public static final float LEFT
See Also:
Constant Field Values

CENTER

public static final float CENTER
See Also:
Constant Field Values

BOTTOM

public static final float BOTTOM
See Also:
Constant Field Values

RIGHT

public static final float RIGHT
See Also:
Constant Field Values

FILL

public static final float FILL
See Also:
Constant Field Values

alignmentX

protected float alignmentX

alignmentY

protected float alignmentY

gap

protected int gap

MAXIMUM_SIZE

protected static final java.awt.Dimension MAXIMUM_SIZE

Constructor Detail

CommandButtonLayout

public CommandButtonLayout()
Creates a command button layout with right/top alignment and a gap of 5.

CommandButtonLayout

public CommandButtonLayout(float alignmentX)
Creates a command button layout with top alignment and a gap of 5.

CommandButtonLayout

public CommandButtonLayout(float alignmentX,
                           int gap)
Create a command button layout with top alignment.

CommandButtonLayout

public CommandButtonLayout(float alignmentX,
                           float alignmentY,
                           int gap)
Create a command button layout.

Method Detail

setAlignmentX

public void setAlignmentX(float newValue)
Sets the x alignment for this layout manager.

getAlignmentX

public float getAlignmentX()
Gets the x alignment for this layout manager.

setAlignmentY

public void setAlignmentY(float newValue)
Sets the y alignment for this layout manager.

getAlignmentY

public float getAlignmentY()
Gets the y alignment for this layout manager.

setGap

public void setGap(int newValue)
Sets the gap for this layout manager.

getGap

public int getGap()
Gets the gap for this layout manager.

addLayoutComponent

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

addLayoutComponent

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

layoutContainer

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

invalidateLayout

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

removeLayoutComponent

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

maximumLayoutSize

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

minimumLayoutSize

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

preferredLayoutSize

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

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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