com.miginfocom.calendar.decorators
Class AbstractDateGridDecorator

java.lang.Object
  extended by com.miginfocom.calendar.decorators.AbstractGridDecorator
      extended by com.miginfocom.calendar.decorators.AbstractDateGridDecorator
All Implemented Interfaces:
Decorator, GridDecorator, java.lang.Comparable
Direct Known Subclasses:
DateRangeDecorator, DateSeparatorDecorator, EvenFieldFillDecorator, OccupiedDecorator, OddRowFillDecorator, SelectionGridDecorator

public abstract class AbstractDateGridDecorator
extends AbstractGridDecorator

Same as AbstractGridDecorator but forces the use of a DateGridContainer as the grid container.


Constructor Summary
protected AbstractDateGridDecorator(DateGridContainer gridContainer, int layerIndex)
          Constructor.
 
Method Summary
 DateGrid getDateGrid()
          Returns the date grid or null if it's not available.
 DateGridContainer getDateGridContainer()
          Returns the date grid container or null not available anymore.
 
Methods inherited from class com.miginfocom.calendar.decorators.AbstractGridDecorator
compareTo, dispose, getGrid, getGridContainer, getInvalidEnd, getInvalidStart, getLayerIndex, gridChanged, hasInvalidCells, invalidateCells, processEvent, setCellsValid, setLayerIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.miginfocom.calendar.decorators.Decorator
doPaint
 

Constructor Detail

AbstractDateGridDecorator

protected AbstractDateGridDecorator(DateGridContainer gridContainer,
                                    int layerIndex)
Constructor.

Parameters:
gridContainer - The grid container to decorate. Not null.
layerIndex - A number to indicate the order in which to paint something. Lower if painted before. I.e. under.
Method Detail

getDateGridContainer

public DateGridContainer getDateGridContainer()
Returns the date grid container or null not available anymore.

Returns:
The date grid container

getDateGrid

public DateGrid getDateGrid()
Returns the date grid or null if it's not available.

Returns:
The date grid


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.