public final class TableColumnBandAdapter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TableHandle |
element
The element where the copy/paste operation occurs.
|
Modifier and Type | Method and Description |
---|---|
protected int |
findCellPosition(RowHandle row,
int columnToInsert,
boolean insert)
Returns the position where the cell resides in the row.
|
protected int |
getCellPosition(CellHandle cell)
Returns the column number with the given cell.
|
protected java.util.List |
getCellsInSlot(SlotHandle handle,
int columnIndex,
boolean mustBeStartPosition)
Returns copied cells with the given slot and column number.
|
protected java.util.List |
getCellsUnderColumn(int columnNumber)
Returns copied cells with the column number.
|
protected java.util.List |
getCellsUnderColumn(int columnIndex,
boolean mustBeStartPosition)
Returns copied cells with the column number regardless whether the
current position is where the cell element begins to span.
|
protected int |
getColumnCount()
Returns the number of columns in the element.
|
protected SlotHandle |
getColumns()
Returns the column slot.
|
protected static int |
getColumnStartPos(ColumnHandle target)
Returns the column index that is the start column index of the
target . |
protected ReportItemHandle |
getElementHandle()
Returns the element where the copy/paste operation occurs.
|
protected org.eclipse.birt.report.model.core.Module |
getModule()
Returns the module where the element belongs to.
|
protected RowHandle |
getRow(int slotId,
int groupId,
int rowNumber)
Returns the row with the given slot id, group id and the row number.
|
protected java.util.List |
getRowContainerSlots()
Returns a list containing rows.
|
protected int |
getRowCount()
Returns the number of rows in the element.
|
protected boolean |
hasDroppingCell(java.util.List cells)
Checks whether any cell in
cells has a value of
DesignChoiceConstants#DROP_TYPE_DETAIL or
DesignChoiceConstants#DROP_TYPE_ALL for the "drop"
property. |
protected boolean |
hasParent()
Checks element has parent or not.
|
protected boolean |
isDroppingCell(org.eclipse.birt.report.model.api.CellContextInfo cellInfo) |
protected TableHandle element
protected ReportItemHandle getElementHandle()
protected SlotHandle getColumns()
protected java.util.List getCellsUnderColumn(int columnIndex, boolean mustBeStartPosition)
columnIndex
- the column numbermustBeStartPosition
- true
if it is. Otherwise false
.protected int getCellPosition(CellHandle cell)
cell
- the cell to find.protected int getRowCount()
protected int getColumnCount()
protected RowHandle getRow(int slotId, int groupId, int rowNumber)
slotId
- the slot idgroupId
- the group idrowNumber
- the row numberprotected boolean hasDroppingCell(java.util.List cells)
cells
has a value of
DesignChoiceConstants#DROP_TYPE_DETAIL
or
DesignChoiceConstants#DROP_TYPE_ALL
for the "drop"
property.cells
- a list containing cell handlestrue
if any cell has the "drop" property,
otherwise false
.protected java.util.List getRowContainerSlots()
protected boolean isDroppingCell(org.eclipse.birt.report.model.api.CellContextInfo cellInfo)
protected org.eclipse.birt.report.model.core.Module getModule()
protected static int getColumnStartPos(ColumnHandle target)
target
.target
- the column to findprotected int findCellPosition(RowHandle row, int columnToInsert, boolean insert)
row
- the row handlecolumnToInsert
- the column number to insert, count from 1insert
- whether insert modeprotected java.util.List getCellsUnderColumn(int columnNumber)
columnNumber
- the column numberprotected java.util.List getCellsInSlot(SlotHandle handle, int columnIndex, boolean mustBeStartPosition)
handle
- the slotcolumnIndex
- the column numbermustBeStartPosition
- true
if it is. Otherwise false
.protected final boolean hasParent()
true
if has parent, else return false
Copyright © 2008 Actuate Corp. All rights reserved.