|
|||||||||||
| 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. MVW: I think it is an entry in the list, that when selected, deletes the UML model-association, just like the "" in the comboboxes currently.
This class does not seem to be in use currently. Is it a good idea to complete this? Or shall we remove?
| 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)
|
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 |
| 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 element| Method 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()
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 ComparableComparable.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-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |