com.sibvisions.rad.ui.swing.impl.control
Class SwingCellFormat

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<CellFormat>
      extended by com.sibvisions.rad.ui.swing.impl.control.SwingCellFormat
All Implemented Interfaces:
ICellFormat, IResource

public class SwingCellFormat
extends AwtResource<CellFormat>
implements ICellFormat

The SwingCellFormat is the ICellFormat implementation for swing.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Constructor Summary
SwingCellFormat(IColor pBackground, IColor pForeground, IFont pFont, IImage pImage, Style pStyle, int pLeftIndent)
          Constructs a new instance of SwingCellFormat.
 
Method Summary
 IColor getBackground()
          Gets the background IColor.
 IFont getFont()
          Gets the IFont.
 IColor getForeground()
          Gets the foreground IColor.
 IImage getImage()
          Gets the IImage.
 int getLeftIndent()
          Gets the left indentation value.
 Style getStyle()
          Gets the style definition.
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
equals, getResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

SwingCellFormat

public SwingCellFormat(IColor pBackground,
                       IColor pForeground,
                       IFont pFont,
                       IImage pImage,
                       Style pStyle,
                       int pLeftIndent)
Constructs a new instance of SwingCellFormat.

Parameters:
pBackground - the background of the Cell.
pForeground - the foreground of the Cell.
pFont - the font of the Cell.
pImage - the image of the Cell.
pStyle - the style definition of the Cell.
pLeftIndent - the left indent.
Method Detail

getBackground

public IColor getBackground()
Gets the background IColor.

Specified by:
getBackground in interface ICellFormat
Returns:
the background IColor.

getForeground

public IColor getForeground()
Gets the foreground IColor.

Specified by:
getForeground in interface ICellFormat
Returns:
the foreground IColor.

getFont

public IFont getFont()
Gets the IFont.

Specified by:
getFont in interface ICellFormat
Returns:
the IFont.

getImage

public IImage getImage()
Gets the IImage.

Specified by:
getImage in interface ICellFormat
Returns:
the IImage.

getStyle

public Style getStyle()
Gets the style definition.

Specified by:
getStyle in interface ICellFormat
Returns:
the style definition.

getLeftIndent

public int getLeftIndent()
Gets the left indentation value.

Specified by:
getLeftIndent in interface ICellFormat
Returns:
the left indentation value.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.