Class TableColumnBandAdapter
java.lang.Object
org.eclipse.birt.report.model.api.TableColumnBandAdapter
Represents an object of copied objects when do copy/paste operations between
tables.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TableHandleThe element where the copy/paste operation occurs. -
Method Summary
Modifier and TypeMethodDescriptionprotected intfindCellPosition(RowHandle row, int columnToInsert, boolean insert) Returns the position where the cell resides in the row.protected intgetCellPosition(CellHandle cell) Returns the column number with the given cell.protected ListgetCellsInSlot(SlotHandle handle, int columnIndex, boolean mustBeStartPosition) Returns copied cells with the given slot and column number.protected ListgetCellsUnderColumn(int columnNumber) Returns copied cells with the column number.protected ListgetCellsUnderColumn(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 intReturns the number of columns in the element.protected SlotHandleReturns the column slot.protected static intgetColumnStartPos(ColumnHandle target) Returns the column index that is the start column index of thetarget.protected ReportItemHandleReturns the element where the copy/paste operation occurs.protected org.eclipse.birt.report.model.core.ModuleReturns the module where the element belongs to.protected RowHandlegetRow(int slotId, int groupId, int rowNumber) Returns the row with the given slot id, group id and the row number.protected ListReturns a list containing rows.protected intReturns the number of rows in the element.protected booleanhasDroppingCell(List cells) Checks whether any cell incellshas a value ofDesignChoiceConstants#DROP_TYPE_DETAILorDesignChoiceConstants#DROP_TYPE_ALLfor the "drop" property.protected final booleanChecks element has parent or not.protected booleanisDroppingCell(org.eclipse.birt.report.model.api.CellContextInfo cellInfo)
-
Field Details
-
element
The element where the copy/paste operation occurs.
-
-
Method Details
-
getElementHandle
Returns the element where the copy/paste operation occurs.- Returns:
- the element
-
getColumns
Returns the column slot.- Returns:
- the column slot
-
getCellsUnderColumn
Returns copied cells with the column number regardless whether the current position is where the cell element begins to span.- Parameters:
columnIndex- the column numbermustBeStartPosition-trueif it is. Otherwisefalse.- Returns:
- the matched cell
-
getCellPosition
Returns the column number with the given cell.- Parameters:
cell- the cell to find.- Returns:
- the column number
-
getRowCount
protected int getRowCount()Returns the number of rows in the element.- Returns:
- the number or rows in the element.
-
getColumnCount
protected int getColumnCount()Returns the number of columns in the element.- Returns:
- the number of columns in the element
-
getRow
Returns the row with the given slot id, group id and the row number.- Parameters:
slotId- the slot idgroupId- the group idrowNumber- the row number- Returns:
- the row that matches the input parameters
-
hasDroppingCell
Checks whether any cell incellshas a value ofDesignChoiceConstants#DROP_TYPE_DETAILorDesignChoiceConstants#DROP_TYPE_ALLfor the "drop" property.- Parameters:
cells- a list containing cell handles- Returns:
trueif any cell has the "drop" property, otherwisefalse.
-
getRowContainerSlots
Returns a list containing rows.- Returns:
- a list containing rows.
-
isDroppingCell
protected boolean isDroppingCell(org.eclipse.birt.report.model.api.CellContextInfo cellInfo) -
getModule
protected org.eclipse.birt.report.model.core.Module getModule()Returns the module where the element belongs to.- Returns:
- the module
-
getColumnStartPos
Returns the column index that is the start column index of thetarget.- Parameters:
target- the column to find- Returns:
- a column index
-
findCellPosition
Returns the position where the cell resides in the row.- Parameters:
row- the row handlecolumnToInsert- the column number to insert, count from 1insert- whether insert mode- Returns:
- the position indexing from 1
-
getCellsUnderColumn
Returns copied cells with the column number.- Parameters:
columnNumber- the column number- Returns:
- new cell instances
-
getCellsInSlot
Returns copied cells with the given slot and column number.- Parameters:
handle- the slotcolumnIndex- the column numbermustBeStartPosition-trueif it is. Otherwisefalse.- Returns:
- new cell instances
-
hasParent
protected final boolean hasParent()Checks element has parent or not.- Returns:
trueif has parent, else returnfalse
-