com.miginfocom.calendar.grid
Interface GridLayoutProvider

All Known Implementing Classes:
ActivityGridLayoutBean, DateAreaBean, DefaultDateArea, GridDimensionLayoutBean, ThemeDateArea

public interface GridLayoutProvider

Interface to implements if you can provide GridDimensionLayouts.

It is sort of a factory interface. It is for instance pluggable into a DefaultDateArea to create custom grid layouts.


Method Summary
 GridDimensionLayout createLayout(Grid grid, int dim)
          Creates a new GridDimensionLayout.
 

Method Detail

createLayout

GridDimensionLayout createLayout(Grid grid,
                                 int dim)
Creates a new GridDimensionLayout.

Parameters:
grid - The grid used to get information.
dim - The dimension. Either Grid.PRIMARY_DIMENSION or Grid.SECONDARY_DIMENSION
Returns:
The layout that will be used to layout a Grid.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.