public class ElementFormPanel extends Object
IPanelProvider
implementation displaying a form for the selected model element.
Forms are build using an IFieldFactory
, and may be split into several pages. See FormFieldPage
.
Constructor and Description |
---|
ElementFormPanel(IFieldFactory fieldFactory)
Build a new instance of ElementFormPanel.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createFormFields(org.eclipse.swt.widgets.Composite parent,
ModelElement input)
Create a complete form for an element.
|
org.eclipse.swt.widgets.Composite |
createPanel(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
String |
getHelpTopic() |
Object |
getInput() |
org.eclipse.swt.widgets.Composite |
getPanel() |
boolean |
isRelevantFor(Object obj) |
void |
setInput(Object input) |
public ElementFormPanel(IFieldFactory fieldFactory)
fieldFactory
- the factory to create form fields with.public final org.eclipse.swt.widgets.Composite createPanel(org.eclipse.swt.widgets.Composite parent)
public final void dispose()
public final String getHelpTopic()
public final Object getInput()
public final org.eclipse.swt.widgets.Composite getPanel()
public final void setInput(Object input)
protected void createFormFields(org.eclipse.swt.widgets.Composite parent, ModelElement input)
fields
should be filled after calling this method.parent
- a widget which will be the parent of the new field instance (cannot be null)input
- the element to build the form for.public boolean isRelevantFor(Object obj)