|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.debug.mi.internal.ui.dialogfields.DialogField
org.eclipse.cdt.debug.mi.internal.ui.dialogfields.SelectionButtonDialogFieldGroup
public class SelectionButtonDialogFieldGroup
Dialog field describing a group with buttons (Checkboxes, radio buttons..)
Constructor Summary | |
---|---|
SelectionButtonDialogFieldGroup(int buttonsStyle,
java.lang.String[] buttonNames,
int nColumns)
Creates a group without border. |
|
SelectionButtonDialogFieldGroup(int buttonsStyle,
java.lang.String[] buttonNames,
int nColumns,
int borderStyle)
Creates a group with border (label in border). |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control[] |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
Creates all controls of the dialog field and fills it to a composite. |
void |
enableSelectionButton(int index,
boolean enable)
Sets the enable state of a button contained in the group. |
int |
getNumberOfControls()
Returns the number of columns of the dialog field. |
org.eclipse.swt.widgets.Button |
getSelectionButton(int index)
Returns a button from the group or null if not yet created. |
org.eclipse.swt.widgets.Composite |
getSelectionButtonsGroup(org.eclipse.swt.widgets.Composite parent)
Returns the group widget. |
boolean |
isSelected(int index)
Returns the selection state of a button contained in the group. |
void |
setSelection(int index,
boolean selected)
Sets the selection state of a button contained in the group. |
Methods inherited from class org.eclipse.cdt.debug.mi.internal.ui.dialogfields.DialogField |
---|
createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, isEnabled, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setFocus, setLabelText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionButtonDialogFieldGroup(int buttonsStyle, java.lang.String[] buttonNames, int nColumns)
public SelectionButtonDialogFieldGroup(int buttonsStyle, java.lang.String[] buttonNames, int nColumns, int borderStyle)
Group
Method Detail |
---|
public org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int nColumns)
DialogField
MGridLayout
as
layout.
The dialog field will adjust its controls' spans to the number of columns given.
To be reimplemented by dialog field implementors.
doFillIntoGrid
in class DialogField
public int getNumberOfControls()
DialogField
getNumberOfControls
in class DialogField
public org.eclipse.swt.widgets.Composite getSelectionButtonsGroup(org.eclipse.swt.widgets.Composite parent)
The
- parent composite when called the first time, or null
after.public org.eclipse.swt.widgets.Button getSelectionButton(int index)
null
if not yet created.
public boolean isSelected(int index)
The
- index of the buttonpublic void setSelection(int index, boolean selected)
public void enableSelectionButton(int index, boolean enable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |