@Immutable
public final class URLChooserShortcut
extends java.lang.Object
| Constructor and Description |
|---|
URLChooserShortcut(javax.swing.Icon icon,
java.lang.String label,
java.net.URL url)
Creates a shortcut.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
javax.swing.Icon |
icon()
Returns the icon for this shorcut.
|
java.lang.String |
label()
Returns the label for this shortcut.
|
java.lang.String |
toString() |
java.net.URL |
url()
Returns the URL for this shorcut.
|
public URLChooserShortcut(javax.swing.Icon icon,
java.lang.String label,
java.net.URL url)
icon - the icon to display.label - the label for the shortcut.url - the URL for the shortcut.java.lang.NullPointerException - if any parameter is null.public javax.swing.Icon icon()
public java.lang.String label()
public java.net.URL url()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object