|
||||||||||
| 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 |
|---|
mBusyPaintCount, mDefaultListener, STATE_AUTO_HIDE_IF_IDLE, STATE_DROP_ORPHANED_EVENTS, STATE_FULLSCREEN, STATE_UNUSED1 |
| Method Summary | |
|---|---|
boolean |
eventWidgetDown(int widget,
Event event)
Handle a button down event. |
void |
init(byte[] inAudioData,
Tone inTone,
int inPlayFilter)
|
void |
init(File f,
int inPlayFilter)
|
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(). |
static AudioPreviewWindow |
play(File f)
|
static AudioPreviewWindow |
play(String inTitle,
byte[] inAudioData)
|
static AudioPreviewWindow |
play(String inTitle,
byte[] inAudioData,
int playFilter)
|
static AudioPreviewWindow |
play(String inTitle,
File f)
|
static AudioPreviewWindow |
play(String inTitle,
Tone tone)
|
static AudioPreviewWindow |
play(String inTitle,
Tone tone,
int playFilter)
|
boolean |
receiveEvent(Event e)
Entry point for event processing. |
void |
setDisplayedSize(int bytes)
|
| 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)
public void init(File f,
int inPlayFilter)
public static AudioPreviewWindow play(String inTitle,
Tone tone)
public static AudioPreviewWindow play(String inTitle,
Tone tone,
int playFilter)
public static AudioPreviewWindow play(String inTitle,
byte[] inAudioData)
public static AudioPreviewWindow play(String inTitle,
byte[] inAudioData,
int playFilter)
public static AudioPreviewWindow play(String inTitle,
File f)
public static AudioPreviewWindow play(File f)
protected 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 nothin.
onHide in class Viewpublic final boolean receiveEvent(Event e)
ListenerDispatcher when it reads an Event in its queue
that is targetted at this instance. The default behavior is to
do nothing and return false. Subclasses are expected
to override this method to do something more useful.
receiveEvent in class DialogWindowe - non-null; the event to process
true) or not (false) this
method actually handled the event to completionListener.receiveEvent(danger.app.Event)
public boolean eventWidgetDown(int widget,
Event event)
Window
eventWidgetDown in class DialogWindowwidget - the widget that went up
View.eventWidgetDown(int, danger.app.Event)public void setDisplayedSize(int bytes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||