|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.widgets.MiVirtualTable
This class supports the 'virtual' table, which is called virtual by virtue of it building only the visible rows of the table at one time - instead of the whole table at once - which scales better and is more efficient, though less flexible.
| Field Summary |
| Constructor Summary | |
MiVirtualTable(MiTable table,
MiScrolledBox scrolledBox,
MiiVirtualTableRowSource dataSource)
|
|
| Method Summary | |
void |
addFilter(MiiVirtualTableFilter filter)
|
void |
addHighlighter(MiiVirtualTableHighlighter highlighter)
|
void |
addOrderer(MiiVirtualTableRowColumnOrderer orderer)
|
void |
addReporter(MiiVirtualTableReporter reporter)
|
int |
getAbsoluteColumnNumber(int column)
|
int |
getAbsoluteRowNumber(int row)
Implements MiiVirtualTableRowColumnLocationSupplier |
MiTableCell |
getCell(int row,
int column)
|
MiTableCells |
getContentsCells()
|
double |
getEstimateOfColumnWidth(int columnNumber)
|
double |
getNormalizedHorizontalAmountVisible()
Gets the normalized (between 0.0 and 1.0 inclusive) horizontal size of the data (0.0 indicates none of the data is visible and 1.0 indicates all of the data's width is visible). |
double |
getNormalizedHorizontalPosition()
Gets the normalized (between 0.0 and 1.0 inclusive) horizontal position of the data (0.0 is the left side and 1.0 is the right side). |
double |
getNormalizedVerticalAmountVisible()
Gets the normalized (between 0.0 and 1.0 inclusive) vertical size of the data (0.0 indicates none of the data is visible and 1.0 indicates all of the data's height is visible). |
double |
getNormalizedVerticalPosition()
Gets the normalized (between 0.0 and 1.0 inclusive) vertical position of the data (0.0 is the left side and 1.0 is the right side). |
int |
getNumberOfColumns()
|
int |
getNumberOfRows()
|
int |
getNumberOfVisibleRows()
|
int |
getRelativeColumnNumber(int column)
|
int |
getRelativeRowNumber(int row)
|
java.util.ArrayList |
getRows()
|
MiTable |
getTable()
|
MiTableCells |
getTableRow(int rowNumber,
int targetDisplayRow,
MiBounds rowBounds,
int[] rowHeightInCells)
|
int |
getTopVisibleRow()
|
boolean |
isCellVisible(MiTableCell cell)
|
boolean |
isHandlingScrollingDiscreteAmountsLocally()
Gets whether actions like scrollLineDown is handled in this interfaces implementation or whether these type of methods are merely to be notified of the scrolling calculated elsewhere and executed by calling scrollToNormalizedVerticalPosition. |
boolean |
isSelectable(int row,
int column)
Implements MiiSelectableTableContentSupplier |
boolean |
processAction(MiiAction action)
Process the given action. |
void |
rebuild()
|
void |
redisplay()
|
void |
removeAllHighlighters()
|
void |
removeAllOrderers()
|
void |
removeFilter(MiiVirtualTableFilter filter)
|
void |
removeHighlighter(MiiVirtualTableHighlighter highlighter)
|
void |
removeOrderer(MiiVirtualTableRowColumnOrderer orderer)
|
void |
removeReporter(MiiVirtualTableReporter reporter)
|
void |
scrollChunkDown()
Scrolls one chunk down (conversely, move the data one chunk up). |
void |
scrollChunkLeft()
Scrolls one chunk left (conversely, move the data one chunk right). |
void |
scrollChunkRight()
Scrolls one chunk right (conversely, move the data one chunk left). |
void |
scrollChunkUp()
Scrolls one chunk up (conversely, move the data one chunk down). |
void |
scrollLineDown()
Scrolls one line down (conversely, move the data one line up). |
void |
scrollLineLeft()
Scrolls one line left (conversely, move the data one line right). |
void |
scrollLineRight()
Scrolls one line right (conversely, move the data one line left). |
void |
scrollLineUp()
Scrolls one line up (conversely, move the data one line down). |
void |
scrollPageDown()
Scrolls one page down (conversely, move the data one page up). |
void |
scrollPageLeft()
Scrolls one page left (conversely, move the data one page right). |
void |
scrollPageRight()
Scrolls one page right (conversely, move the data one page left). |
void |
scrollPageUp()
Scrolls one page up (conversely, move the data one page down). |
void |
scrollToBottom()
Scrolls to the bottom of the data. |
void |
scrollToLeftSide()
Scrolls to the left side of the data. |
void |
scrollToNormalizedHorizontalPosition(double normalizedPosition)
Scrolls to the given normalized (between 0.0 and 1.0) vertical position. |
void |
scrollToNormalizedVerticalPosition(double normalizedPosition)
Scrolls to the given normalized (between 0.0 and 1.0) horizontal position. |
void |
scrollToRightSide()
Scrolls to the right side of the data. |
void |
scrollToTop()
Scrolls to the top of the data. |
void |
selectItem(int absoluteRow,
int absoluteColumn)
|
void |
setAutoRebuildEnabled(boolean flag)
|
void |
setRows(java.util.ArrayList rows)
|
void |
setTopVisibleRow(int row)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiVirtualTable(MiTable table,
MiScrolledBox scrolledBox,
MiiVirtualTableRowSource dataSource)
| Method Detail |
public void addReporter(MiiVirtualTableReporter reporter)
public void removeReporter(MiiVirtualTableReporter reporter)
public void addFilter(MiiVirtualTableFilter filter)
public void removeFilter(MiiVirtualTableFilter filter)
public void addHighlighter(MiiVirtualTableHighlighter highlighter)
public void removeHighlighter(MiiVirtualTableHighlighter highlighter)
public void removeAllHighlighters()
public void addOrderer(MiiVirtualTableRowColumnOrderer orderer)
public void removeOrderer(MiiVirtualTableRowColumnOrderer orderer)
public void removeAllOrderers()
public MiTable getTable()
public java.util.ArrayList getRows()
public void setRows(java.util.ArrayList rows)
public double getEstimateOfColumnWidth(int columnNumber)
public void setTopVisibleRow(int row)
public int getTopVisibleRow()
public int getNumberOfVisibleRows()
public void redisplay()
public void setAutoRebuildEnabled(boolean flag)
public MiTableCells getTableRow(int rowNumber,
int targetDisplayRow,
MiBounds rowBounds,
int[] rowHeightInCells)
public void rebuild()
public void selectItem(int absoluteRow,
int absoluteColumn)
public boolean processAction(MiiAction action)
processAction in interface MiiActionHandleraction - the action to process.
public int getAbsoluteRowNumber(int row)
getAbsoluteRowNumber in interface MiiVirtualTableRowColumnLocationSupplierpublic int getAbsoluteColumnNumber(int column)
getAbsoluteColumnNumber in interface MiiVirtualTableRowColumnLocationSupplierpublic int getRelativeRowNumber(int row)
getRelativeRowNumber in interface MiiVirtualTableRowColumnLocationSupplierpublic int getRelativeColumnNumber(int column)
getRelativeColumnNumber in interface MiiVirtualTableRowColumnLocationSupplier
public boolean isSelectable(int row,
int column)
isSelectable in interface MiiSelectableTableContentSupplier
public MiTableCell getCell(int row,
int column)
getCell in interface MiiSelectableTableContentSupplierpublic int getNumberOfColumns()
getNumberOfColumns in interface MiiSelectableTableContentSupplierpublic int getNumberOfRows()
getNumberOfRows in interface MiiSelectableTableContentSupplierpublic MiTableCells getContentsCells()
getContentsCells in interface MiiSelectableTableContentSupplierpublic boolean isCellVisible(MiTableCell cell)
isCellVisible in interface MiiSelectableTableContentSupplierpublic boolean isHandlingScrollingDiscreteAmountsLocally()
isHandlingScrollingDiscreteAmountsLocally in interface MiiScrollableDatapublic double getNormalizedHorizontalPosition()
getNormalizedHorizontalPosition in interface MiiScrollableDatapublic double getNormalizedVerticalPosition()
getNormalizedVerticalPosition in interface MiiScrollableDatapublic double getNormalizedHorizontalAmountVisible()
getNormalizedHorizontalAmountVisible in interface MiiScrollableDatapublic double getNormalizedVerticalAmountVisible()
getNormalizedVerticalAmountVisible in interface MiiScrollableDatapublic void scrollLineUp()
scrollLineUp in interface MiiScrollableDatapublic void scrollLineDown()
scrollLineDown in interface MiiScrollableDatapublic void scrollLineLeft()
scrollLineLeft in interface MiiScrollableDatapublic void scrollLineRight()
scrollLineRight in interface MiiScrollableDatapublic void scrollChunkUp()
scrollChunkUp in interface MiiScrollableDatapublic void scrollChunkDown()
scrollChunkDown in interface MiiScrollableDatapublic void scrollChunkLeft()
scrollChunkLeft in interface MiiScrollableDatapublic void scrollChunkRight()
scrollChunkRight in interface MiiScrollableDatapublic void scrollPageUp()
scrollPageUp in interface MiiScrollableDatapublic void scrollPageDown()
scrollPageDown in interface MiiScrollableDatapublic void scrollPageLeft()
scrollPageLeft in interface MiiScrollableDatapublic void scrollPageRight()
scrollPageRight in interface MiiScrollableDatapublic void scrollToTop()
scrollToTop in interface MiiScrollableDatapublic void scrollToBottom()
scrollToBottom in interface MiiScrollableDatapublic void scrollToLeftSide()
scrollToLeftSide in interface MiiScrollableDatapublic void scrollToRightSide()
scrollToRightSide in interface MiiScrollableDatapublic void scrollToNormalizedVerticalPosition(double normalizedPosition)
scrollToNormalizedVerticalPosition in interface MiiScrollableDatanormalizedPosition - the new horizontal positionpublic void scrollToNormalizedHorizontalPosition(double normalizedPosition)
scrollToNormalizedHorizontalPosition in interface MiiScrollableDatanormalizedPosition - the new vertical position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||