jdbreport.model
Class NullReportRow

java.lang.Object
  extended by jdbreport.model.NullReportRow
All Implemented Interfaces:
Iterable<Cell>, TableRow
Direct Known Subclasses:
TemplateNullRow

public class NullReportRow
extends Object
implements TableRow

Version:
2.0 12.05.2011
Author:
Andrey Kholmanskih

Constructor Summary
NullReportRow()
           
 
Method Summary
 void addColumn(int index)
          Inserts the null cell at the specified position in this row
 void addColumn(int index, Cell cellItem)
          Inserts the Cell at the specified position in this row
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a PropertyChangeListener to the listener list.
 Cell createCellItem(int column)
          Creates a new Cell for specified column in the current row
 Cell getCellItem(int column)
           
 int getColCount()
           
 RowsGroup getGroup()
          Returns parental group
 TableCellRenderer getHeaderRenderer()
          Returns renderer for the row's header
 Object getHeaderValue()
          Returns the value of the row's header
 int getHeight()
           
 float getNativeHeight()
           
 boolean isNull()
          If true, the row is null
 boolean isPageBreak()
          Returns true if this row is the end of the page.
 boolean isPageHeader()
          Determines an accessory of a row to page heading
 Iterator<Cell> iterator()
          Returns an iterator over the cells in this row in proper sequence.
 Cell removeCell(int index)
          Replaces the cell at the specified position by NullCell
 Cell removeColumn(int index)
          Removes the cell at the specified position in this row Makes the columns' count smaller
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a PropertyChangeListener from the listener list.
 void setCellItem(Cell cellItem, int column)
          Sets Cell for specified column
 void setColCount(int count)
          Sets column's count
 void setHeaderValue(Object value)
          Sets the value of the row's header
 void setHeight(int height)
          Sets the row's height
 void setHeight(int height, boolean dragging)
          Sets the row's height when resizing
 void setPageBreak(boolean end)
          Sets pageBreak property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullReportRow

public NullReportRow()
Method Detail

getHeight

public int getHeight()
Specified by:
getHeight in interface TableRow
Returns:
row's height in pixels

setHeight

public void setHeight(int height)
Description copied from interface: TableRow
Sets the row's height

Specified by:
setHeight in interface TableRow
Parameters:
height - new row's height

setHeight

public void setHeight(int height,
                      boolean dragging)
Description copied from interface: TableRow
Sets the row's height when resizing

Specified by:
setHeight in interface TableRow
Parameters:
height - new row's height

getNativeHeight

public float getNativeHeight()
Specified by:
getNativeHeight in interface TableRow
Returns:
row's height in points

getHeaderRenderer

public TableCellRenderer getHeaderRenderer()
Description copied from interface: TableRow
Returns renderer for the row's header

Specified by:
getHeaderRenderer in interface TableRow
Returns:
TableCellRenderer

getHeaderValue

public Object getHeaderValue()
Description copied from interface: TableRow
Returns the value of the row's header

Specified by:
getHeaderValue in interface TableRow
Returns:
the value of the row's header

getCellItem

public Cell getCellItem(int column)
Specified by:
getCellItem in interface TableRow
Returns:
Cell for specified column

setCellItem

public void setCellItem(Cell cellItem,
                        int column)
Description copied from interface: TableRow
Sets Cell for specified column

Specified by:
setCellItem in interface TableRow
Parameters:
cellItem - - a new Cell
column - the column's index

getColCount

public int getColCount()
Specified by:
getColCount in interface TableRow
Returns:
column's count

setColCount

public void setColCount(int count)
Description copied from interface: TableRow
Sets column's count

Specified by:
setColCount in interface TableRow

isNull

public boolean isNull()
Description copied from interface: TableRow
If true, the row is null

Specified by:
isNull in interface TableRow
Returns:
if true, the row is null

addColumn

public void addColumn(int index,
                      Cell cellItem)
Description copied from interface: TableRow
Inserts the Cell at the specified position in this row

Specified by:
addColumn in interface TableRow
Parameters:
index - index at which the specified Cell is to be inserted.
cellItem - Cell to be inserted.

removeColumn

public Cell removeColumn(int index)
Description copied from interface: TableRow
Removes the cell at the specified position in this row Makes the columns' count smaller

Specified by:
removeColumn in interface TableRow
Parameters:
index - the index of the cell to removed.
Returns:
the Cell previously at the specified position.

addColumn

public void addColumn(int index)
Description copied from interface: TableRow
Inserts the null cell at the specified position in this row

Specified by:
addColumn in interface TableRow
Parameters:
index - index at which the column is to be inserted.

isPageBreak

public boolean isPageBreak()
Description copied from interface: TableRow
Returns true if this row is the end of the page.

Specified by:
isPageBreak in interface TableRow
Returns:
pageBreak property

setPageBreak

public void setPageBreak(boolean end)
Description copied from interface: TableRow
Sets pageBreak property

Specified by:
setPageBreak in interface TableRow
Parameters:
end - if true, the sets horizontal page break after row

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: TableRow
Adds a PropertyChangeListener to the listener list.

Specified by:
addPropertyChangeListener in interface TableRow
Parameters:
listener - the PropertyChangeListener to be added

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: TableRow
Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.

Specified by:
removePropertyChangeListener in interface TableRow
Parameters:
listener - the PropertyChangeListener to be removed

createCellItem

public Cell createCellItem(int column)
Description copied from interface: TableRow
Creates a new Cell for specified column in the current row

Specified by:
createCellItem in interface TableRow
Returns:
created Cell

removeCell

public Cell removeCell(int index)
Description copied from interface: TableRow
Replaces the cell at the specified position by NullCell

Specified by:
removeCell in interface TableRow
Parameters:
index - the index of the cell to removed.
Returns:
the Cell previously at the specified position.

setHeaderValue

public void setHeaderValue(Object value)
Description copied from interface: TableRow
Sets the value of the row's header

Specified by:
setHeaderValue in interface TableRow
Parameters:
value - new header's value

iterator

public Iterator<Cell> iterator()
Description copied from interface: TableRow
Returns an iterator over the cells in this row in proper sequence.

Specified by:
iterator in interface Iterable<Cell>
Specified by:
iterator in interface TableRow
Returns:
iterator of cells

getGroup

public RowsGroup getGroup()
Description copied from interface: TableRow
Returns parental group

Specified by:
getGroup in interface TableRow
Returns:
parental group

isPageHeader

public boolean isPageHeader()
Description copied from interface: TableRow
Determines an accessory of a row to page heading

Specified by:
isPageHeader in interface TableRow
Returns:
истина, если строка в заголовке страницы, иначе ложь