|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cafesip.gwtcomp.client.ui.Audio
public class Audio
Adds audio to GWT applications. Before calling any of the methods to play a sound-bite, make sure that the static method - setRoot() has been called. This is a singleton class and instance of this class can be obtained by calling the getInstance() method.
Examples:
Limitations:
| Method Summary | |
|---|---|
static Audio |
getInstance()
Returns the Audio singleton object. |
void |
play(java.lang.String url)
Plays an audio file. |
void |
playError()
Plays an "error" sound. |
void |
playWarning()
Plays a "warning" sound. |
static void |
setRoot(com.google.gwt.user.client.ui.RootPanel root)
Sets the RootPanel object for the GWT application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Audio getInstance()
public static void setRoot(com.google.gwt.user.client.ui.RootPanel root)
root - the RootPanel object.public void playError()
public void playWarning()
public void play(java.lang.String url)
url - URL of the audio file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||