|
Dali Provisional API Release 3.2 |
||||||||||
| 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 | |
|---|---|
Button |
createButton(Composite parent,
String text)
Create a new regular button with the specified parent and text. |
Button |
createCheckBox(Composite parent,
String text)
Create a new check box with the specified parent and text. |
Combo |
createCombo(Composite parent)
Create a new drop-down list box with the specified parent. |
Composite |
createComposite(Composite parent)
Create a new composite with the specified parent. |
DateTime |
createDateTime(Composite parent,
int style)
Create a new date time widget with the specified parent and style. |
Combo |
createEditableCombo(Composite parent)
Create a new combo-box with the specified parent. |
Group |
createGroup(Composite parent,
String title)
Create a new group box with the specified parent and title. |
Hyperlink |
createHyperlink(Composite parent,
String text)
Create a new hyperlink label with the specified parent and text. |
Label |
createLabel(Composite parent,
String text)
Create a new label with the specified parent and text. |
List |
createList(Composite parent,
int style)
Create a new list box with the specified parent and style. |
Text |
createMultiLineText(Composite parent)
Create a new editable multi-line text field with the specified parent. |
Text |
createPasswordText(Composite parent)
Create a new editable password text field with the specified parent. |
Button |
createPushButton(Composite parent,
String text)
Create a new push button (i.e. a button that toggles between selected and unselected) with the specified parent and text. |
Button |
createRadioButton(Composite parent,
String text)
Create a new radio button with the specified parent and text. |
Section |
createSection(Composite parent,
int expansionStyle)
Create a new section (i.e. a collapsible group box) with the specified parent and expansion style. |
Spinner |
createSpinner(Composite parent)
Create a new spinner with the specified parent. |
Table |
createTable(Composite parent,
int style)
Create a new table with the specified parent. |
Text |
createText(Composite parent)
Create a new editable text field with the specified parent. |
Button |
createTriStateCheckBox(Composite parent,
String text)
Create a new tri-state check box with the specified parent and text. |
void |
dispose()
Dispose the widget factory. |
| Method Detail |
|---|
Button createButton(Composite parent,
String text)
createCheckBox(Composite, String),
createPushButton(Composite, String),
createRadioButton(Composite, String)
Button createCheckBox(Composite parent,
String text)
createButton(Composite, String),
createPushButton(Composite, String),
createRadioButton(Composite, String)Combo createCombo(Composite parent)
Composite createComposite(Composite parent)
DateTime createDateTime(Composite parent,
int style)
SWT.DATE,
SWT.TIME,
SWT.CALENDARCombo createEditableCombo(Composite parent)
Group createGroup(Composite parent,
String title)
Hyperlink createHyperlink(Composite parent,
String text)
Label createLabel(Composite parent,
String text)
List createList(Composite parent,
int style)
SWT.MULTI,
SWT.SINGLEText createMultiLineText(Composite parent)
Text createPasswordText(Composite parent)
Button createPushButton(Composite parent,
String text)
createButton(Composite, String),
createCheckBox(Composite, String),
createRadioButton(Composite, String)
Button createRadioButton(Composite parent,
String text)
createButton(Composite, String),
createCheckBox(Composite, String),
createPushButton(Composite, String)
Section createSection(Composite parent,
int expansionStyle)
ExpandableComposite.TWISTIE,
ExpandableComposite.TREE_NODE,
ExpandableComposite.FOCUS_TITLE,
ExpandableComposite.CLIENT_INDENT,
ExpandableComposite.COMPACT,
ExpandableComposite.EXPANDED,
ExpandableComposite.TITLE_BAR,
ExpandableComposite.SHORT_TITLE_BAR,
ExpandableComposite.NO_TITLE,
ExpandableComposite.LEFT_TEXT_CLIENT_ALIGNMENT,
ExpandableComposite.NO_TITLE_FOCUS_BOX,
Section.DESCRIPTIONSpinner createSpinner(Composite parent)
Table createTable(Composite parent,
int style)
Text createText(Composite parent)
Button createTriStateCheckBox(Composite parent,
String text)
void dispose()
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||