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 class
DLItem.LAST_ACTION
-
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
Modifier and Type Method Description int
getHeight()
DLItem.LAST_ACTION
getLastAction()
void
setHeight(int height)
DLItem
setLastAction(DLItem.LAST_ACTION lastAction)
DLItem
setSelected(boolean selection)
Change the selection state of this itemMethods inherited from class org.eclipse.nebula.widgets.opal.commons.OpalItem
getBackground, getData, getData, getFont, getForeground, getImage, getText, setBackground, setData, setData, setFont, setForeground, setImage, setText
-
Constructor Details
-
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 Details
-
getHeight
public int getHeight()- Overrides:
getHeight
in classOpalItem
- Returns:
- the height of the item
- See Also:
OpalItem.getHeight()
-
setHeight
public void setHeight(int height)- Overrides:
setHeight
in classOpalItem
- Parameters:
height
- set the height of this item- See Also:
OpalItem.setHeight(int)
-
getLastAction
- Returns:
- the last action (NONE, SELECTION, DESELECTION)
-
setLastAction
- Parameters:
lastAction
- the last action performed on this DLItem- Returns:
-
setSelected
Change the selection state of this item- Parameters:
selection
-- Returns:
-