|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to represent a ZSNES CHT code.
Method Summary | |
int |
getAddress()
Gets the address of this CHTCode. |
java.lang.String |
getName()
Gets the name of this CHTCode. |
int |
getValue()
Gets the value of this CHTCode. |
boolean |
isActive()
Asks if this CHTCode is active (turned ON). |
void |
setActive(boolean active)
Sets whether this CHTCode is active or not. |
void |
setAddress(int address)
Sets the address of this CHTCode. |
void |
setName(java.lang.String name)
Sets the name of this CHTCode (18 characters max). |
void |
setValue(int value)
Sets the value of this CHTCode. |
Method Detail |
public boolean isActive()
public void setActive(boolean active)
active
- true for active (ON); false for inactive (OFF).public int getAddress()
public void setAddress(int address) throws InvalidAddressException
address
- The address.
InvalidAddressException
- if the address is outside the range
0-16777215 (2^24 - 1).public int getValue()
public void setValue(int value) throws InvalidValueException
value
- The value.
InvalidValueException
- if the value is outside the range 0-255
(2^8 - 1).public java.lang.String getName()
public void setName(java.lang.String name) throws NameTooLongException
name
- The name.
NameTooLongException
- if the new name is longer than 18
characters.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |