public abstract class CustomChooserComposite
extends org.eclipse.swt.widgets.Composite
Modifier and Type | Field and Description |
---|---|
protected ICustomChoice |
cnvSelection |
static int |
DROPDOWN_EVENT
This event occures when the dropdown is about to show.
|
protected int |
itemHeight |
static int |
SELECTION_EVENT
This event occurs when the selection is set.
|
Modifier | Constructor and Description |
---|---|
|
CustomChooserComposite(org.eclipse.swt.widgets.Composite parent,
int style) |
protected |
CustomChooserComposite(org.eclipse.swt.widgets.Composite parent,
int style,
java.lang.Object choiceValue) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(int eventType,
org.eclipse.swt.widgets.Listener listener) |
protected abstract ICustomChoice |
createChoice(org.eclipse.swt.widgets.Composite parent,
java.lang.Object choiceValue) |
int |
getChoiceIndex() |
java.lang.Object |
getChoiceValue()
Returns the current selected choice
|
java.lang.Object |
getItem(int index) |
int |
getItemCount() |
java.lang.Object[] |
getItems() |
protected void |
initAccessible() |
boolean |
isEnabled() |
void |
removeListener(int eventType,
org.eclipse.swt.widgets.Listener listener) |
void |
select(int index) |
void |
setChoiceValue(java.lang.Object iValue)
Sets the value as selected choice, and redraws UI.
|
void |
setEnabled(boolean bState) |
void |
setItems(java.lang.Object[] items) |
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
public static final int SELECTION_EVENT
public static final int DROPDOWN_EVENT
protected ICustomChoice cnvSelection
protected int itemHeight
public CustomChooserComposite(org.eclipse.swt.widgets.Composite parent, int style)
protected CustomChooserComposite(org.eclipse.swt.widgets.Composite parent, int style, java.lang.Object choiceValue)
protected abstract ICustomChoice createChoice(org.eclipse.swt.widgets.Composite parent, java.lang.Object choiceValue)
public void setItems(java.lang.Object[] items)
public java.lang.Object[] getItems()
public int getItemCount()
public java.lang.Object getItem(int index)
public void setEnabled(boolean bState)
setEnabled
in class org.eclipse.swt.widgets.Control
public boolean isEnabled()
isEnabled
in class org.eclipse.swt.widgets.Control
public void select(int index)
public int getChoiceIndex()
public java.lang.Object getChoiceValue()
public void setChoiceValue(java.lang.Object iValue)
iValue
- value as selected choicepublic void addListener(int eventType, org.eclipse.swt.widgets.Listener listener)
addListener
in class org.eclipse.swt.widgets.Widget
public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener)
removeListener
in class org.eclipse.swt.widgets.Widget
protected void initAccessible()
Copyright © 2008 Actuate Corp. All rights reserved.