javax.rad.genui.layout
Class UIGridLayout

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UILayout<IGridLayout,IGridLayout.IGridConstraints>
          extended by javax.rad.genui.layout.UIGridLayout
All Implemented Interfaces:
ILayout<IGridLayout.IGridConstraints>, IResource, IGridLayout

public class UIGridLayout
extends UILayout<IGridLayout,IGridLayout.IGridConstraints>
implements IGridLayout

Platform and technology independent grid oriented layout. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.rad.ui.layout.IGridLayout
IGridLayout.IGridConstraints
 
Field Summary
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Constructor Summary
  UIGridLayout()
          Creates a new instance of UIGridLayout.
protected UIGridLayout(IGridLayout pLayout)
          Creates a new instance of UIGridLayout with the given layout.
  UIGridLayout(int pColumns, int pRows)
          Creates a new instance of UIGridLayout.
 
Method Summary
 int getColumns()
          Returns the number of columns.
 IGridLayout.IGridConstraints getConstraints(int columns, int rows)
          Creates a constraint with the specified number of rows and columns.
 IGridLayout.IGridConstraints getConstraints(int pColumns, int pRows, int pWidth, int pHeight)
          Creates a constraint with the specified number of rows and columns with the determined dimensions.
 IGridLayout.IGridConstraints getConstraints(int pColumns, int pRows, int pWidth, int pHeight, IInsets pInsets)
          Creates a constraint with the specified number of rows and columns with the determined dimensions and insets.
 int getRows()
          Returns the number of rows.
 void setColumns(int pColumns)
          Sets the column count.
 void setRows(int pRows)
          Sets the row count.
 
Methods inherited from class javax.rad.genui.UILayout
getConstraints, getHorizontalGap, getMargins, getVerticalGap, setConstraints, setHorizontalGap, setMargins, setMargins, setVerticalGap
 
Methods inherited from class javax.rad.genui.UIResource
equals, eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getResource, getUIResource, hashCode, hasResourceHandler, putObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.ILayout
getConstraints, getHorizontalGap, getMargins, getVerticalGap, setConstraints, setHorizontalGap, setMargins, setVerticalGap
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

UIGridLayout

protected UIGridLayout(IGridLayout pLayout)
Creates a new instance of UIGridLayout with the given layout.

Parameters:
pLayout - the layout
See Also:
IGridLayout

UIGridLayout

public UIGridLayout()
Creates a new instance of UIGridLayout.

See Also:
IGridLayout

UIGridLayout

public UIGridLayout(int pColumns,
                    int pRows)
Creates a new instance of UIGridLayout.

Parameters:
pColumns - the number of columns
pRows - the number of rows
See Also:
IGridLayout
Method Detail

setColumns

public void setColumns(int pColumns)
Sets the column count.

Specified by:
setColumns in interface IGridLayout
Parameters:
pColumns - the column count.

getColumns

public int getColumns()
Returns the number of columns.

Specified by:
getColumns in interface IGridLayout
Returns:
the number of columns.

setRows

public void setRows(int pRows)
Sets the row count.

Specified by:
setRows in interface IGridLayout
Parameters:
pRows - the row count.

getRows

public int getRows()
Returns the number of rows.

Specified by:
getRows in interface IGridLayout
Returns:
the number of rows.

getConstraints

public IGridLayout.IGridConstraints getConstraints(int columns,
                                                   int rows)
Creates a constraint with the specified number of rows and columns.

Specified by:
getConstraints in interface IGridLayout
Parameters:
columns - the number of columns
rows - the number of rows
Returns:
the constraint.

getConstraints

public IGridLayout.IGridConstraints getConstraints(int pColumns,
                                                   int pRows,
                                                   int pWidth,
                                                   int pHeight)
Creates a constraint with the specified number of rows and columns with the determined dimensions.

Specified by:
getConstraints in interface IGridLayout
Parameters:
pColumns - the number of columns
pRows - the number of rows
pWidth - width of the content
pHeight - height of the content
Returns:
the constraint.

getConstraints

public IGridLayout.IGridConstraints getConstraints(int pColumns,
                                                   int pRows,
                                                   int pWidth,
                                                   int pHeight,
                                                   IInsets pInsets)
Creates a constraint with the specified number of rows and columns with the determined dimensions and insets.

Specified by:
getConstraints in interface IGridLayout
Parameters:
pColumns - the number of columns
pRows - the number of rows
pWidth - width of the content
pHeight - height of the content
pInsets - the determined insets
Returns:
the constraint.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.