com.sybase.uep.bobclient.controls.celltable
Class CellAttributeFactory

java.lang.Object
  extended by com.sybase.uep.bobclient.controls.celltable.CellAttributeFactory

public class CellAttributeFactory
extends java.lang.Object

Factory class to create or reset values of a cell attribute

Author:
congchen

Method Summary
static CellAttributeFactory getInstance()
           
static CellAttributeFactory getInstance(CellTable celltable, int cellIndex)
          Gets a CellAttributeFactory instance
 IControlXYDraw newCellAttribute(AbstractCellAttributeConfig attrConfig)
          Creates a new cell attribute by the attribute configuration
 IControlXYDraw resetCellAttribute(AbstractCellAttributeConfig attrConfig, IControlXYDraw cellAttribute)
          Resets values of a cell attribute by an attribute configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CellAttributeFactory getInstance()

getInstance

public static CellAttributeFactory getInstance(CellTable celltable,
                                               int cellIndex)
Gets a CellAttributeFactory instance

Parameters:
celltable - - CellTable instance that the attribute is in.
cellIndex - - index of the Cell that the attribute is in.
Returns:
CellAttributeFactory

newCellAttribute

public IControlXYDraw newCellAttribute(AbstractCellAttributeConfig attrConfig)
Creates a new cell attribute by the attribute configuration

Parameters:
attrConfig - - configuration of the cell attribute
Returns:
IDraw

resetCellAttribute

public IControlXYDraw resetCellAttribute(AbstractCellAttributeConfig attrConfig,
                                         IControlXYDraw cellAttribute)
Resets values of a cell attribute by an attribute configuration

Parameters:
attrConfig - - a cell attribute configuration
cellAttribute - - the cell attribute that is reset
Returns:
IDraw