|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.fsa.swing.DiagramKindComboBoxModel
comboBoxModel for UMLVisibility
Constructor Summary | |
DiagramKindComboBoxModel()
Default Constructor |
Method Summary | |
void |
addListDataListener(javax.swing.event.ListDataListener l)
Add a listener to the list that's notified each time a change to the data model occurs. |
protected void |
fireContentsChanged(java.lang.Object source,
int index0,
int index1)
Call this method after one or more elements of the list change (uml-assocs are created or deleted). |
protected void |
fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
Call this method after one or more elements are added to the model (uml-assocs are created). |
protected void |
fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
Call this method after one or more elements are removed from the model (uml-assocs are removed). |
static java.lang.Class |
getDiagramKindClass(int index)
Query class of a diagram kind. |
static int |
getDiagramKindIndex(java.lang.Class diagramClass)
Query index of a diagram kind. |
java.lang.Object |
getElementAt(int index)
Get the elementAt attribute of the DiagramKindComboBoxModel object |
static java.lang.String |
getIconPath(int diagramKind)
Query icon path for a given diagram kind registered with registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String) . |
static java.lang.String |
getName(int diagramKind)
Query name for a given diagram kind registered with registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String) . |
java.lang.Object |
getSelectedItem()
Get the selectedItem attribute of the DiagramKindComboBoxModel object |
int |
getSize()
Get the size attribute of the DiagramKindComboBoxModel object |
static int |
registerDiagramKind(java.lang.Class diagramClass,
java.lang.String icon,
java.lang.String name)
Register a diagram kind that can be used with DiagramUsage. |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Remove a listener from the list that's notified each time a change to the data model occurs. |
void |
setSelectedItem(java.lang.Object value)
Sets the selectedItem attribute of the DiagramKindComboBoxModel object |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DiagramKindComboBoxModel()
Method Detail |
public static java.lang.String getIconPath(int diagramKind)
registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String)
.
diagramKind
- index returned by registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String)
public static java.lang.String getName(int diagramKind)
registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String)
.
diagramKind
- index returned by registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String)
public static int getDiagramKindIndex(java.lang.Class diagramClass)
diagramClass
- class of the diagram
registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String)
public static java.lang.Class getDiagramKindClass(int index)
index
- index returned by registerDiagramKind(java.lang.Class, java.lang.String, java.lang.String)
public static int registerDiagramKind(java.lang.Class diagramClass, java.lang.String icon, java.lang.String name)
diagramClass
- class of the diagramicon
- path to an icon displayed for the diagram kindname
- short name for the diagram kind
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object value)
setSelectedItem
in interface javax.swing.ComboBoxModel
value
- The new selectedItem valuepublic java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
index
- No description provided
public int getSize()
getSize
in interface javax.swing.ListModel
public void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener
in interface javax.swing.ListModel
l
- the ListDataListenerpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener
in interface javax.swing.ListModel
l
- the ListDataListenerprotected void fireContentsChanged(java.lang.Object source, int index0, int index1)
source
- The ListModel that changed, typically "this".index0
- One end of the new interval.index1
- The other end of the new interval.EventListenerList
,
DefaultListModel
protected void fireIntervalAdded(java.lang.Object source, int index0, int index1)
source
- The ListModel that changed, typically "this".index0
- One end of the new interval.index1
- The other end of the new interval.EventListenerList
,
DefaultListModel
protected void fireIntervalRemoved(java.lang.Object source, int index0, int index1)
source
- The ListModel that changed, typically "this".index0
- One end of the new interval.index1
- The other end of the new interval.EventListenerList
,
DefaultListModel
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |