PromptPresenter
, ServiceDescriptorProvider<PromptPresenterServiceDescriptor>
MediaPromptPresenter2
BasicMediaPromptPresenter
, FormattedTextAndAudioJavaSoundViewer
, ImageAndAudioJavaSoundViewer
, PlainTextAndAudioJavaSoundViewer
, PromptAudioJavaSoundViewer
, TextButtonAudioJavaSoundViewer
public interface MediaPromptPresenter extends PromptPresenter
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Close (release) the prompter.
|
void |
open() |
Open the prompter.
|
boolean |
requiresDisplayableToRun() |
Returns true if the presenter requires an UI panel already connected to the UI toolkit to run.
|
void |
setAudioMixer(javax.sound.sampled.Mixer mixer) |
Set audio mixer (for plugins using JavaSound)
|
void |
setSilent(boolean silent) |
If set silent, the media presenter should not play audio.
|
void |
setStartControlAction(javax.swing.Action startControlAction) |
Set start action for playback.
|
void |
setStopControlAction(javax.swing.Action stopControlAction) |
Set stop action for playback.
|
void |
start() |
Start the prompt media.
|
void |
stop() |
Stop the prompt media.
|
addPromptPresenterListener, getEmphasized, getServiceDescriptor, getSupportedLegacyMIMETypes, loadContents, removePromptPresenterListener, setContents, setContextURL, setEmphasized, setPromptFont
void setAudioMixer(javax.sound.sampled.Mixer mixer) throws PromptPresenterPluginException
mixer
- PromptPresenterPluginException
void setSilent(boolean silent)
silent
- void setStartControlAction(javax.swing.Action startControlAction)
startControlAction
- void setStopControlAction(javax.swing.Action stopControlAction)
stopControlAction
- void open() throws PromptPresenterException
PromptPresenterException
void start() throws PromptPresenterException
PromptPresenterException
void stop() throws PromptPresenterException
PromptPresenterException
void close() throws PromptPresenterException
PromptPresenterException
boolean requiresDisplayableToRun()