Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.treetable
Class TreeTable.DefaultTreeStyleModel

java.lang.Object
  extended by com.sciapp.table.styles.DefaultStyleModel
      extended by com.sciapp.treetable.TreeTable.DefaultTreeStyleModel
All Implemented Interfaces:
StyleModel
Enclosing class:
TreeTable

public class TreeTable.DefaultTreeStyleModel
extends DefaultStyleModel

DefaultTreeStyleModel is the TreeTable's style model. It takes care of applying the styles to both the tree (on the left) and the normal table's component (on the right). If you want to define your own style model, you need to create a subclass of this class and have your applyStyles method call super.applyStyles (at least when the provided column argument is 0).


Field Summary
 
Fields inherited from class com.sciapp.table.styles.DefaultStyleModel
styles
 
Constructor Summary
TreeTable.DefaultTreeStyleModel()
          Creates the default style model for the TreeTable.
 
Method Summary
 void applyStyles(Component c, JTable table, int row, int column)
          Applies the styles currently in the model to the component c.
 
Methods inherited from class com.sciapp.table.styles.DefaultStyleModel
addStyle, clearStyles, getStyle, getStyles, insertStyle, removeStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeTable.DefaultTreeStyleModel

public TreeTable.DefaultTreeStyleModel()
Creates the default style model for the TreeTable.

Method Detail

applyStyles

public void applyStyles(Component c,
                        JTable table,
                        int row,
                        int column)
Applies the styles currently in the model to the component c.

Specified by:
applyStyles in interface StyleModel
Overrides:
applyStyles in class DefaultStyleModel
Parameters:
c - the component that we wish to apply a style to.
table - the associated table
row - the current row of the table
column - the current column of the table

Copyright © 2005 Scientific Applications. All Rights Reserved.