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 ICustomChoicestatic final intThis event occures when the dropdown is about to show.static final intThis event occurs when the selection is set.Fields inherited from class org.eclipse.swt.widgets.Control
handleFields inherited from class org.eclipse.swt.widgets.Widget
nativeZoom -
Constructor Summary
ConstructorsModifierConstructorDescriptionCustomChooserComposite(org.eclipse.swt.widgets.Composite parent, int style) protectedCustomChooserComposite(org.eclipse.swt.widgets.Composite parent, int style, Object choiceValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(int eventType, org.eclipse.swt.widgets.Listener listener) protected abstract ICustomChoicecreateChoice(org.eclipse.swt.widgets.Composite parent, Object choiceValue) intReturns the current selected choicegetItem(int index) intObject[]getItems()protected voidbooleanvoidremoveListener(int eventType, org.eclipse.swt.widgets.Listener listener) voidselect(int index) voidsetChoiceValue(Object iValue) Sets the value as selected choice, and redraws UI.voidsetEnabled(boolean bState) voidMethods 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, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods 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, updateMethods 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, setDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
setEnabledin classorg.eclipse.swt.widgets.Control
-
isEnabled
public boolean isEnabled()- Overrides:
isEnabledin 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:
addListenerin classorg.eclipse.swt.widgets.Widget
-
removeListener
public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener) - Overrides:
removeListenerin classorg.eclipse.swt.widgets.Widget
-
initAccessible
protected void initAccessible()
-