harmonic.mz.gui
Class TableSpreadsheet

java.lang.Object
  |
  +--HWPanel
        |
        +--harmonic.mz.gui.TableSpreadsheet

public class TableSpreadsheet
extends HWPanel

Shows table data

See Also:
Serialized Form

Constructor Summary
TableSpreadsheet()
           
 
Method Summary
 int columnCount()
           
 void format(int w, int h)
           
 java.awt.Insets getInsets()
           
 java.awt.Dimension getPreferredSize()
           
 void onHorzScroll(HWScrollEvent e)
           
 void onVertScroll(HWScrollEvent e)
           
 int rowCount()
           
 void setRowHeight(int height)
           
 void setTable(TableNode table)
          Sets the table to show.
 void setTableCellDrawer(int column, TableCellDrawer d)
           
 void updateFeedback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSpreadsheet

public TableSpreadsheet()
Method Detail

setTable

public void setTable(TableNode table)
Sets the table to show. This resets the TableCellDrawer's. Caller can then change individual TableCellDrawer's. Column indicies are the same as in table, evan if a column is hidden. All table columns are treated as if they are not hidden - but hidden columns are given a zero width, and not rendered. This enables user to show the columns the want to see.


setTableCellDrawer

public void setTableCellDrawer(int column,
                               TableCellDrawer d)

setRowHeight

public void setRowHeight(int height)

columnCount

public int columnCount()

rowCount

public int rowCount()

updateFeedback

public void updateFeedback()

getInsets

public java.awt.Insets getInsets()

format

public void format(int w,
                   int h)

getPreferredSize

public java.awt.Dimension getPreferredSize()

onVertScroll

public void onVertScroll(HWScrollEvent e)

onHorzScroll

public void onHorzScroll(HWScrollEvent e)