nl.gx.webmanager.cms.layout
Interface Grid


public interface Grid

Representation of a Grid. A page presentation consists of a table or frame based layout with page parts.


Method Summary
 GridPart[] getGridParts(int rowIndex)
          Return all the GridParts in a particular row.
 GridPart[][] getGridRows()
          Return all the GridParts in a twodimensional array that corresponds to the rows and columns.
 int getHeight()
          Return height of the Grid in pixels.
 GridPartSize[] getHeights()
          Return row heights.
 int getNrOfRows()
          Return number of rows in the Grid.
 int getWidth()
          Return width of the Grid in pixels.
 GridPartSize[] getWidths()
          Return column widths.
 boolean isFullHeight()
          Return true if the height of the Grid is 100%.
 boolean isFullWidth()
          Return true if the width of this Grid is 100%.
 

Method Detail

getGridParts

GridPart[] getGridParts(int rowIndex)
Return all the GridParts in a particular row.

Parameters:
rowIndex -
Returns:
all the GridParts in a particular row.

getGridRows

GridPart[][] getGridRows()
Return all the GridParts in a twodimensional array that corresponds to the rows and columns.

Returns:
all the GridParts in a twodimensional array that corresponds to the rows and columns of the Grid.

getNrOfRows

int getNrOfRows()
Return number of rows in the Grid.

Returns:
number of rows in the Grid.

getWidths

GridPartSize[] getWidths()
Return column widths.

Returns:
column widths.
See Also:
GridPartSize

getHeights

GridPartSize[] getHeights()
Return row heights.

Returns:
row heights.
See Also:
GridPartSize

isFullWidth

boolean isFullWidth()
Return true if the width of this Grid is 100%.

Returns:
true if the width of this Grid is 100%.

isFullHeight

boolean isFullHeight()
Return true if the height of the Grid is 100%.

Returns:
true if the height of the Grid is 100%.

getWidth

int getWidth()
Return width of the Grid in pixels. When it is full width, -1 is returned.

Returns:
width of the Grid in pixels. When it is full width, -1 is returned.

getHeight

int getHeight()
Return height of the Grid in pixels. When it is full height, -1 is returned.

Returns:
height of the Grid in pixels. When it is full height, -1 is returned.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.