|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.misc.PropertyObservableBase
de.jaret.util.ui.table.renderer.DefaultCellStyle
public class DefaultCellStyle
Default implementation of ICellStyle.
| Field Summary | |
|---|---|
protected org.eclipse.swt.graphics.RGB |
_backgroundColor
background color as RGB (no color ressource here). |
protected org.eclipse.swt.graphics.RGB |
_borderColor
border color as RGB (no color ressource here). |
protected IBorderConfiguration |
_borderConfiguration
the border configuraion. |
protected org.eclipse.swt.graphics.FontData |
_font
the font data to use (no font ressource here). |
protected org.eclipse.swt.graphics.RGB |
_foregroundColor
foreground color as RGB (no color ressource here). |
protected ITableViewState.HAlignment |
_hAlignment
horizontal alignement. |
protected boolean |
_multiLine
should allow multinline. |
protected ITableViewState.VAlignment |
_vAlignment
vertical alignment. |
| Fields inherited from class de.jaret.util.misc.PropertyObservableBase |
|---|
_propertyChangeSupport |
| Fields inherited from interface de.jaret.util.ui.table.renderer.ICellStyle |
|---|
BACKGROUNDCOLOR, BORDERCOLOR, BORDERCONFIGURATION, FONT, FOREGROUNDCOLOR, HORIZONTAL_ALIGNMENT, VERTICAL_ALIGNMENT |
| Constructor Summary | |
|---|---|
DefaultCellStyle(org.eclipse.swt.graphics.RGB foregroundColor,
org.eclipse.swt.graphics.RGB backgroundColor,
IBorderConfiguration borderConfiguration,
org.eclipse.swt.graphics.FontData font)
Construct a new default cell style. |
|
| Method Summary | |
|---|---|
DefaultCellStyle |
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 backgroundColor)
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 font)
Set the font. |
void |
setForegroundColor(org.eclipse.swt.graphics.RGB foregroundColor)
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 class de.jaret.util.misc.PropertyObservableBase |
|---|
addPropertyChangeListener, firePropertyChange, isRealModification, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.jaret.util.misc.PropertyObservable |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected IBorderConfiguration _borderConfiguration
protected org.eclipse.swt.graphics.RGB _foregroundColor
protected org.eclipse.swt.graphics.RGB _backgroundColor
protected org.eclipse.swt.graphics.RGB _borderColor
protected org.eclipse.swt.graphics.FontData _font
protected ITableViewState.HAlignment _hAlignment
protected ITableViewState.VAlignment _vAlignment
protected boolean _multiLine
| Constructor Detail |
|---|
public DefaultCellStyle(org.eclipse.swt.graphics.RGB foregroundColor,
org.eclipse.swt.graphics.RGB backgroundColor,
IBorderConfiguration borderConfiguration,
org.eclipse.swt.graphics.FontData font)
foregroundColor - forgeroundbackgroundColor - backgroundborderConfiguration - border configfont - fontdata| Method Detail |
|---|
public DefaultCellStyle copy()
copy in interface ICellStylepublic org.eclipse.swt.graphics.RGB getBackgroundColor()
ICellStyle
getBackgroundColor in interface ICellStylepublic void setBackgroundColor(org.eclipse.swt.graphics.RGB backgroundColor)
ICellStyle
setBackgroundColor in interface ICellStylebackgroundColor - The backgroundColor to set.public org.eclipse.swt.graphics.RGB getBorderColor()
ICellStyle
getBorderColor in interface ICellStylepublic void setBorderColor(org.eclipse.swt.graphics.RGB borderColor)
setBorderColor in interface ICellStyleborderColor - border colorpublic IBorderConfiguration getBorderConfiguration()
ICellStyle
getBorderConfiguration in interface ICellStylepublic void setBorderConfiguration(IBorderConfiguration borderConfiguration)
setBorderConfiguration in interface ICellStyleborderConfiguration - the onfiguration to usepublic org.eclipse.swt.graphics.FontData getFont()
ICellStyle
getFont in interface ICellStylepublic void setFont(org.eclipse.swt.graphics.FontData font)
ICellStyle
setFont in interface ICellStylefont - The font to set.public org.eclipse.swt.graphics.RGB getForegroundColor()
ICellStyle
getForegroundColor in interface ICellStylepublic void setForegroundColor(org.eclipse.swt.graphics.RGB foregroundColor)
ICellStyle
setForegroundColor in interface ICellStyleforegroundColor - The foregroundColor to set.public ITableViewState.HAlignment getHorizontalAlignment()
getHorizontalAlignment in interface ICellStylepublic void setHorizontalAlignment(ITableViewState.HAlignment alignment)
setHorizontalAlignment in interface ICellStylealignment - the horizontal alignmentpublic ITableViewState.VAlignment getVerticalAlignment()
getVerticalAlignment in interface ICellStylepublic void setVerticalAlignment(ITableViewState.VAlignment alignment)
setVerticalAlignment in interface ICellStylealignment - the vertical alignmentpublic boolean getMultiLine()
getMultiLine in interface ICellStylepublic void setMultiLine(boolean multiLine)
setMultiLine in interface ICellStylemultiLine - The multiLine to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||