de.jaret.util.ui.table.renderer
Interface ICellStyle

All Superinterfaces:
de.jaret.util.misc.PropertyObservable
All Known Implementing Classes:
DefaultCellStyle

public interface ICellStyle
extends de.jaret.util.misc.PropertyObservable

Interface describing the style of a cell.

Version:
$Id: ICellStyle.java 347 2007-04-07 15:01:10Z olk $
Author:
Peter Kliem

Field Summary
static java.lang.String BACKGROUNDCOLOR
          property name.
static java.lang.String BORDERCOLOR
          property name.
static java.lang.String BORDERCONFIGURATION
          property name.
static java.lang.String FONT
          property name.
static java.lang.String FOREGROUNDCOLOR
          property name.
static java.lang.String HORIZONTAL_ALIGNMENT
          property name.
static java.lang.String VERTICAL_ALIGNMENT
          property name.
 
Method Summary
 ICellStyle copy()
          Copy the cell style.
 org.eclipse.swt.graphics.RGB getBackgroundColor()
          Retrieve the background color.
 org.eclipse.swt.graphics.RGB getBorderColor()
          Retrieve the border color.
 IBorderConfiguration getBorderConfiguration()
          Retrieve the border configuration.
 org.eclipse.swt.graphics.FontData getFont()
          Retrieve the font.
 org.eclipse.swt.graphics.RGB getForegroundColor()
          Retrieve the foreground color.
 ITableViewState.HAlignment getHorizontalAlignment()
          Retrieve the horizontal alignment.
 boolean getMultiLine()
           
 ITableViewState.VAlignment getVerticalAlignment()
          Retrieve the vertical alignment.
 void setBackgroundColor(org.eclipse.swt.graphics.RGB background)
          Set the background color.
 void setBorderColor(org.eclipse.swt.graphics.RGB bordercolor)
          Set the border color.
 void setBorderConfiguration(IBorderConfiguration borderConfiguration)
          Set the border configuration.
 void setFont(org.eclipse.swt.graphics.FontData fontdata)
          Set the font.
 void setForegroundColor(org.eclipse.swt.graphics.RGB foreground)
          Set the foreground color.
 void setHorizontalAlignment(ITableViewState.HAlignment alignment)
          Set the horizontal alignment.
 void setMultiLine(boolean multiLine)
           
 void setVerticalAlignment(ITableViewState.VAlignment alignment)
          Set the vertical alignemnt.
 
Methods inherited from interface de.jaret.util.misc.PropertyObservable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

HORIZONTAL_ALIGNMENT

static final java.lang.String HORIZONTAL_ALIGNMENT
property name.

See Also:
Constant Field Values

VERTICAL_ALIGNMENT

static final java.lang.String VERTICAL_ALIGNMENT
property name.

See Also:
Constant Field Values

BACKGROUNDCOLOR

static final java.lang.String BACKGROUNDCOLOR
property name.

See Also:
Constant Field Values

FOREGROUNDCOLOR

static final java.lang.String FOREGROUNDCOLOR
property name.

See Also:
Constant Field Values

FONT

static final java.lang.String FONT
property name.

See Also:
Constant Field Values

BORDERCONFIGURATION

static final java.lang.String BORDERCONFIGURATION
property name.

See Also:
Constant Field Values

BORDERCOLOR

static final java.lang.String BORDERCOLOR
property name.

See Also:
Constant Field Values
Method Detail

getBorderConfiguration

IBorderConfiguration getBorderConfiguration()
Retrieve the border configuration.

Returns:
the border configuration

setBorderConfiguration

void setBorderConfiguration(IBorderConfiguration borderConfiguration)
Set the border configuration.

Parameters:
borderConfiguration - the onfiguration to use

getBorderColor

org.eclipse.swt.graphics.RGB getBorderColor()
Retrieve the border color.

Returns:
border color

setBorderColor

void setBorderColor(org.eclipse.swt.graphics.RGB bordercolor)
Set the border color.

Parameters:
bordercolor - border color

getForegroundColor

org.eclipse.swt.graphics.RGB getForegroundColor()
Retrieve the foreground color.

Returns:
the foreground color

setForegroundColor

void setForegroundColor(org.eclipse.swt.graphics.RGB foreground)
Set the foreground color.

Parameters:
foreground - the fore ground colro to use

getBackgroundColor

org.eclipse.swt.graphics.RGB getBackgroundColor()
Retrieve the background color.

Returns:
the background color

setBackgroundColor

void setBackgroundColor(org.eclipse.swt.graphics.RGB background)
Set the background color.

Parameters:
background - the color to use

getFont

org.eclipse.swt.graphics.FontData getFont()
Retrieve the font.

Returns:
the font data for the font to use

setFont

void setFont(org.eclipse.swt.graphics.FontData fontdata)
Set the font.

Parameters:
fontdata - font data of the font

getHorizontalAlignment

ITableViewState.HAlignment getHorizontalAlignment()
Retrieve the horizontal alignment.

Returns:
the horizontal alignment

setHorizontalAlignment

void setHorizontalAlignment(ITableViewState.HAlignment alignment)
Set the horizontal alignment.

Parameters:
alignment - the horizontal alignment

getVerticalAlignment

ITableViewState.VAlignment getVerticalAlignment()
Retrieve the vertical alignment.

Returns:
the vertical alignment

setVerticalAlignment

void setVerticalAlignment(ITableViewState.VAlignment alignment)
Set the vertical alignemnt.

Parameters:
alignment - the vertical alignment

getMultiLine

boolean getMultiLine()

setMultiLine

void setMultiLine(boolean multiLine)

copy

ICellStyle copy()
Copy the cell style.

Returns:
a copy of the cell style


Copyright © 2012. All Rights Reserved.