|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiremotej.WiiRemoteExtensionFactory
public class WiiRemoteExtensionFactory
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 | |
---|---|
WiiRemoteExtension |
createWiiRemoteExtension(short code)
Creates and returns a new WiiRemoteExtension based on the given extension code. |
static WiiRemoteExtensionFactory |
getDefault()
Returns the default WiiRemoteExtensionFactory. |
boolean |
isExtensionRegistered(short code)
Returns true if the given extension code has already been registered or is WiiRemoteExtension.NOTHING_INSERTED
or WiiRemoteExtension.PARTIALLY_INSERTED; otherwise false . |
void |
registerWiiRemoteExtension(WiiRemoteExtension 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 WiiRemoteExtension createWiiRemoteExtension(short code)
code
- the code indicating what kind of extension to return. If the code is unknown, null
is returned.
public void registerWiiRemoteExtension(WiiRemoteExtension 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 or is WiiRemoteExtension.NOTHING_INSERTED
or WiiRemoteExtension.PARTIALLY_INSERTED; otherwise false
.
true
if the given extension code has already been registered; otherwise false
.public static WiiRemoteExtensionFactory getDefault()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |