|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.elements.table.LayoutUtil
public class LayoutUtil
The utility class for LayoutTable
.
Constructor Summary | |
---|---|
LayoutUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutUtil()
Method Detail |
---|
protected static int getRowCount(LayoutTable table)
table
- the layout table
protected static java.util.List getFlattenedLayoutSlots(LayoutTable table)
table
- the layout table
public static int getEffectiveColumnSpan(CellHandle cell)
cell
- the cell to find
public static int getEffectiveRowSpan(CellHandle cell)
cell
- the cell to find
public 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 begins
TableItem/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 table
true
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 table
true
if the table is valid. Otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |