|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WidgetFactory
A widget factory is responsible for creating an SWT widget based on the right style. Some style shows the widgets differently, for instance, the flat style shows the widgets with less borders.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Method Summary | |
---|---|
org.eclipse.swt.widgets.Button |
createButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new regular button. |
org.eclipse.swt.custom.CCombo |
createCCombo(org.eclipse.swt.widgets.Composite parent)
Creates a new non-editable custom Combo . |
org.eclipse.swt.widgets.Button |
createCheckBox(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new check box button. |
org.eclipse.swt.widgets.Combo |
createCombo(org.eclipse.swt.widgets.Composite parent)
Creates a new non-editable Combo . |
org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parent)
Creates a new container. |
org.eclipse.swt.custom.CCombo |
createEditableCCombo(org.eclipse.swt.widgets.Composite parent)
Creates a new editable custom CCombo . |
org.eclipse.swt.widgets.Combo |
createEditableCombo(org.eclipse.swt.widgets.Composite parent)
Creates a new editable Combo . |
org.eclipse.swt.widgets.Group |
createGroup(org.eclipse.swt.widgets.Composite parent,
java.lang.String title)
Creates a new titled pane (group box). |
org.eclipse.ui.forms.widgets.Hyperlink |
createHyperlink(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new label that is shown as a hyperlink. |
org.eclipse.swt.widgets.Label |
createLabel(org.eclipse.swt.widgets.Composite container,
java.lang.String labelText)
Creates a new label. |
org.eclipse.swt.widgets.List |
createList(org.eclipse.swt.widgets.Composite container,
int style)
Creates a new list. |
org.eclipse.ui.forms.widgets.FormText |
createMultiLineLabel(org.eclipse.swt.widgets.Composite container,
java.lang.String labelText)
Creates a new label that can be wrapped on multiple lines. |
org.eclipse.swt.widgets.Text |
createMultiLineText(org.eclipse.swt.widgets.Composite parent)
Creates a new editable text area. |
org.eclipse.swt.widgets.Text |
createPasswordText(org.eclipse.swt.widgets.Composite container)
Creates a new editable text field that handles password. |
org.eclipse.swt.widgets.Button |
createPushButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new push button (toggle between selected and unselected). |
org.eclipse.swt.widgets.Button |
createRadioButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new radio button. |
org.eclipse.ui.forms.widgets.Section |
createSection(org.eclipse.swt.widgets.Composite parent,
int style)
Creates a new section, which is a collapsable pane with a title bar. |
org.eclipse.swt.widgets.Spinner |
createSpinner(org.eclipse.swt.widgets.Composite parent)
Creates a new spinner. |
org.eclipse.swt.widgets.Table |
createTable(org.eclipse.swt.widgets.Composite parent,
int style)
Creates a new table. |
org.eclipse.swt.widgets.Text |
createText(org.eclipse.swt.widgets.Composite parent)
Creates a new editable text field. |
org.eclipse.swt.widgets.Button |
createTriStateCheckBox(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a new tri-state check box. |
Method Detail |
---|
org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- The parent containertext
- The button's text
Button
org.eclipse.swt.custom.CCombo createCCombo(org.eclipse.swt.widgets.Composite parent)
Combo
.
parent
- The parent container
CCombo
org.eclipse.swt.widgets.Button createCheckBox(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- The parent containertext
- The button's text
Button
org.eclipse.swt.widgets.Combo createCombo(org.eclipse.swt.widgets.Composite parent)
Combo
.
parent
- The parent container
Combo
org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent)
parent
- The parent container
Composite
org.eclipse.swt.custom.CCombo createEditableCCombo(org.eclipse.swt.widgets.Composite parent)
CCombo
.
parent
- The parent container
CCombo
org.eclipse.swt.widgets.Combo createEditableCombo(org.eclipse.swt.widgets.Composite parent)
Combo
.
parent
- The parent container
Combo
org.eclipse.swt.widgets.Group createGroup(org.eclipse.swt.widgets.Composite parent, java.lang.String title)
parent
- The parent containertitle
- The group pane's title
Group
org.eclipse.ui.forms.widgets.Hyperlink createHyperlink(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- The parent containertext
- The label's text
Hyperlink
org.eclipse.swt.widgets.Label createLabel(org.eclipse.swt.widgets.Composite container, java.lang.String labelText)
container
- The parent containerlabelText
- The label's text
Label
org.eclipse.swt.widgets.List createList(org.eclipse.swt.widgets.Composite container, int style)
container
- The parent containerstyle
- The style is usually to tell what type of selection
(SWT.MULTI
or SWT.SINGLE
)
Label
org.eclipse.ui.forms.widgets.FormText createMultiLineLabel(org.eclipse.swt.widgets.Composite container, java.lang.String labelText)
container
- The parent containerlabelText
- The label's text
FormText
org.eclipse.swt.widgets.Text createMultiLineText(org.eclipse.swt.widgets.Composite parent)
parent
- The parent containerparent
- The number of lines the text area should display
Text
org.eclipse.swt.widgets.Text createPasswordText(org.eclipse.swt.widgets.Composite container)
container
- The parent container
Text
org.eclipse.swt.widgets.Button createPushButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- The parent containertext
- The button's text
Button
org.eclipse.swt.widgets.Button createRadioButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- The parent containertext
- The button's text
Button
org.eclipse.ui.forms.widgets.Section createSection(org.eclipse.swt.widgets.Composite parent, int style)
parent
- The parent containerstyle
- The style of the title bar, which can be
ExpandableComposite.TWISTIE
and
ExpandableComposite.TITLE_BAR
Section
org.eclipse.swt.widgets.Spinner createSpinner(org.eclipse.swt.widgets.Composite parent)
parent
- The parent container
Spinner
org.eclipse.swt.widgets.Table createTable(org.eclipse.swt.widgets.Composite parent, int style)
container
- The parent containerstyle
- The style to apply to the table
Table
org.eclipse.swt.widgets.Text createText(org.eclipse.swt.widgets.Composite parent)
container
- The parent container
Text
org.eclipse.swt.widgets.Button createTriStateCheckBox(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- The parent containertext
- The button's text
Button
that has 3 selection states
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |