public class ChangeListItem extends DefaultElement implements Locatable
Constructor and Description |
---|
ChangeListItem(java.net.URL url,
java.util.Collection<Project> projects,
IconOverlay overlay) |
ChangeListItem(java.net.URL url,
IconOverlay overlay) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Node |
findNode()
Get the node for this element from the node factory.
|
Node |
findOrCreateNode()
Get or create the node for this element from the node factory.
|
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon.
|
IconOverlay |
getOverlay() |
Project |
getProject() |
java.util.Collection<Project> |
getProjects() |
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String . |
java.net.URL |
getURL()
Returns the
URL that identifies this
Locatable . |
int |
hashCode() |
void |
setOverlay(IconOverlay overlay) |
void |
setURL(java.net.URL url)
Sets the
URL associated with this Locatable . |
getAttributes, getChildren, getData, mayHaveChildren
getLongLabel, getToolTipText, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLongLabel, getToolTipText, toString
public ChangeListItem(java.net.URL url, IconOverlay overlay)
public ChangeListItem(java.net.URL url, java.util.Collection<Project> projects, IconOverlay overlay)
public Node findNode()
public Node findOrCreateNode() throws java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationException
public javax.swing.Icon getIcon()
DefaultDisplayable
getIcon
in interface Displayable
getIcon
in class DefaultDisplayable
Icon
to be displayed for the
Displayable
.Displayable.getIcon()
public java.lang.String getShortLabel()
DefaultDisplayable
String
.getShortLabel
in interface Displayable
getShortLabel
in class DefaultDisplayable
Displayable
that can be shown to the user.Displayable.getShortLabel()
public java.net.URL getURL()
Locatable
URL
that identifies this
Locatable
. Parts of the IDE will use the value of
this URL
as a hash key for caching UI components for this
Locatable
. Therefore, URL
uniqueness is
important.public void setURL(java.net.URL url)
Locatable
URL
associated with this Locatable
.
It is important that the URL
only be changed when the
Locatable
has just been created or when all caches
keyed on the previous URL
can also be updated.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IconOverlay getOverlay()
public void setOverlay(IconOverlay overlay)
public final Project getProject()
public final java.util.Collection<Project> getProjects()