public abstract class AbstractMdacPropertyPage extends Object implements IMdacPropertyPage
This class is used as a base class of the property page that is associated to a specific mdac.
Modifier and Type | Field and Description |
---|---|
protected IMdac |
mdac
Module that is associated to the property page.
|
Constructor and Description |
---|
AbstractMdacPropertyPage(IMdac mdac,
String name,
String label,
String bitmap)
Constructors of this abstract property page.
|
Modifier and Type | Method and Description |
---|---|
void |
changeProperty(ObList<IElement> elements,
int row,
String value)
This method is called when the user modify the value of a property.
|
org.eclipse.jface.resource.ImageDescriptor |
getBitmap()
Get the property page's bitmap.
|
String |
getLabel()
Get the label of this property page.
|
IMdac |
getMdac()
Get the module of this property page.
|
String |
getName()
Get the name of the property page.
|
void |
setBitmap(org.eclipse.jface.resource.ImageDescriptor image)
Set the property page's bitmap.
|
void |
setLabel(String label)
Set the labe of this property page.
|
void |
setMdac(IMdac mdac)
Set the mdac of this property page.
|
void |
setName(String name)
Set the name of the property page.
|
void |
update(ObList<IElement> elements,
IMdacPropertyTable table)
This method is called to provide the properties that will populate the module properties view.
|
protected IMdac mdac
public AbstractMdacPropertyPage(IMdac mdac, String name, String label, String bitmap)
mdac
- mdac that is associated to the property pagename
- the name of the property page.label
- the label of the property page.bitmap
- a relative path to the image to display for the property page.public org.eclipse.jface.resource.ImageDescriptor getBitmap()
IMdacPropertyPage
getBitmap
in interface IMdacPropertyPage
public final IMdac getMdac()
IMdacPropertyPage
getMdac
in interface IMdacPropertyPage
public String getName()
IMdacPropertyPage
getName
in interface IMdacPropertyPage
public String getLabel()
IMdacPropertyPage
getLabel
in interface IMdacPropertyPage
public void update(ObList<IElement> elements, IMdacPropertyTable table)
Overwrite this method in the class generated by MDA Designer to provide properties.
By default, nothing is done when the table should be updated.
update
in interface IMdacPropertyPage
elements
- the elements to load the properties from.table
- the property page's data model.public void changeProperty(ObList<IElement> elements, int row, String value)
Overwrite this method to modify the model when the user modify a value.
By default, nothing is done when a property is changed.
changeProperty
in interface IMdacPropertyPage
elements
- the elements to change the properties into.row
- the line of the modified property.value
- the value set in the property.public void setName(String name)
IMdacPropertyPage
setName
in interface IMdacPropertyPage
name
- the name of the property page.public void setBitmap(org.eclipse.jface.resource.ImageDescriptor image)
IMdacPropertyPage
setBitmap
in interface IMdacPropertyPage
image
- the bitmap ImageDescriptor.public void setLabel(String label)
IMdacPropertyPage
setLabel
in interface IMdacPropertyPage
label
- the text that will be displayed in the property page's label.public void setMdac(IMdac mdac)
IMdacPropertyPage
setMdac
in interface IMdacPropertyPage
mdac
- the module owning this property page.