|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.app.Listener
danger.ui.View
danger.ui.Container
danger.ui.Window
danger.ui.DialogWindow
danger.ui.AudioPreviewWindow
public class AudioPreviewWindow
Window used to preview an audio clip.
You do not instantiate an AudioPreviewWindow directly. Instead, use
play(java.lang.String, danger.audio.Tone).
| Field Summary |
|---|
| Fields inherited from class danger.ui.Window |
|---|
NO_FULL_SCREEN_MARQUEE, SHOW_FULL_SCREEN_MARQUEE, STATE_AUTO_HIDE_IF_IDLE, STATE_DROP_ORPHANED_EVENTS, STATE_FULLSCREEN, STATE_UNUSED1 |
| Method Summary | |
|---|---|
boolean |
eventWidgetDown(int widget,
Event event)
Handle the pressing of a device widget |
void |
init(byte[] inAudioData,
Tone inTone,
int inPlayFilter)
Deprecated. Use play(java.lang.String, danger.audio.Tone) instead. |
void |
init(File f,
int inPlayFilter)
Deprecated. Use play(java.lang.String, danger.audio.Tone) instead. |
void |
onDecoded()
This method is called when this view has been completely decoded from a dialog or screen resource. |
protected void |
onHide()
This method is called when this view is hidden, via the method View.hide(). |
void |
onShow()
This method is called when this view is shown, via the method View.show(). |
static AudioPreviewWindow |
play(File f)
Display UI and play an audio file. |
static AudioPreviewWindow |
play(String inTitle,
byte[] inAudioData)
Display UI and play an audio byte array. |
static AudioPreviewWindow |
play(String inTitle,
byte[] inAudioData,
int playFilter)
Display UI and play an audio byte array. |
static AudioPreviewWindow |
play(String inTitle,
File f)
Display UI and play an audio file. |
static AudioPreviewWindow |
play(String inTitle,
Tone tone)
Display UI and play a Tone. |
static AudioPreviewWindow |
play(String inTitle,
Tone tone,
int playFilter)
Display UI and play a Tone. |
boolean |
receiveEvent(Event e)
Entry point for event processing. |
void |
setDisplayedSize(int bytes)
Deprecated. Unused. |
| Methods inherited from class danger.app.Listener |
|---|
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void onDecoded()
View
onDecoded in class View
public void init(byte[] inAudioData,
Tone inTone,
int inPlayFilter)
play(java.lang.String, danger.audio.Tone) instead.
public void init(File f,
int inPlayFilter)
play(java.lang.String, danger.audio.Tone) instead.
public static AudioPreviewWindow play(String inTitle,
Tone tone)
inTitle - is the name of the title in the UI.tone - is a valid Tone
public static AudioPreviewWindow play(String inTitle,
Tone tone,
int playFilter)
inTitle - is the name of the title in the UI.tone - is a valid ToneplayFilter - is one of ToneFilter or combination
of bits.
public static AudioPreviewWindow play(String inTitle,
byte[] inAudioData)
inTitle - is the name of the title in the UI.inAudioData - is valid audio data as a byte array.
public static AudioPreviewWindow play(String inTitle,
byte[] inAudioData,
int playFilter)
inTitle - is the name of the title in the UI.inAudioData - is valid audio data as a byte array.playFilter - is one of ToneFilter or combination
of bits.
public static AudioPreviewWindow play(String inTitle,
File f)
inTitle - is the name of the title in the UI.f - is valid audio data as a File object.public static AudioPreviewWindow play(File f)
f - is valid audio data as a File object.public void onShow()
ViewView.show(). It is called as the very last thing done by that method, and
it is only ever called if the view was not already visible.
Overriding this method is the recommended way to get special
behavior when a view gets shown.
The implementation in this class does nothing.
onShow in class Viewprotected void onHide()
ViewView.hide(). It is called as the very last thing done by that
method, and it is only ever called if the view was not already
hidden. Overriding this method is the recommended way to get special
behavior when a view gets hidden .
The implementation in this class does nothing.
onHide in class Viewpublic final boolean receiveEvent(Event e)
ListenerDispatcher when it reads an Event in its queue
that is targetted at this instance. This base class implementation
handles event methods as specified by the eventMethod
keyword in .rsrc files. If you override this method, be sure to
call super.receiveEvent.
receiveEvent in class DialogWindowe - non-null; the event to process
true) or not (false) this
method actually handled the event to completion
public boolean eventWidgetDown(int widget,
Event event)
Container
eventWidgetDown in class DialogWindowwidget - the widget that went up
public void setDisplayedSize(int bytes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||