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()
IMdacPropertyPagegetBitmap in interface IMdacPropertyPagepublic final IMdac getMdac()
IMdacPropertyPagegetMdac in interface IMdacPropertyPagepublic String getName()
IMdacPropertyPagegetName in interface IMdacPropertyPagepublic String getLabel()
IMdacPropertyPagegetLabel in interface IMdacPropertyPagepublic 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 IMdacPropertyPageelements - 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 IMdacPropertyPageelements - 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)
IMdacPropertyPagesetName in interface IMdacPropertyPagename - the name of the property page.public void setBitmap(org.eclipse.jface.resource.ImageDescriptor image)
IMdacPropertyPagesetBitmap in interface IMdacPropertyPageimage - the bitmap ImageDescriptor.public void setLabel(String label)
IMdacPropertyPagesetLabel in interface IMdacPropertyPagelabel - the text that will be displayed in the property page's label.public void setMdac(IMdac mdac)
IMdacPropertyPagesetMdac in interface IMdacPropertyPagemdac - the module owning this property page.