|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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
- fontdataMethod Detail |
---|
public DefaultCellStyle copy()
copy
in interface ICellStyle
public org.eclipse.swt.graphics.RGB getBackgroundColor()
ICellStyle
getBackgroundColor
in interface ICellStyle
public void setBackgroundColor(org.eclipse.swt.graphics.RGB backgroundColor)
ICellStyle
setBackgroundColor
in interface ICellStyle
backgroundColor
- The backgroundColor to set.public org.eclipse.swt.graphics.RGB getBorderColor()
ICellStyle
getBorderColor
in interface ICellStyle
public void setBorderColor(org.eclipse.swt.graphics.RGB borderColor)
setBorderColor
in interface ICellStyle
borderColor
- border colorpublic IBorderConfiguration getBorderConfiguration()
ICellStyle
getBorderConfiguration
in interface ICellStyle
public void setBorderConfiguration(IBorderConfiguration borderConfiguration)
setBorderConfiguration
in interface ICellStyle
borderConfiguration
- the onfiguration to usepublic org.eclipse.swt.graphics.FontData getFont()
ICellStyle
getFont
in interface ICellStyle
public void setFont(org.eclipse.swt.graphics.FontData font)
ICellStyle
setFont
in interface ICellStyle
font
- The font to set.public org.eclipse.swt.graphics.RGB getForegroundColor()
ICellStyle
getForegroundColor
in interface ICellStyle
public void setForegroundColor(org.eclipse.swt.graphics.RGB foregroundColor)
ICellStyle
setForegroundColor
in interface ICellStyle
foregroundColor
- The foregroundColor to set.public ITableViewState.HAlignment getHorizontalAlignment()
getHorizontalAlignment
in interface ICellStyle
public void setHorizontalAlignment(ITableViewState.HAlignment alignment)
setHorizontalAlignment
in interface ICellStyle
alignment
- the horizontal alignmentpublic ITableViewState.VAlignment getVerticalAlignment()
getVerticalAlignment
in interface ICellStyle
public void setVerticalAlignment(ITableViewState.VAlignment alignment)
setVerticalAlignment
in interface ICellStyle
alignment
- the vertical alignmentpublic boolean getMultiLine()
getMultiLine
in interface ICellStyle
public void setMultiLine(boolean multiLine)
setMultiLine
in interface ICellStyle
multiLine
- The multiLine to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |