|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ResourceManager.ResourceType
ResourceType: ResourceType reads and holds all the Resources of a single type (e.g. 'ICON', 'MENU'). It allows both individual Hashtable access and en masse Array access to the Resources. Public accessor methods are provided to access additional Type data such as the ID of the type and the number of Resources
Constructor Summary | |
ResourceType()
|
Method Summary | |
boolean |
contains(short idtocheck)
A convenience method allowing a test with a primitive short key in addition to the Short Object method |
boolean |
contains(java.lang.Short idtocheck)
Test whether a Resource of the given ID exists or not |
java.lang.String |
getID()
Returns the Type Code of this ResourceType, e.g. |
Resource[] |
getResArray()
Returns all the Resources of this ResourceType in a standard Array. |
Resource |
getResource(short idtoget)
A convenience method allowing access with a primitive short key in addition to the Short Object method |
Resource |
getResource(java.lang.Short idtoget)
Returns the single Resource keyed to the given ID. |
java.util.Enumeration |
getResourceIDs()
Returns an Enumeration of all the ID keys of the type to enable iterative Hashtable access to all the Resources of this type |
void |
print(java.io.PrintStream ps)
Dumps the ResourceType information (not including data) to a Stream |
void |
printAll(java.io.PrintStream ps)
Dumps the ResourceType information (not including data) to a Stream as well as the info of all the Resources it holds |
short |
size()
Returns the number of Items of this ResourceType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceType()
Method Detail |
public void print(java.io.PrintStream ps)
ps
- the PrintStream to print the infopublic void printAll(java.io.PrintStream ps)
ps
- the PrintStream to print the infopublic short size()
public java.lang.String getID()
public Resource[] getResArray()
public Resource getResource(java.lang.Short idtoget)
idtoget
- the ID Key of the desired Resourcepublic Resource getResource(short idtoget)
idtoget
- the ID Key of the desired Resourcepublic boolean contains(java.lang.Short idtocheck)
idtocheck
- the Resource ID in questionpublic boolean contains(short idtocheck)
idtocheck
- the Resource ID in questionpublic java.util.Enumeration getResourceIDs()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |