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, mayHaveChildrengetLongLabel, getToolTipText, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributedLabel, getLongLabel, getToolTipText, toStringpublic 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.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic javax.swing.Icon getIcon()
DefaultDisplayablegetIcon in interface DisplayablegetIcon in class DefaultDisplayableIcon to be displayed for the
Displayable.Displayable.getIcon()public java.lang.String getShortLabel()
DefaultDisplayableString.getShortLabel in interface DisplayablegetShortLabel in class DefaultDisplayableDisplayable
that can be shown to the user.Displayable.getShortLabel()public java.net.URL getURL()
LocatableURL 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)
LocatableURL 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic IconOverlay getOverlay()
public void setOverlay(IconOverlay overlay)
public final Project getProject()
public final java.util.Collection<Project> getProjects()