public class LayoutUtil
extends java.lang.Object
LayoutTable.| 构造器和说明 |
|---|
LayoutUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.eclipse.birt.report.model.elements.ReportItem |
getCompoundContainer(IDesignElement element)
Returns a nearest
TableItem/GridItem container for
TableRow, TableGroup and TableItem
if applicable. |
static int |
getEffectiveColumnSpan(CellHandle cell)
Returns the effective column span of the given cell.
|
static int |
getEffectiveRowSpan(CellHandle cell)
Returns the effective row span of the given cell.
|
protected static java.util.List |
getFlattenedLayoutSlots(LayoutTable table)
Returns flattern slots of the layout table regardless GROUP/Table slots.
|
protected static int |
getRowCount(LayoutTable table)
Calculates the row number in the table.
|
static boolean |
isValidLayout(org.eclipse.birt.report.model.elements.GridItem grid,
org.eclipse.birt.report.model.core.Module module)
Checks whether the layout grid is valid or not.
|
static boolean |
isValidLayout(org.eclipse.birt.report.model.elements.TableItem table,
org.eclipse.birt.report.model.core.Module module)
Checks whether the layout table is valid or not.
|
protected static int getRowCount(LayoutTable table)
table - the layout tableprotected static java.util.List getFlattenedLayoutSlots(LayoutTable table)
table - the layout tablepublic static int getEffectiveColumnSpan(CellHandle cell)
cell - the cell to findpublic static int getEffectiveRowSpan(CellHandle cell)
cell - the cell to findpublic static org.eclipse.birt.report.model.elements.ReportItem getCompoundContainer(IDesignElement element)
TableItem/GridItem container for
TableRow, TableGroup and TableItem
if applicable.
If TableRow is in the GridItem, return
null.
element - the element where the search beginsTableItem/GridItem containerpublic static boolean isValidLayout(org.eclipse.birt.report.model.elements.GridItem grid,
org.eclipse.birt.report.model.core.Module module)
grid - the tablemodule - the root of the tabletrue if the table is valid. Otherwise
false.public static boolean isValidLayout(org.eclipse.birt.report.model.elements.TableItem table,
org.eclipse.birt.report.model.core.Module module)
table - the tablemodule - the root of the tabletrue if the table is valid. Otherwise
false.Copyright © 2008 Actuate Corp. All rights reserved.