public class RadioGroup
extends org.eclipse.swt.widgets.Composite
Constructor and Description |
---|
RadioGroup(org.eclipse.swt.widgets.Composite parent,
EEFWidgetFactory widgetFactory,
int numberOfColumns)
Constructs a new instance of this class given its parent and a style value describing its behavior and
appearance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String string,
int index)
Adds the argument to the receiver's list at the given zero-relative index.
|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Add selection listener.
|
void |
deselectAll()
Deselects all selected items in the receiver's list.
|
void |
dispose() |
int |
getItemCount()
Returns the number of items contained in the receiver's list.
|
int[] |
getSelectionIndex()
Returns the zero-relative index of the item which is currently selected in the receiver's list, or -1 if no item
is selected.
|
void |
remove(int index)
Removes the item from the receiver's list at the given zero-relative index.
|
void |
removeAll()
Removes all of the items from the receiver's list and clear the contents of receiver's text field.
|
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Remove selection listener.
|
void |
select(int index)
Selects the item at the given zero-relative index in the receiver's list.
|
void |
setEnabled(boolean enabled) |
void |
setItem(int index,
java.lang.String string)
Sets the text of the item in the receiver's list at the given zero-relative index to the string argument.
|
void |
setItem(java.lang.String[] items)
Sets the receiver's list to be the given array of 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, isAutoScalable, isEnabled, 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
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public RadioGroup(org.eclipse.swt.widgets.Composite parent, EEFWidgetFactory widgetFactory, int numberOfColumns)
parent
- a composite control which will be the parent of the new instance (cannot be null)widgetFactory
- the widget factorynumberOfColumns
- The number of columns to use to display the candidatespublic void setItem(int index, java.lang.String string)
index
- the index for the itemstring
- the new text for the itempublic void add(java.lang.String string, int index)
string
- the new itemindex
- the index for the itempublic int getItemCount()
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- The selection listenerpublic void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- The selection listenerpublic int[] getSelectionIndex()
public void setItem(java.lang.String[] items)
items
- the array of itemspublic void removeAll()
public void remove(int index)
index
- the index for the itempublic void select(int index)
index
- the index of the item to selectpublic void deselectAll()
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
Widget.dispose()
public void setEnabled(boolean enabled)
setEnabled
in class org.eclipse.swt.widgets.Control
Control.setEnabled(boolean)