com.cc.framework.ui.painter.def.col
Class ColumnPainterFactory

java.lang.Object
  extended bycom.cc.framework.ui.painter.def.col.ColumnPainterFactory

public abstract class ColumnPainterFactory
extends java.lang.Object

Factory for ColumnPainters. The painter instances are shared.

Version:
$Revision: 1.11 $
Author:
Harald Schulz

Field Summary
private static ColumnPainter defpainter
          The default column painter instance
private static java.util.Map painters
          Column painters instances
 
Constructor Summary
private ColumnPainterFactory()
          Constructor
 
Method Summary
static ColumnPainter createPainter(ColumnDesignModel column)
          This method creates a concrete column painter for a given column object.
static void registerColumnPainter(java.lang.Class columnClass, ColumnPainter painter)
          Registers a column painter for the given column class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defpainter

private static ColumnPainter defpainter
The default column painter instance


painters

private static java.util.Map painters
Column painters instances

Constructor Detail

ColumnPainterFactory

private ColumnPainterFactory()
Constructor

Method Detail

registerColumnPainter

public static void registerColumnPainter(java.lang.Class columnClass,
                                         ColumnPainter painter)
Registers a column painter for the given column class

Parameters:
columnClass - the columns class
painter - Column painter instance

createPainter

public static ColumnPainter createPainter(ColumnDesignModel column)
This method creates a concrete column painter for a given column object.

Parameters:
column - the concrete column object
Returns:
a painter instance for the concrete column


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.