public abstract class OpalItem
extends java.lang.Object
setData methods.| Constructor and Description |
|---|
OpalItem() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.graphics.Color |
getBackground() |
java.lang.Object |
getData() |
java.lang.Object |
getData(java.lang.String key) |
org.eclipse.swt.graphics.Font |
getFont() |
org.eclipse.swt.graphics.Color |
getForeground() |
int |
getHeight() |
org.eclipse.swt.graphics.Image |
getImage() |
java.lang.String |
getText() |
void |
setBackground(org.eclipse.swt.graphics.Color background) |
void |
setData(java.lang.Object data) |
void |
setData(java.lang.String key,
java.lang.Object value)
Store a data associated to a given key in this item
|
void |
setFont(org.eclipse.swt.graphics.Font font) |
void |
setForeground(org.eclipse.swt.graphics.Color foreground) |
void |
setHeight(int height) |
void |
setImage(org.eclipse.swt.graphics.Image image) |
void |
setText(java.lang.String text) |
public org.eclipse.swt.graphics.Color getBackground()
public java.lang.Object getData()
public java.lang.Object getData(java.lang.String key)
key - a keypublic org.eclipse.swt.graphics.Font getFont()
public org.eclipse.swt.graphics.Color getForeground()
public int getHeight()
public org.eclipse.swt.graphics.Image getImage()
public java.lang.String getText()
public void setBackground(org.eclipse.swt.graphics.Color background)
background - set the background color of this itempublic void setFont(org.eclipse.swt.graphics.Font font)
font - set the font of this itempublic void setForeground(org.eclipse.swt.graphics.Color foreground)
foreground - set the foreground color of this itempublic void setHeight(int height)
height - set the height of this itempublic void setImage(org.eclipse.swt.graphics.Image image)
image - set the image of this itempublic void setText(java.lang.String text)
text - set the text of this itempublic void setData(java.lang.Object data)
data - set the data stored in this itempublic void setData(java.lang.String key,
java.lang.Object value)
key - keyvalue - value associated to this key