ModelType - the type of the model object for the sectionpublic abstract class AbstractSection<ModelType extends IModel> extends org.eclipse.ui.forms.SectionPart implements IModelChangedListener
| Constructor and Description |
|---|
AbstractSection(org.eclipse.swt.widgets.Composite pParent,
org.eclipse.ui.forms.editor.FormPage pPage,
int pStyle)
The SectionPart constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ModelType |
getModel() |
boolean |
isDirty() |
abstract void |
loadData()
Load the non-localized data from the model into the fields.
|
void |
modelChanged()
Marks the editor as non dirty.
|
void |
modelSaved()
Marks the editor as saved.
|
void |
setModel(ModelType pModel) |
expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocuspublic AbstractSection(org.eclipse.swt.widgets.Composite pParent,
org.eclipse.ui.forms.editor.FormPage pPage,
int pStyle)
pParent - the parent compositepPage - the form page to usepStyle - the SectionPart stylepublic ModelType getModel()
public void setModel(ModelType pModel)
pModel - the new data model for the sectionpublic boolean isDirty()
isDirty in interface org.eclipse.ui.forms.IFormPartisDirty in class org.eclipse.ui.forms.AbstractFormPartpublic void modelSaved()
modelSaved in interface IModelChangedListenerpublic void modelChanged()
modelChanged in interface IModelChangedListenerpublic abstract void loadData()