|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttemplates.presentation.IssuesViewer
public class IssuesViewer
The UI element displaying the list of consistency issues in template designs.
| Nested Class Summary | |
|---|---|
protected class |
IssuesViewer.IssueRenderer
Renderer of UI elements for consistency issues when shown as items in a list. |
protected class |
IssuesViewer.IssueUI
The UI element which displays an individual consistency issue. |
| Field Summary | |
|---|---|
protected javax.swing.DefaultListModel |
data
The ListModel used to display the list of consistency issues. |
protected TemplateDiagram |
diagram
The template diagram with the design whose consistency issues are displayed. |
protected javax.swing.JList |
issues
The list of consistency issues. |
| Constructor Summary | |
|---|---|
IssuesViewer(TemplateDiagram diagram)
Construct and set up a UI element to display the list of consistency issues in the template design from the given template diagram. |
|
| Method Summary | |
|---|---|
void |
addIssuesListener(javax.swing.event.ListDataListener ldl)
Subscribe a listener for changes to the list of consistency issues. |
void |
forceRepaint()
|
javax.swing.JComponent |
getGUI()
|
int |
getIssueCount()
Retrieve the number of consistency issues in the list. |
ides.api.plugin.model.DESModel |
getModel()
|
java.lang.String |
getName()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
When the user clicks inside the list of consistency issues, select in the template diagram those diagram elements which contribute to the occurrence of the consistency issue under the mouse cursor. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Do nothing. |
void |
mouseExited(java.awt.event.MouseEvent e)
Do nothing. |
void |
mousePressed(java.awt.event.MouseEvent e)
Do nothing. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Do nothing. |
protected void |
refreshIssueList()
Update the list of consistency issues to reflect the current state of the template design. |
void |
release()
|
void |
removeIssuesListener(javax.swing.event.ListDataListener ldl)
Cancel the subscription of a listener for changes to the list of consistency issues. |
void |
setTrackModel(boolean arg0)
|
void |
templateDiagramChanged(TemplateDiagramMessage message)
Update the list of consistency issues after a change to the template diagram. |
void |
templateDiagramSelectionChanged(TemplateDiagramMessage message)
After a change to the selection of diagram elements, in the list of consistency issues select those consistency issues which stem from the diagram elements selected by the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TemplateDiagram diagram
protected javax.swing.JList issues
protected javax.swing.DefaultListModel data
ListModel used to display the list of consistency issues.
| Constructor Detail |
|---|
public IssuesViewer(TemplateDiagram diagram)
diagram - the template diagram with the design whose consistency issues
will be displayed| Method Detail |
|---|
public void addIssuesListener(javax.swing.event.ListDataListener ldl)
ldl - the listener to be subscribedpublic void removeIssuesListener(javax.swing.event.ListDataListener ldl)
ldl - the listener whose subscription is to be cancelledpublic int getIssueCount()
public void forceRepaint()
forceRepaint in interface ides.api.plugin.presentation.Presentationpublic javax.swing.JComponent getGUI()
getGUI in interface ides.api.plugin.presentation.Presentationpublic ides.api.plugin.model.DESModel getModel()
getModel in interface ides.api.plugin.presentation.Presentationpublic java.lang.String getName()
getName in interface ides.api.plugin.presentation.Presentationpublic void release()
release in interface ides.api.plugin.presentation.Presentationpublic void setTrackModel(boolean arg0)
setTrackModel in interface ides.api.plugin.presentation.Presentationprotected void refreshIssueList()
public void templateDiagramChanged(TemplateDiagramMessage message)
templateDiagramChanged in interface TemplateDiagramSubscribermessage - the description of the changepublic void templateDiagramSelectionChanged(TemplateDiagramMessage message)
templateDiagramSelectionChanged in interface TemplateDiagramSubscribermessage - the description of the new collection of selected
DiagramElementspublic void mouseClicked(java.awt.event.MouseEvent e)
In case there is no consistency issue item under the mouse cursor, do nothing.
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||