com.miginfocom.calendar.category
Class CategorySubRowCreator

java.lang.Object
  extended by com.miginfocom.calendar.category.CategorySubRowCreator
All Implemented Interfaces:
SubRowCreator

public class CategorySubRowCreator
extends java.lang.Object
implements SubRowCreator

A creator of subrows that creates them after the tree that a Category is at the top of.

Will not create category sub rows for categories that have the Category.PROP_IS_HIDDEN set to true since v5.5.16.


Constructor Summary
CategorySubRowCreator(Category[] roots, boolean addRoots)
          Constructor.
CategorySubRowCreator(Category root, boolean addRoot)
          Constructor.
CategorySubRowCreator(java.lang.Object[] rootIDs, boolean addRoots)
          Constructor.
 
Method Summary
 void createSubRows(GridRow row, GridLineProvider glProvider)
          Creates the sub rows, all levels, for row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategorySubRowCreator

public CategorySubRowCreator(Category root,
                             boolean addRoot)
Constructor.

Parameters:
root - The root category to create the first row for (see addRoot). It's children will be the level zero (or one) sub rows and so on.
addRoot - If the root category should be added as a single row. If false the first level will be the direct children of root.

CategorySubRowCreator

public CategorySubRowCreator(Category[] roots,
                             boolean addRoots)
Constructor.

Parameters:
roots - The root categories to create the first row for (see addRoot). Their's children will be the level zero (or one) sub rows and so on.
addRoots - If the root categories should be added. If false the first level will be the direct children of roots.

CategorySubRowCreator

public CategorySubRowCreator(java.lang.Object[] rootIDs,
                             boolean addRoots)
Constructor.

Parameters:
rootIDs - The root categories IDs to create the first row for (see addRoot). Their's children will be the level zero (or one) sub rows and so on.
addRoots - If the root categories should be added. If false the first level will be the direct children of roots.
Method Detail

createSubRows

public void createSubRows(GridRow row,
                          GridLineProvider glProvider)
Description copied from interface: SubRowCreator
Creates the sub rows, all levels, for row. The rows can create a fill tree structure and optionally be Filters. For instance this is how categoies are filtered to be on different rows.

Specified by:
createSubRows in interface SubRowCreator
Parameters:
row - The main row that can be considered to be the root. Rows will be added to this row.
glProvider - The provider of the grid lines.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.