Class DLItem
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.commons.OpalItem
-
- org.eclipse.nebula.widgets.opal.duallist.DLItem
-
public class DLItem extends OpalItem
Instances of this class represents items manipulated by this DualList widget
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDLItem.LAST_ACTION
-
Field Summary
Fields Modifier and Type Field Description private DLItem.LAST_ACTIONlastAction
-
Constructor Summary
Constructors Constructor Description DLItem(java.lang.String text)ConstructorDLItem(java.lang.String text, org.eclipse.swt.graphics.Image image)ConstructorDLItem(java.lang.String text, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Color foregroundColor, org.eclipse.swt.graphics.Color backgroundColor)ConstructorDLItem(java.lang.String text, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Font font)ConstructorDLItem(java.lang.String text, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Font font, org.eclipse.swt.graphics.Color foregroundColor)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()DLItem.LAST_ACTIONgetLastAction()voidsetHeight(int height)voidsetLastAction(DLItem.LAST_ACTION lastAction)-
Methods inherited from class org.eclipse.nebula.widgets.opal.commons.OpalItem
getBackground, getData, getData, getFont, getForeground, getImage, getText, setBackground, setData, setData, setFont, setForeground, setImage, setText
-
-
-
-
Field Detail
-
lastAction
private DLItem.LAST_ACTION lastAction
-
-
Constructor Detail
-
DLItem
public DLItem(java.lang.String text)
Constructor- Parameters:
text- the text displayed in the DualList widget for this item
-
DLItem
public DLItem(java.lang.String text, org.eclipse.swt.graphics.Image image)Constructor- Parameters:
text- the text displayed in the DualList widget for this itemimage- the image displayed in the DualList widget for this item
-
DLItem
public DLItem(java.lang.String text, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Font font, org.eclipse.swt.graphics.Color foregroundColor)Constructor- Parameters:
text- the text displayed in the DualList widget for this itemimage- the image displayed in the DualList widget for this itemfont- the font displayed in the DualList widget for this itemforegroundColor- the foreground color displayed in the DualList widget for this item
-
DLItem
public DLItem(java.lang.String text, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Color foregroundColor, org.eclipse.swt.graphics.Color backgroundColor)Constructor- Parameters:
text- the text displayed in the DualList widget for this itemimage- the image displayed in the DualList widget for this itemforegroundColor- the foreground color displayed in the DualList widget for this itembackgroundColor- the background color displayed in the DualList widget for this item
-
DLItem
public DLItem(java.lang.String text, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Font font)Constructor- Parameters:
text- the text displayed in the DualList widget for this itemimage- the image displayed in the DualList widget for this itemfont- the font displayed in the DualList widget for this item
-
-
Method Detail
-
getHeight
public int getHeight()
- Overrides:
getHeightin classOpalItem- Returns:
- the height of the item
- See Also:
OpalItem.getHeight()
-
setHeight
public void setHeight(int height)
- Overrides:
setHeightin classOpalItem- Parameters:
height- set the height of this item- See Also:
OpalItem.setHeight(int)
-
getLastAction
public DLItem.LAST_ACTION getLastAction()
- Returns:
- the last action (NONE, SELECTION, DESELECTION)
-
setLastAction
public void setLastAction(DLItem.LAST_ACTION lastAction)
- Parameters:
lastAction- the last action performed on this DLItem
-
-