|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.Form
projectpossibility.COptionScreen
public class COptionScreen
The primary options screen for adjusting AudioGuardian settings. Implements functionality to set the alert threshold and enable/disable detection of specific sounds.
| Constructor Summary | |
|---|---|
COptionScreen(java.lang.String[] builtinSounds)
Construct a new COptionsScreen with the specified set of builtin sounds |
|
| Method Summary | |
|---|---|
int |
getAlertThreshold()
Retrieve the user's preferred alert threshold. |
boolean |
getSoundChoice(int index)
Determine whether the user has enabled or disabled a specific sound. |
void |
setAlertThreshold(int val)
Set the threshold and which an alert should occur - should be between 0 and 10 |
void |
setSoundChoice(int index,
boolean value)
Set the enable/disable status of a specific alert sound. |
| Methods inherited from class javax.microedition.lcdui.Form |
|---|
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size |
| Methods inherited from class javax.microedition.lcdui.Displayable |
|---|
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public COptionScreen(java.lang.String[] builtinSounds)
builtinSounds - The list of sounds to display in the enable/disable dialog| Method Detail |
|---|
public void setAlertThreshold(int val)
val - The threshold at which to alertpublic int getAlertThreshold()
public void setSoundChoice(int index,
boolean value)
index - The index of the sound to alert onvalue - true if the sound should be enabled, false otherwisepublic boolean getSoundChoice(int index)
index - The index of the sound to query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||