Dali Provisional API
Release 3.2

org.eclipse.jpt.common.ui
Interface WidgetFactory


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.

Since:
2.0

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

createButton

Button createButton(Composite parent,
                    String text)
Create a new regular button with the specified parent and text.

See Also:
createCheckBox(Composite, String), createPushButton(Composite, String), createRadioButton(Composite, String)

createCheckBox

Button createCheckBox(Composite parent,
                      String text)
Create a new check box with the specified parent and text.

See Also:
createButton(Composite, String), createPushButton(Composite, String), createRadioButton(Composite, String)

createCombo

Combo createCombo(Composite parent)
Create a new drop-down list box with the specified parent.


createComposite

Composite createComposite(Composite parent)
Create a new composite with the specified parent.


createDateTime

DateTime createDateTime(Composite parent,
                        int style)
Create a new date time widget with the specified parent and style.

See Also:
SWT.DATE, SWT.TIME, SWT.CALENDAR

createEditableCombo

Combo createEditableCombo(Composite parent)
Create a new combo-box with the specified parent.


createGroup

Group createGroup(Composite parent,
                  String title)
Create a new group box with the specified parent and title.


createHyperlink

Hyperlink createHyperlink(Composite parent,
                          String text)
Create a new hyperlink label with the specified parent and text.


createLabel

Label createLabel(Composite parent,
                  String text)
Create a new label with the specified parent and text.


createList

List createList(Composite parent,
                int style)
Create a new list box with the specified parent and style.

See Also:
SWT.MULTI, SWT.SINGLE

createMultiLineText

Text createMultiLineText(Composite parent)
Create a new editable multi-line text field with the specified parent.


createPasswordText

Text createPasswordText(Composite parent)
Create a new editable password text field with the specified parent.


createPushButton

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.

See Also:
createButton(Composite, String), createCheckBox(Composite, String), createRadioButton(Composite, String)

createRadioButton

Button createRadioButton(Composite parent,
                         String text)
Create a new radio button with the specified parent and text.

See Also:
createButton(Composite, String), createCheckBox(Composite, String), createPushButton(Composite, String)

createSection

Section createSection(Composite parent,
                      int expansionStyle)
Create a new section (i.e. a collapsible group box) with the specified parent and expansion style.

See Also:
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.DESCRIPTION

createSpinner

Spinner createSpinner(Composite parent)
Create a new spinner with the specified parent.


createTable

Table createTable(Composite parent,
                  int style)
Create a new table with the specified parent.


createText

Text createText(Composite parent)
Create a new editable text field with the specified parent.


createTriStateCheckBox

Button createTriStateCheckBox(Composite parent,
                              String text)
Create a new tri-state check box with the specified parent and text.


dispose

void dispose()
Dispose the widget factory.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.