|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.tagging.ac.AutoCompletionListItem
public class AutoCompletionListItem
Represents an entry in the list of auto completion values.
An AutoCompletionListItem has a priority and a value.
The priority helps to sort the auto completion items according to their importance. For instance,
in an auto completion list for tag names, standard tag names would be assigned a higher
priority than arbitrary tag names present in the current data set. There are three priority levels,
AutoCompletionItemPritority
.
The value is a string which will be displayed in the auto completion list.
Field Summary | |
---|---|
private AutoCompletionItemPritority |
priority
the pritority of this item |
private java.lang.String |
value
the value of this item |
Constructor Summary | |
---|---|
AutoCompletionListItem()
|
|
AutoCompletionListItem(java.lang.String value)
|
|
AutoCompletionListItem(java.lang.String value,
AutoCompletionItemPritority priority)
constructor |
Method Summary | |
---|---|
int |
compareTo(AutoCompletionListItem other)
|
boolean |
equals(java.lang.Object obj)
|
AutoCompletionItemPritority |
getPriority()
|
java.lang.String |
getValue()
|
int |
hashCode()
|
void |
setPriority(AutoCompletionItemPritority priority)
sets the priority |
void |
setValue(java.lang.String value)
sets the value |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private AutoCompletionItemPritority priority
private java.lang.String value
Constructor Detail |
---|
public AutoCompletionListItem(java.lang.String value, AutoCompletionItemPritority priority)
public AutoCompletionListItem(java.lang.String value)
public AutoCompletionListItem()
Method Detail |
---|
public AutoCompletionItemPritority getPriority()
public void setPriority(AutoCompletionItemPritority priority)
priority
- the prioritypublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value; must not be null
java.lang.IllegalArgumentException
- thrown, if value if nullpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(AutoCompletionListItem other)
compareTo
in interface java.lang.Comparable<AutoCompletionListItem>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |