sidekick
Class ExpansionModel

java.lang.Object
  extended by sidekick.ExpansionModel

public class ExpansionModel
extends java.lang.Object

An expansion model for trees. This essentially just wraps a list of integers that represent the row numbers in the tree that should be expanded. It is not necessary to use this model, but it is convenient when creating the list of row numbers. The value returned by getModel is suitable for setting in the expansionModel field in SideKickParsedData.


Constructor Summary
ExpansionModel()
           
 
Method Summary
 void add()
          Call this for each row in the tree that should be visible and expanded.
 java.util.List<java.lang.Integer> getModel()
           
 int getRow()
           
 void inc()
          Call this for each row in the tree that should be visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpansionModel

public ExpansionModel()
Method Detail

getModel

public java.util.List<java.lang.Integer> getModel()
Returns:
The expansion model, set this in SideKickParsedData.

add

public void add()
Call this for each row in the tree that should be visible and expanded. This will add the current row number to the model and automatically inc().


inc

public void inc()
Call this for each row in the tree that should be visible.


getRow

public int getRow()
Returns:
The current row value.