public class RowBandInsertAndPasteAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected RowBandAdapter |
adapter
Adapter to work on the grid/table columns.
|
Modifier and Type | Method and Description |
---|---|
protected int |
adjustPosition(int destIndex,
int count)
Adjusts position of destination index.
|
protected boolean |
canInsertAndPaste(org.eclipse.birt.report.model.elements.TableRow clonedRow,
RowOperationParameters parameters)
Checks whether the paste operation can be done with the given copied
column band data, the column index and the operation flag.
|
protected int |
computeColumnCount(RowHandle rowHandle)
Returns column count in the given row.
|
protected int |
computeColumnCount(org.eclipse.birt.report.model.elements.TableRow row)
Returns column count in the given row.
|
protected boolean |
containsRowSpan(RowHandle rowHandle)
Checks every cell contains row span or not.
|
protected IDesignElement |
copyRow(RowHandle rowHandle)
Copies a row with the given row handle.
|
protected org.eclipse.birt.report.model.elements.TableRow |
copyRow(org.eclipse.birt.report.model.elements.TableRow row)
Copies a row with the given table row
|
protected void |
doInsertAndPaste(org.eclipse.birt.report.model.elements.TableRow copiedRow,
RowOperationParameters parameters)
Pastes the given table row to target row with the given slot id , group
id and destination index.
|
protected int |
getPositionOfRow(org.eclipse.birt.report.model.elements.TableRow row)
Gets position of table row.
|
protected SlotHandle |
getSlotHandle(RowOperationParameters parameters)
Get slot handle in table or group according to the slot id and group id.
|
protected boolean |
isRectangleArea(RowHandle rowHandle)
Checks whether copied row handle is a rectangle.
|
protected RowBandAdapter adapter
protected boolean canInsertAndPaste(org.eclipse.birt.report.model.elements.TableRow clonedRow, RowOperationParameters parameters)
clonedRow
- the copied table row.parameters
- parameters needed by insert operation.true
indicates the paste operation can be done.
Otherwise false
.protected void doInsertAndPaste(org.eclipse.birt.report.model.elements.TableRow copiedRow, RowOperationParameters parameters) throws SemanticException
copiedRow
- the copied table row.parameters
- parameters needed by insert operation.SemanticException
protected IDesignElement copyRow(RowHandle rowHandle)
rowHandle
- handle of rowprotected org.eclipse.birt.report.model.elements.TableRow copyRow(org.eclipse.birt.report.model.elements.TableRow row)
row
- table rowprotected boolean isRectangleArea(RowHandle rowHandle)
rowHandle
- handle of rowtrue
if the shape of integrated row handle is a
rectangle, otherwise false
.protected boolean containsRowSpan(RowHandle rowHandle)
false
;Otherwise return true
rowHandle
- handle of row.true
;Otherwise
return false
protected int getPositionOfRow(org.eclipse.birt.report.model.elements.TableRow row)
row
- table row . can't be copied row, because copied row is not in
tree.protected int computeColumnCount(org.eclipse.birt.report.model.elements.TableRow row)
row
- table row including copied row and row in design file.protected int computeColumnCount(RowHandle rowHandle)
rowHandle
- row handleprotected SlotHandle getSlotHandle(RowOperationParameters parameters)
parameters
- parameters for getting slot container.SlotHandle
.Otherwise
return null.protected int adjustPosition(int destIndex, int count)
destIndex
- index of destinationcount
- count of row.Copyright © 2008 Actuate Corp. All rights reserved.