com.swfm.mica.widgets
Class MiVirtualTreeTable

java.lang.Object
  extended bycom.swfm.mica.widgets.MiVirtualTable
      extended bycom.swfm.mica.widgets.MiVirtualTreeTable
All Implemented Interfaces:
MiiActionHandler, MiiOverlayRenderer, MiiScrollableData, MiiSelectableTableContentSupplier, MiiTypes, MiiVirtualTableRowColumnLocationSupplier

public class MiVirtualTreeTable
extends MiVirtualTable
implements MiiActionHandler, MiiScrollableData, MiiSelectableTableContentSupplier, MiiVirtualTableRowColumnLocationSupplier, MiiOverlayRenderer, MiiTypes

This class supports the 'virtual' treelist, 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.

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static java.lang.String Mi_ROW_ITEM_EXPANDED
           
static java.lang.String Mi_ROW_ITEM_HAS_CHILDREN
           
static java.lang.String Mi_ROW_ITEM_IS_FOLDER
           
static java.lang.String Mi_ROW_ITEM_LEVEL
           
     
Constructor Summary
MiVirtualTreeTable(MiTable table, MiScrolledBox scrolledBox, MiiVirtualTableRowSource dataSource, MiiVirtualTreeTableRowSourceModifier dataSourceModifier)
           
 
Method Summary
 void expandRow(int virtualRowNumber)
           
 java.lang.String getExpandCollapseButtonSelectedColor()
           
 java.lang.String getExpandCollapseButtonUnselectedColor()
           
 void renderOverlay(MiRenderer renderer)
           
 void selectRow(int virtualRowNumber)
           
 boolean selectRow(MiBounds area)
           
 void setExpandCollapseButtonSelectedColor(java.lang.String color)
           
 void setExpandCollapseButtonUnselectedColor(java.lang.String color)
           
 void toggleRowExpansion(int virtualRowNumber)
           
 
Methods inherited from class com.swfm.mica.widgets.MiVirtualTable
addFilter, addHighlighter, addOrderer, addReporter, getAbsoluteColumnNumber, getAbsoluteRowNumber, getCell, getContentsCells, getEstimateOfColumnWidth, getNormalizedHorizontalAmountVisible, getNormalizedHorizontalPosition, getNormalizedVerticalAmountVisible, getNormalizedVerticalPosition, getNumberOfColumns, getNumberOfRows, getNumberOfVisibleRows, getRelativeColumnNumber, getRelativeRowNumber, getRows, getTable, getTableRow, getTopVisibleRow, isCellVisible, isHandlingScrollingDiscreteAmountsLocally, isSelectable, processAction, rebuild, redisplay, removeAllHighlighters, removeAllOrderers, removeFilter, removeHighlighter, removeOrderer, removeReporter, scrollChunkDown, scrollChunkLeft, scrollChunkRight, scrollChunkUp, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, scrollToBottom, scrollToLeftSide, scrollToNormalizedHorizontalPosition, scrollToNormalizedVerticalPosition, scrollToRightSide, scrollToTop, selectItem, setAutoRebuildEnabled, setRows, setTopVisibleRow
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.swfm.mica.core.MiiActionHandler
processAction
 
Methods inherited from interface com.swfm.mica.core.MiiScrollableData
getNormalizedHorizontalAmountVisible, getNormalizedHorizontalPosition, getNormalizedVerticalAmountVisible, getNormalizedVerticalPosition, isHandlingScrollingDiscreteAmountsLocally, scrollChunkDown, scrollChunkLeft, scrollChunkRight, scrollChunkUp, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, scrollToBottom, scrollToLeftSide, scrollToNormalizedHorizontalPosition, scrollToNormalizedVerticalPosition, scrollToRightSide, scrollToTop
 
Methods inherited from interface com.swfm.mica.widgets.MiiSelectableTableContentSupplier
getCell, getContentsCells, getNumberOfColumns, getNumberOfRows, isCellVisible, isSelectable
 
Methods inherited from interface com.swfm.mica.widgets.MiiVirtualTableRowColumnLocationSupplier
getAbsoluteColumnNumber, getAbsoluteRowNumber, getRelativeColumnNumber, getRelativeRowNumber
 

Field Detail

Mi_ROW_ITEM_LEVEL

public static final java.lang.String Mi_ROW_ITEM_LEVEL
See Also:
Constant Field Values

Mi_ROW_ITEM_HAS_CHILDREN

public static final java.lang.String Mi_ROW_ITEM_HAS_CHILDREN
See Also:
Constant Field Values

Mi_ROW_ITEM_EXPANDED

public static final java.lang.String Mi_ROW_ITEM_EXPANDED
See Also:
Constant Field Values

Mi_ROW_ITEM_IS_FOLDER

public static final java.lang.String Mi_ROW_ITEM_IS_FOLDER
See Also:
Constant Field Values
Constructor Detail

MiVirtualTreeTable

public MiVirtualTreeTable(MiTable table,
                          MiScrolledBox scrolledBox,
                          MiiVirtualTableRowSource dataSource,
                          MiiVirtualTreeTableRowSourceModifier dataSourceModifier)
Method Detail

selectRow

public boolean selectRow(MiBounds area)

selectRow

public void selectRow(int virtualRowNumber)

expandRow

public void expandRow(int virtualRowNumber)

toggleRowExpansion

public void toggleRowExpansion(int virtualRowNumber)

setExpandCollapseButtonSelectedColor

public void setExpandCollapseButtonSelectedColor(java.lang.String color)

getExpandCollapseButtonSelectedColor

public java.lang.String getExpandCollapseButtonSelectedColor()

setExpandCollapseButtonUnselectedColor

public void setExpandCollapseButtonUnselectedColor(java.lang.String color)

getExpandCollapseButtonUnselectedColor

public java.lang.String getExpandCollapseButtonUnselectedColor()

renderOverlay

public void renderOverlay(MiRenderer renderer)
Specified by:
renderOverlay in interface MiiOverlayRenderer