|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiremotej.WRExtensionFactory
public class WRExtensionFactory
A class representing a Nintendo (R) Wii Remote (TM) extension factory. It is used to obtain object-references to extensions based on their numeric codes.
Method Summary | |
---|---|
WRExtension |
createWRExtension(short code)
Creates and returns a new WRExtension based on the given extension code. |
static WRExtensionFactory |
getDefault()
Returns the default WRExtensionFactory. |
boolean |
isExtensionRegistered(short code)
Returns true if the given extension code has already been registered with this WRExtensionFactory; otherwise false . |
void |
registerExtension(WRExtension extensionType)
Registers the given extension with this WRExtensionFactory. |
void |
removeExtension(short code)
Removes the extension specified by the given code from this factory's list of registered extensions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public WRExtension createWRExtension(short code)
code
- the code indicating what kind of extension to return. If the code is unknown, null
is returned.
public void registerExtension(WRExtension extensionType) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
extensionType
- an instance of the type of WRExtension to be added.
java.lang.NullPointerException
- if extensionType is null.
java.lang.IllegalArgumentException
- if the given extension (or another with the same code) is already registered with the current WRExtensionFactory.public void removeExtension(short code)
code
- the code of the extension to remove.public boolean isExtensionRegistered(short code)
true
if the given extension code has already been registered with this WRExtensionFactory; otherwise false
.
true
if the given extension code has already been registered with this WRExtensionFactory; otherwise false
.public static WRExtensionFactory getDefault()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |