|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.widgets.base.widget.WidgetPackage
public class WidgetPackage
The WidgetPackage
class encapsulates properties for a Widget
's virtual package.
Field Summary | |
---|---|
static java.net.URL |
CTDP_ICON
|
static java.net.URL |
EXTRA_ICON
|
Constructor Summary | |
---|---|
WidgetPackage(WidgetSet widgetSet,
java.lang.String name)
Creates a new WidgetPackage instance. |
|
WidgetPackage(WidgetSet widgetSet,
java.lang.String name,
java.io.File... iconFiles)
Creates a new WidgetPackage instance. |
|
WidgetPackage(WidgetSet widgetSet,
java.lang.String name,
java.net.URL... iconURLs)
Creates a new WidgetPackage instance. |
Method Summary | |
---|---|
int |
compareTo(WidgetPackage o)
|
boolean |
equals(java.lang.Object o)
|
javax.swing.Icon[] |
getIcons()
Gets the package's icons to be displayed in the editor. |
java.lang.String |
getName()
Gets the package's name. |
WidgetSet |
getWidgetSet()
Gets the WidgetSet this WidgetPackage belongs to. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.net.URL CTDP_ICON
public static final java.net.URL EXTRA_ICON
Constructor Detail |
---|
public WidgetPackage(WidgetSet widgetSet, java.lang.String name, java.net.URL... iconURLs)
WidgetPackage
instance.
widgetSet
- the WidgetSet
this package belongs toname
- the package name. This can be null
or an empty string to denote the root of the menu or a slash separated path.iconURLs
- URLs to icons for the editorpublic WidgetPackage(WidgetSet widgetSet, java.lang.String name, java.io.File... iconFiles)
WidgetPackage
instance.
widgetSet
- the WidgetSet
this package belongs toname
- the package name. This can be null
or an empty string to denote the root of the menu or a slash separated path.iconFiles
- files for icons for the editorpublic WidgetPackage(WidgetSet widgetSet, java.lang.String name)
WidgetPackage
instance.
widgetSet
- the WidgetSet
this package belongs toname
- the package name. This can be null
or an empty string to denote the root of the menu or a slash separated path.Method Detail |
---|
public final WidgetSet getWidgetSet()
WidgetSet
this WidgetPackage
belongs to.
WidgetSet
this WidgetPackage
belongs to.public final java.lang.String getName()
public final javax.swing.Icon[] getIcons()
null
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(WidgetPackage o)
compareTo
in interface java.lang.Comparable<WidgetPackage>
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |