public class RevisionIdentifier
extends java.lang.Object
implements java.lang.Comparable
| Constructor and Description | 
|---|
RevisionIdentifier(javax.swing.Icon icon,
                  java.lang.String label)
Construct the identifier. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(java.lang.Object o)  | 
boolean | 
equals(java.lang.Object that)
Simple implementation of equals() that compares two RevisionIdentifiers
 based on their label. 
 | 
javax.swing.Icon | 
getIcon()
Get the icon. 
 | 
java.lang.String | 
getLabel()
Get the label. 
 | 
boolean | 
isCurrent()
Get whether this identifies the current document revision. 
 | 
void | 
setCurrent(boolean current)
Set whether this identifies the current document revision. 
 | 
java.lang.String | 
toString()  | 
public RevisionIdentifier(javax.swing.Icon icon,
                          java.lang.String label)
icon - the iconrevision - the revision number (and label).public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic javax.swing.Icon getIcon()
public java.lang.String getLabel()
public void setCurrent(boolean current)
current - true if the revision is current.public boolean isCurrent()
true if the revision is current.public boolean equals(java.lang.Object that)
equals in class java.lang.Objectthat - the other object to compare withpublic java.lang.String toString()
toString in class java.lang.Object