org.eclipse.birt.report.model.api
Class GridColumnBandAdapter

java.lang.Object
  extended byorg.eclipse.birt.report.model.api.ColumnBandAdapter
      extended byorg.eclipse.birt.report.model.api.GridColumnBandAdapter

public final class GridColumnBandAdapter
extends org.eclipse.birt.report.model.api.ColumnBandAdapter

Represents an object of copied objects when do copy/paste operations between grids.


Field Summary
protected  GridHandle element
          The element where the copy/paste operation occurs.
 
Method Summary
protected static int findCellPosition(CellHandle cell)
          Returns the position where the cell resides in the row.
protected  int getCellPosition(CellHandle cell)
          Returns the column number with a given cell.
protected  java.util.List getCellsInSlot(SlotHandle handle, int columnIndex)
          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  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  int getRowCount()
          Returns the number of rows in the element.
protected  boolean hasDroppingCell(java.util.List cells)
          Always false since the "drop" property is disabled in grid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

protected GridHandle element
The element where the copy/paste operation occurs.

Method Detail

getElementHandle

protected ReportItemHandle getElementHandle()
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns the element where the copy/paste operation occurs.

Returns:
the element

getColumns

protected SlotHandle getColumns()
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns the column slot.

Returns:
the column slot

getCellsUnderColumn

protected java.util.List getCellsUnderColumn(int columnNumber)
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns copied cells with the column number.

Parameters:
columnNumber - the column number
Returns:
new cell instances

getCellPosition

protected int getCellPosition(CellHandle cell)
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns the column number with a given cell.

Parameters:
cell - the cell to find.
Returns:
the column number of the given cell.

getRowCount

protected int getRowCount()
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns the number of rows in the element.

Returns:
the number or rows in the element.

getColumnCount

protected int getColumnCount()
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns the number of columns in the element.

Returns:
the number of columns in the element

getRow

protected RowHandle getRow(int slotId,
                           int groupId,
                           int rowNumber)
Description copied from class: org.eclipse.birt.report.model.api.ColumnBandAdapter
Returns the row with the given slot id, group id and the row number.

Parameters:
slotId - the slot id
groupId - the group id
rowNumber - the row number
Returns:
the row that matches the input parameters

hasDroppingCell

protected boolean hasDroppingCell(java.util.List cells)
Always false since the "drop" property is disabled in grid.

Parameters:
cells - a list containing cell handles
Returns:
true if any cell has the "drop" property, otherwise false.
See Also:
ColumnBandAdapter.hasDroppingCell(java.util.List)

getModule

protected org.eclipse.birt.report.model.core.Module getModule()
Returns the module where the element belongs to.

Returns:
the module

getColumnStartPos

protected static int getColumnStartPos(ColumnHandle target)
Returns the column index that is the start column index of the target.

Parameters:
target - the column to find
Returns:
a column index

findCellPosition

protected static int findCellPosition(CellHandle cell)
Returns the position where the cell resides in the row.

Parameters:
cell - the cell handle
Returns:
the position indexing from 0

getCellsInSlot

protected java.util.List getCellsInSlot(SlotHandle handle,
                                        int columnIndex)
Returns copied cells with the given slot and column number.

Parameters:
handle - the slot
columnIndex - the column number
Returns:
new cell instances


Copyright © 2005 Actuate Corp. All rights reserved.