Class CustomChooserComposite
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.birt.core.ui.swt.custom.CustomChooserComposite
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
- Direct Known Subclasses:
TextCombo
public abstract class CustomChooserComposite
extends org.eclipse.swt.widgets.Composite
CustomChooserComposite
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ICustomChoice
static final int
This event occures when the dropdown is about to show.static final int
This event occurs when the selection is set.Fields inherited from class org.eclipse.swt.widgets.Control
handle
Fields inherited from class org.eclipse.swt.widgets.Widget
nativeZoom
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCustomChooserComposite
(org.eclipse.swt.widgets.Composite parent, int style) protected
CustomChooserComposite
(org.eclipse.swt.widgets.Composite parent, int style, Object choiceValue) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(int eventType, org.eclipse.swt.widgets.Listener listener) protected abstract ICustomChoice
createChoice
(org.eclipse.swt.widgets.Composite parent, Object choiceValue) int
Returns the current selected choicegetItem
(int index) int
Object[]
getItems()
protected void
boolean
void
removeListener
(int eventType, org.eclipse.swt.widgets.Listener listener) void
select
(int index) void
setChoiceValue
(Object iValue) Sets the value as selected choice, and redraws UI.void
setEnabled
(boolean bState) void
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsMode
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, 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, requestLayout, 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
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeTypedListener, reskin, setData, setData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.swt.graphics.Drawable
isAutoScalable
-
Field Details
-
SELECTION_EVENT
public static final int SELECTION_EVENTThis event occurs when the selection is set.- See Also:
-
DROPDOWN_EVENT
public static final int DROPDOWN_EVENTThis event occures when the dropdown is about to show.- See Also:
-
cnvSelection
-
-
Constructor Details
-
CustomChooserComposite
public CustomChooserComposite(org.eclipse.swt.widgets.Composite parent, int style) -
CustomChooserComposite
protected CustomChooserComposite(org.eclipse.swt.widgets.Composite parent, int style, Object choiceValue)
-
-
Method Details
-
createChoice
protected abstract ICustomChoice createChoice(org.eclipse.swt.widgets.Composite parent, Object choiceValue) -
setItems
-
getItems
-
getItemCount
public int getItemCount() -
getItem
-
setEnabled
public void setEnabled(boolean bState) - Overrides:
setEnabled
in classorg.eclipse.swt.widgets.Control
-
isEnabled
public boolean isEnabled()- Overrides:
isEnabled
in classorg.eclipse.swt.widgets.Control
-
select
public void select(int index) -
getChoiceIndex
public int getChoiceIndex() -
getChoiceValue
Returns the current selected choice -
setChoiceValue
Sets the value as selected choice, and redraws UI.- Parameters:
iValue
- value as selected choice
-
addListener
public void addListener(int eventType, org.eclipse.swt.widgets.Listener listener) - Overrides:
addListener
in classorg.eclipse.swt.widgets.Widget
-
removeListener
public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener) - Overrides:
removeListener
in classorg.eclipse.swt.widgets.Widget
-
initAccessible
protected void initAccessible()
-