public abstract class ElementFormPropertyPanel extends Object implements IModulePropertyCustomPanel
IModulePropertyCustomPanel
implementation displaying a form for the selected element.
SubClasses should redefine #isRelevantFor(Object)
and #createFormFields(Composite, ModelElement)
only.
The IPanelProvider aspect is delegated to an ElementFormPanel
.
Constructor and Description |
---|
ElementFormPropertyPanel(IModule module,
String name,
String label,
String image)
Constructor invoked by Modelio when building the module's property page.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Composite |
createPanel(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
String |
getHelpTopic() |
Object |
getInput() |
String |
getLabel()
Get the label of this property page.
|
IModule |
getModule()
Get the module of this property page.
|
String |
getName()
Get the name of the property page.
|
org.eclipse.swt.widgets.Composite |
getPanel() |
protected abstract IFieldFactory |
initFactory()
Initialize an instance of
IFieldFactory to build the property page's form. |
void |
setInput(Object input) |
void |
setLabel(String label)
Set the labe of this property page.
|
void |
setModule(IModule module)
Set the mdac of this property page.
|
void |
setName(String name)
Set the name of the property page.
|
public ElementFormPropertyPanel(IModule module, String name, String label, String image)
module
- the module this property page is build for.name
- the internal name of this property page.label
- the label displayed in Modelio for this property page.image
- the property page's image. Currently unused.public final org.eclipse.swt.widgets.Composite createPanel(org.eclipse.swt.widgets.Composite parent)
public final void dispose()
public String getHelpTopic()
public final Object getInput()
public final String getLabel()
IModulePropertyPanel
getLabel
in interface IModulePropertyPanel
public final IModule getModule()
IModulePropertyPanel
getModule
in interface IModulePropertyPanel
public final String getName()
IModulePropertyPanel
getName
in interface IModulePropertyPanel
public final org.eclipse.swt.widgets.Composite getPanel()
public final void setInput(Object input)
public final void setLabel(String label)
IModulePropertyPanel
setLabel
in interface IModulePropertyPanel
label
- the text that will be displayed in the property page's label.public final void setModule(IModule module)
IModulePropertyPanel
setModule
in interface IModulePropertyPanel
module
- the module owning this property page.public final void setName(String name)
IModulePropertyPanel
setName
in interface IModulePropertyPanel
name
- the name of the property page.protected abstract IFieldFactory initFactory()
IFieldFactory
to build the property page's form.
Called only once in the constructor.