Skip navigation links

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

E13403-10


oracle.javatools.columnlayout
Class LayoutRow

java.lang.Object
  extended by oracle.javatools.columnlayout.LayoutRow

All Implemented Interfaces:
LayoutComponent

public class LayoutRow
extends java.lang.Object
implements LayoutComponent

A LayoutRow is a list of LayoutComponents. Each row in a LayoutPanel is a LayoutRow.


Constructor Summary
LayoutRow()
           

 

Method Summary
 void add(LayoutComponent lc)
          Add a LayoutComponent to the row.
 void addToPanel(java.awt.Container container, int baseRow, int baseColumn, boolean[] rowConstraints, boolean[] columnConstraints, int rowSpan)
          Allow each LayoutComponent to add itself to the UI container with appropriate constraints.
 void areColumnsResizable(boolean[] columnConstraints, int baseColumn)
          Allow each LayoutComponent to set the column constraints.
 void areRowsResizable(boolean[] rowConstraints, int baseRow, int rowSpan)
          Allow each LayoutComponent to set the row constraints.
 int getColumnCount()
          Returns the sum of the added LayoutComponents column counts.
 int getRowCount()
          Returns the maximum row count of the added LayoutComponents.

 

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

 

Constructor Detail

LayoutRow

public LayoutRow()

Method Detail

addToPanel

public void addToPanel(java.awt.Container container,
                       int baseRow,
                       int baseColumn,
                       boolean[] rowConstraints,
                       boolean[] columnConstraints,
                       int rowSpan)
Allow each LayoutComponent to add itself to the UI container with appropriate constraints. The row span may be larger than the number of rows, but the individual LayoutComponents must deal with that difference.
Specified by:
addToPanel in interface LayoutComponent
Parameters:
container - the container to add to
baseRow - components must be added relative to this
baseColumn - components must be added relative to this
rowConstraints - whether each row is resizable or not, these are for the whole container
columnConstraints - same as rowConstraints but for columns
rowSpan - the number of rows which the LayoutComponent occupies this will be at least equal to the LayoutComponent's row count

areRowsResizable

public void areRowsResizable(boolean[] rowConstraints,
                             int baseRow,
                             int rowSpan)
Allow each LayoutComponent to set the row constraints. The row span may be larger than the number of rows, but the individual LayoutComponents must deal with that difference.
Specified by:
areRowsResizable in interface LayoutComponent
Parameters:
rowConstraints - the out parameter
baseRow - the position to start from in the rowConstraints
rowSpan - the length of the rowConstraints which can be changed

areColumnsResizable

public void areColumnsResizable(boolean[] columnConstraints,
                                int baseColumn)
Allow each LayoutComponent to set the column constraints.
Specified by:
areColumnsResizable in interface LayoutComponent

getRowCount

public int getRowCount()
Returns the maximum row count of the added LayoutComponents.
Specified by:
getRowCount in interface LayoutComponent

getColumnCount

public int getColumnCount()
Returns the sum of the added LayoutComponents column counts.
Specified by:
getColumnCount in interface LayoutComponent

add

public void add(LayoutComponent lc)
Add a LayoutComponent to the row. Recalculating all the row and column counts. After the LayoutComponent had been added it must not change size.
Parameters:
lc - the layout component to add, must not be null

Skip navigation links

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

E13403-10


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