com.sciapp.treetable
Class TreeTable.DefaultTreeStyleModel
java.lang.Object
com.sciapp.table.styles.DefaultStyleModel
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).
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeTable.DefaultTreeStyleModel
public TreeTable.DefaultTreeStyleModel()
- Creates the default style model for the TreeTable.
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 tablerow
- the current row of the tablecolumn
- the current column of the table