|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ui.UIDefectModel
The UIDefectModel provides the observable model for the observing views of the user interface. This model coordinates updates to and from the model and the views that implement the DefectModelListenerInterface. While this could have been implemented using the Observable class provided in the JDK, this implementation is a bit cleaner and more tailored toward the application.
Constructor Summary | |
UIDefectModel()
default constructor |
|
UIDefectModel(DefectIntf defect)
Creates the model and uses the specified defect as the basis of the model |
Method Summary | |
void |
addDefectModelListener(DefectModelListener listener)
Adds a new observer to the model |
DefectIntf |
getActiveDefect()
Accessor method |
boolean |
isDirty()
Determines if the logic model, including projections on the connected views, has been dirtied. |
void |
setActiveDefect(DefectIntf defect)
Establishes the specified defect as the new basis for the model |
void |
UpdateListeners()
Causes the views to update themselves based on the contents of the model |
void |
UpdateModel()
Causes the model to be updated from the information in the views |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public UIDefectModel()
public UIDefectModel(DefectIntf defect)
defect
- the defect that provides the model basisMethod Detail |
public void setActiveDefect(DefectIntf defect)
defect
- the defect that provides the model basispublic boolean isDirty()
public DefectIntf getActiveDefect()
public void addDefectModelListener(DefectModelListener listener)
listener
- new view to this modelpublic void UpdateListeners()
public void UpdateModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |