|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.RowBandShiftAction
public class RowBandShiftAction
Does table row shift operation. Shift is only allowed in the same slot handle.
Field Summary | |
---|---|
protected RowBandAdapter |
adapter
Adapter to work on the grid/table columns. |
Constructor Summary | |
---|---|
RowBandShiftAction(RowBandAdapter adapter)
Constructs a default RowBandAdapter . |
Method Summary | |
---|---|
protected int |
adjustPosition(int destIndex,
int count)
Adjusts position of destination index. |
protected boolean |
canShift(RowOperationParameters parameters)
Checks whether the shift operation can be done with the given parameters |
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 |
doShift(RowOperationParameters parameters)
Does shift operation with the given parameters. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RowBandAdapter adapter
Constructor Detail |
---|
public RowBandShiftAction(RowBandAdapter adapter)
RowBandAdapter
.
adapter
- the adapter to work on tables and grids.Method Detail |
---|
protected boolean canShift(RowOperationParameters parameters)
parameters
- parameters needed by insert operation.
true
indicates the shift operation can be done.
Otherwise false
.protected void doShift(RowOperationParameters parameters) throws SemanticException
parameters
- parameters needed by insert operation.
SemanticException
protected IDesignElement copyRow(RowHandle rowHandle)
rowHandle
- handle of row
protected org.eclipse.birt.report.model.elements.TableRow copyRow(org.eclipse.birt.report.model.elements.TableRow row)
row
- table row
protected boolean isRectangleArea(RowHandle rowHandle)
rowHandle
- handle of row
true
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 handle
protected 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |