javax.rad.genui.control
Class UICellFormat

java.lang.Object
  extended by javax.rad.genui.UIResource<ICellFormat>
      extended by javax.rad.genui.control.UICellFormat
All Implemented Interfaces:
ICellFormat, IResource

public class UICellFormat
extends UIResource<ICellFormat>
implements ICellFormat

Platform and technology independent CellFormat. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Constructor Summary
  UICellFormat()
          Constructs a new instance of SwingCellFormat.
protected UICellFormat(ICellFormat pCellFormat)
          Constructs a new instance of SwingCellFormat with the given cell format.
  UICellFormat(IColor pBackground)
          Constructs a new instance of SwingCellFormat.
  UICellFormat(IColor pBackground, IColor pForeground, IFont pFont)
          Constructs a new instance of SwingCellFormat.
  UICellFormat(IColor pBackground, IColor pForeground, IFont pFont, IImage pImage)
          Constructs a new instance of SwingCellFormat.
  UICellFormat(IColor pBackground, IColor pForeground, IFont pFont, IImage pImage, int pLeftIndent)
          Constructs a new instance of SwingCellFormat.
  UICellFormat(IImage pImage)
          Constructs a new instance of SwingCellFormat.
 
Method Summary
 IColor getBackground()
          Gets the background.
 IFont getFont()
          Gets the font.
 IColor getForeground()
          Gets the foreground.
 IImage getImage()
          Gets the image.
 int getLeftIndent()
          Left indent.
 
Methods inherited from class javax.rad.genui.UIResource
equals, getResource, getUIResource, 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

UICellFormat

public UICellFormat()
Constructs a new instance of SwingCellFormat.


UICellFormat

protected UICellFormat(ICellFormat pCellFormat)
Constructs a new instance of SwingCellFormat with the given cell format.

Parameters:
pCellFormat - the cell format

UICellFormat

public UICellFormat(IColor pBackground)
Constructs a new instance of SwingCellFormat.

Parameters:
pBackground - the background of the Cell.

UICellFormat

public UICellFormat(IColor pBackground,
                    IColor pForeground,
                    IFont pFont)
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.

UICellFormat

public UICellFormat(IColor pBackground,
                    IColor pForeground,
                    IFont pFont,
                    IImage pImage)
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.

UICellFormat

public UICellFormat(IColor pBackground,
                    IColor pForeground,
                    IFont pFont,
                    IImage pImage,
                    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.
pLeftIndent - the left indent.

UICellFormat

public UICellFormat(IImage pImage)
Constructs a new instance of SwingCellFormat.

Parameters:
pImage - the image of the Cell.
Method Detail

getBackground

public IColor getBackground()
Gets the background.

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

getForeground

public IColor getForeground()
Gets the foreground.

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

getFont

public IFont getFont()
Gets the font.

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

getImage

public IImage getImage()
Gets the image.

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

getLeftIndent

public int getLeftIndent()
Left indent.

Specified by:
getLeftIndent in interface ICellFormat
Returns:
the left indent.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.