ui
Interface DefectModelListener
- All Known Implementing Classes:
- NotificationForm, ResolutionForm, SummaryForm, DetailForm
- public abstract interface DefectModelListener
The DefectModelListener is an interface based on the Observer pattern. Implementing
classes provide the methods described here to provide a one-to-many model to view
interaction.
In the BugTracker application, the tab panels of the user interface implement
this interface and are the "observers", while the UIDefectModel object maintained by
the main form itself provides the observable model with the remoted defect
that it currently holds.
Method Summary |
boolean |
isDirty(DefectIntf defect)
the listener is called via this method when the model needs to determine
if the listener needs to update the model. |
void |
ModelUpdated(DefectIntf defect)
The listener is called via this method when the underlying model has
been changed. |
void |
UpdateModel(DefectIntf defect)
The listener is called via this method when the underlying model requests
that it be updated by the information in the UI. |
ModelUpdated
public void ModelUpdated(DefectIntf defect)
- The listener is called via this method when the underlying model has
been changed. The lister is then responsible for updating the information
displayed in the UI based on the state of the model.
UpdateModel
public void UpdateModel(DefectIntf defect)
- The listener is called via this method when the underlying model requests
that it be updated by the information in the UI. Any information that
the listener has changed and wants the model to reflect will be
changed by the listener
isDirty
public boolean isDirty(DefectIntf defect)
- the listener is called via this method when the model needs to determine
if the listener needs to update the model.