|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Presentation
The interface for a class which will render a DESModel. The model has
to be rendered in the JComponent returned by getGUI().
getGUI()| Method Summary | |
|---|---|
void |
forceRepaint()
Forces a repaint of the presentation. |
javax.swing.JComponent |
getGUI()
Returns the JComponent in which the DESModel is rendered. |
DESModel |
getModel()
Retrieve the model rendered in the presentation. |
java.lang.String |
getName()
Returns the title of this presentation. |
void |
release()
Detach from the underlying DESModel and releases any resources
used to present it. |
void |
setTrackModel(boolean b)
Sets if changes in the DESModel have to be tracked by this
presentation or not. |
| Method Detail |
|---|
java.lang.String getName()
javax.swing.JComponent getGUI()
JComponent in which the DESModel is rendered.
This method can be called by IDES directly or through a Toolset.
JComponent in which the DESModel is renderedDESModel getModel()
void setTrackModel(boolean b)
DESModel have to be tracked by this
presentation or not.
The implementation of this method is optional. Some presentations may
always track changes (especially if the presentations allows
modifications to the underlying DESModel). Some presentations may
always ignore changes.
b - if true, the presentation should register with
the underlying DESModel to track changes and update
itself dynamically. If false, the presentation
should unregister itself with the underlying DESModel
and ignore any changes to it.void release()
DESModel and releases any resources
used to present it. For example, the presentation should unsubscribe from
listening to changes in the DESModel.
Once this method is called, the behavior of the presentation should no longer be considered deterministic.
void forceRepaint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||