|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableRowModel
Defines the requirements for a report row model object suitable for use with ReportModel.
Field Summary | |
---|---|
static int |
maxHeight
|
static int |
minHeight
|
Method Summary | |
---|---|
void |
addColumn(int column)
Adds column in the model |
TableRow |
addRow()
Adds the new row |
TableRow |
addRow(int row)
Adds the row at the specified position |
int |
addRow(int row,
TableRow tableRow)
Adds the row at the specified position |
int |
addRow(RowsGroup group,
int indexInGroup)
Adds the row to the group |
int |
addRow(RowsGroup group,
int indexInGroup,
TableRow tableRow)
Adds the row to the group |
void |
addRowModelListener(TableRowModelListener x)
Adds a listener for report row model events. |
int |
addRows(int count,
int index)
Adds rows' count to the index of the model. |
void |
clearUnion(int topRow,
int leftColumn,
int bottomRow,
int rightColumn)
Clears the unions of the selected cells |
TableRow |
createTableRow()
Creates new default TableRow |
void |
disableSpan()
Clears all cells unions before moving of rows or columns |
void |
enableSpan()
Restores all cells unions after moving of rows or columns |
void |
endUpdate()
Allows notification of listeners after updates of model |
int |
getColCount()
Returns columns' count in the model |
int |
getFirstPageNumber()
Returns number of the first page |
RowsGroup |
getGroup(int row)
Returns the group which contains the TableRow by specified row index |
Group |
getGroup(int[] path)
|
RowsGroup |
getGroup(TableRow tableRow)
Returns the group which contains the tableRow |
int |
getGroupRowIndex(Group group)
Returns the index of the first group's row in rowList |
Object |
getHeaderValue(int row)
Returns value for row's header |
int |
getMaxRowHeight()
Returns the maximum height of a report row, in pixels. |
int |
getMinRowHeight()
Returns the minimum height of a report row, in pixels. |
int |
getPageCount()
Returns count of pages |
Integer |
getPageNumber(int row,
int column)
Returns number of page for a cell on a row and a column |
int |
getPreferredRowHeight()
Returns the preferred height of a report row, in pixels. |
RootGroup |
getRootGroup()
|
TableRow |
getRow(int row)
Returns the TableRow from the specified position |
int |
getRowCount()
Returns rows' count in the model |
int |
getRowHeight(int row)
Returns the height, in pixels, of the row. |
int |
getRowIndex(TableRow tableRow)
Returns row's position in the model |
int |
getRowIndexAtY(int y)
Returns the index of the row that lies on the vertical point, y; or -1 if it lies outside the any of the row's bounds. |
int |
getRowMargin()
Returns the row between the cells in each row. |
int |
getTotalRowHeight()
Returns the total height of all the rows. |
boolean |
isCanHideGroup()
|
boolean |
isCanUpdatePages()
Returns the possibility of calculation of pages' size |
boolean |
isPrintLeftToRight()
Direction of an output of pages on the printer. |
void |
moveColumn(int columnIndex,
int newIndex)
Moves the column at columnIndex to newIndex. |
void |
moveDraggedRow(int rowIndex,
int newIndex)
Moves the dragged row and its header at rowIndex to newIndex. |
void |
moveRow(int rowIndex,
int newIndex)
Moves the row and its header at rowIndex to newIndex. |
void |
removeColumn(int column)
Removes column from the model |
void |
removeRowModelListener(TableRowModelListener x)
Removes a listener for report row model events. |
void |
removeRows()
Removes all rows |
void |
removeRows(int count,
int index)
Removes rows' count begining with the index from the model. |
void |
setCanUpdatePages(boolean b)
Sets canUpdatePages property |
void |
setColCount(int count)
Sets the columns' count in the model If the columns' count is bigger than parameter, the columns are removed from the model If the columns' count is smaller than parameter, the columns are added to the model |
void |
setFirstPageNumber(int firstPageNumber)
Sets number of the first page |
void |
setPreferredRowHeight(int preferredHeight)
Sets the preferred height for row. |
void |
setPrintLeftToRight(boolean value)
Direction of an output of pages on the printer. |
void |
setRowHeight(int row,
double h)
Sets the height for row to h. |
void |
setRowHeight(int row,
int rowHeight)
Sets the height for row to rowHeight. |
void |
setRowHeight(TableRow tableRow,
int newHeight)
Sets the height for tableRow to newHeight. |
void |
setShowPageNumber(boolean show)
|
void |
setVisibleGroup(Group group,
boolean b)
If parameter b is true, sets the group that is visible in report, otherwise removes rows containing in the group from report |
void |
startUpdate()
Bans notification of listeners before updates of model |
void |
unionCells(int topRow,
int leftColumn,
int bottomRow,
int rightColumn)
Unions the cells by coordinates |
void |
updatePages(int startRow,
int pageHeight)
Calculates pages' size |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Field Detail |
---|
static final int minHeight
static final int maxHeight
Method Detail |
---|
TableRow addRow(int row)
row
- index at which the row is to be inserted.
TableRow addRow()
int addRow(int row, TableRow tableRow)
row
- the row's numbertableRow
- the TableRow object
int addRow(RowsGroup group, int indexInGroup)
group
- indexInGroup
- index in group
int addRow(RowsGroup group, int indexInGroup, TableRow tableRow)
group
- indexInGroup
- tableRow
-
void addColumn(int column)
column
- the specified position in this modelvoid removeColumn(int column)
column
- the index of the removing columnint getColCount()
void setColCount(int count)
count
- new columns' countint getRowCount()
TableRow getRow(int row)
row
- the row's number
int getRowIndex(TableRow tableRow)
tableRow
- TableRow to search for.
int getRowIndexAtY(int y)
y
- y coordinate of point
void addRowModelListener(TableRowModelListener x)
x
- a TableRowModelListener objectvoid removeRowModelListener(TableRowModelListener x)
x
- a TableRowModelListener objectint getTotalRowHeight()
void moveRow(int rowIndex, int newIndex)
rowIndex
- the index of row to be movednewIndex
- index of the row's new locationvoid moveDraggedRow(int rowIndex, int newIndex)
rowIndex
- the index of row to be movednewIndex
- index of the row's new locationint getRowMargin()
int getMinRowHeight()
int getMaxRowHeight()
int getPreferredRowHeight()
void setPreferredRowHeight(int preferredHeight)
preferredHeight
- new preferred row height, in pixelsvoid moveColumn(int columnIndex, int newIndex)
columnIndex
- the index of column to be movednewIndex
- index of the column's new locationint getRowHeight(int row)
row
- the row whose height is to be returned
void setRowHeight(int row, int rowHeight)
row
- the row whose height is being changedrowHeight
- new row height, in pixelsvoid setRowHeight(TableRow tableRow, int newHeight)
tableRow
- the row whose height is being changednewHeight
- new row height, in pixelsvoid setRowHeight(int row, double h)
row
- the row whose height is being changedh
- new row height, in 1/72 of inchRootGroup getRootGroup()
RowsGroup getGroup(int row)
row
- the row's index in rowList
RowsGroup getGroup(TableRow tableRow)
tableRow
- the TableRow object
void setVisibleGroup(Group group, boolean b)
group
- Group objectb
- visible propertyint getGroupRowIndex(Group group)
group
- the Group object
Object getHeaderValue(int row)
row
- the row's number
void updatePages(int startRow, int pageHeight)
startRow
- the first row for calculationpageHeight
- page height in pixelsvoid unionCells(int topRow, int leftColumn, int bottomRow, int rightColumn)
topRow
- the number of the top rowleftColumn
- the number of the left columnbottomRow
- the number of the bottom rowrightColumn
- the number of the right columnvoid clearUnion(int topRow, int leftColumn, int bottomRow, int rightColumn)
topRow
- the number of the top rowleftColumn
- the number of the left columnbottomRow
- the number of the bottom rowrightColumn
- the number of the right columnvoid disableSpan()
void enableSpan()
int addRows(int count, int index)
count
- rows' countindex
- the row index of the rows to be inserted
void removeRows()
void removeRows(int count, int index)
count
- rows' countindex
- index of the first removed rowTableRow createTableRow()
void startUpdate()
void endUpdate()
boolean isCanUpdatePages()
void setCanUpdatePages(boolean b)
b
- the canUpdatePages propertyboolean isCanHideGroup()
int getFirstPageNumber()
void setFirstPageNumber(int firstPageNumber)
firstPageNumber
- number of the first pageInteger getPageNumber(int row, int column)
row
- column
-
int getPageCount()
Group getGroup(int[] path)
void setShowPageNumber(boolean show)
boolean isPrintLeftToRight()
void setPrintLeftToRight(boolean value)
value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |