public class EclipseUIWidgetFactory extends java.lang.Object implements IWidgetFactory
This class is a concrete implementation of the UIWidgetFactory abstract class and creates widgets that work with the Eclipse Rich Client Platform.
The IFormWidget that the factory uses to render Forms can be customized by realizing the IFormWidgetBuilder interface and registering it dynamically with the EclipseUIWidgetFactory. When the factory tries to create a new FormWidget, it will compare the name of the Form with the target Item names of the IFormWidgetBuilders that have registered with it. If there is a match, it will use that Builder to create a new IFormWidget and render the Form.
Constructor and Description |
---|
EclipseUIWidgetFactory()
The constructor
|
Modifier and Type | Method and Description |
---|---|
IErrorBox |
getErrorBox()
(non-Javadoc)
|
IExtraInfoWidget |
getExtraInfoWidget()
(non-Javadoc)
|
IFormWidget |
getFormWidget(java.lang.String formName)
This operation returns an IFormWidget that is rendered by the underlying graphics package.
|
IStreamingTextWidget |
getStreamingTextWidget()
(non-Javadoc)
|
ITextEditor |
getTextEditor()
(non-Javadoc)
|
void |
registerFormWidgetBuilder(IFormWidgetBuilder builder)
This operation registers an IFormWidgetBuilder with the Factory.
|
public void registerFormWidgetBuilder(IFormWidgetBuilder builder)
builder
- The builder that will generate the custom IFormWidget.public IFormWidget getFormWidget(java.lang.String formName)
IWidgetFactory
This operation returns an IFormWidget that is rendered by the underlying graphics package.
getFormWidget
in interface IWidgetFactory
formName
- The name of the Form that will be rendered with the widget. This option can be used by classes that realize the IWidgetFactory interface for further customization or special checks, but it is not required (and may be null).
An IFormWidget
public IErrorBox getErrorBox()
getErrorBox
in interface IWidgetFactory
The IErrorBox
IWidgetFactory.getErrorBox()
public ITextEditor getTextEditor()
getTextEditor
in interface IWidgetFactory
The ITextEditor
IWidgetFactory.getTextEditor()
public IExtraInfoWidget getExtraInfoWidget()
getExtraInfoWidget
in interface IWidgetFactory
The IExtraInfoWidget.
IWidgetFactory.getExtraInfoWidget()
public IStreamingTextWidget getStreamingTextWidget()
getStreamingTextWidget
in interface IWidgetFactory
The IStreamingTextWidget that can post messages to be viewed by a client.
IWidgetFactory.getStreamingTextWidget()