|
||||||||||
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(java.lang.String name,
int version)
Creates a new WidgetPackage instance. |
|
WidgetPackage(java.lang.String name,
int version,
java.io.File... iconFiles)
Creates a new WidgetPackage instance. |
|
WidgetPackage(java.lang.String name,
int version,
java.net.URL... iconURLs)
Creates a new WidgetPackage instance. |
Method Summary | |
---|---|
int |
compareTo(WidgetPackage o)
|
static int |
composeVersion(int major,
int minor,
int revision)
Composes one 32 bit integer from major, minor and revision numbers. |
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. |
int |
getVersion()
Gets a comparable version indicator for this WidgetPackage . |
java.lang.String |
getVersionString()
|
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(java.lang.String name, int version, java.net.URL... iconURLs)
WidgetPackage
instance.
name
- the package name. This can be null
or an empty string to denote the root of the menu or a slash separated path.version
- see composeVersion(int, int, int)
iconURLs
- URLs to icons for the editorpublic WidgetPackage(java.lang.String name, int version, java.io.File... iconFiles)
WidgetPackage
instance.
name
- the package name. This can be null
or an empty string to denote the root of the menu or a slash separated path.version
- see composeVersion(int, int, int)
iconFiles
- files for icons for the editorpublic WidgetPackage(java.lang.String name, int version)
WidgetPackage
instance.
name
- the package name. This can be null
or an empty string to denote the root of the menu or a slash separated path.version
- see composeVersion(int, int, int)
Method Detail |
---|
public final java.lang.String getName()
public static final int composeVersion(int major, int minor, int revision)
major
- major fieldminor
- minor fieldrevision
- revision field
public final int getVersion()
WidgetPackage
.
WidgetPackage
.public final java.lang.String getVersionString()
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 |