|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.uml.ui.UMLComboBoxEntry
A combobox entry. TODO: What is a Phantom element? Document it.
Field Summary | |
private String |
displayName
display name will be the same as shortName unless there is a name collision |
private Object |
element
|
private String |
longName
longName is composed of an identifier and a name as in Class: String |
private Profile |
profile
|
private String |
shortName
|
private boolean |
thisIsAPhantom
i am not quite sure what isPhantom means, it may be that it is an entry that is not in the model list...pjs |
Constructor Summary | |
UMLComboBoxEntry(Object modelElement,
Profile theProfile,
boolean isPhantom)
The constructor. |
Method Summary | |
void |
checkCollision(String before,
String after)
If one of the given names equals the "short name", then we'll display the longname. |
int |
compareTo(Object other)
|
private static Object |
findNamespace(Object phantomNS,
Object targetModel)
|
Object |
getElement(Object targetModel)
|
String |
getLongName()
|
String |
getShortName()
|
boolean |
isPhantom()
|
void |
nameChanged(Object modelElement)
|
void |
setElement(Object modelElement,
boolean isPhantom)
|
String |
toString()
|
void |
updateName()
Generate a string representatation of the UML modelelement of this combobox element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Object element
private String shortName
private String longName
private Profile profile
private String displayName
private boolean thisIsAPhantom
Constructor Detail |
public UMLComboBoxEntry(Object modelElement, Profile theProfile, boolean isPhantom)
modelElement
- the model element that this combobox entry representstheProfile
- the profile according which the textual
representatation of the modelelement is generatedisPhantom
- true if this is a phantom elementMethod Detail |
public String toString()
Object.toString()
public void updateName()
public void checkCollision(String before, String after)
before
- the first given nameafter
- the 2nd given namepublic String getShortName()
public String getLongName()
private static Object findNamespace(Object phantomNS, Object targetModel)
public Object getElement(Object targetModel)
targetModel
- the UML Model that contains the modelelement
public void setElement(Object modelElement, boolean isPhantom)
modelElement
- the modelelement represented by this combobox itemisPhantom
- true if this is a phantom elementpublic int compareTo(Object other)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
public void nameChanged(Object modelElement)
modelElement
- the modelelement that has its name changedpublic boolean isPhantom()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |