|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.Item
de.enough.polish.ui.Gauge
de.enough.polish.video.control.VolumeControlItem
public class VolumeControlItem
A gauge to set the volume of a video in a VideoItem
| Field Summary | |
|---|---|
static int |
MAX_VOLUME
The maximum volume to set |
static int |
STEPS
The steps to set the volume |
| Fields inherited from class de.enough.polish.ui.Gauge |
|---|
CONTINUOUS_IDLE, CONTINUOUS_RUNNING, INCREMENTAL_IDLE, INCREMENTAL_UPDATING, INDEFINITE |
| Constructor Summary | |
|---|---|
VolumeControlItem(VideoContainer item)
Constructs a new VolumeControlItem |
|
VolumeControlItem(VideoContainer item,
Style style)
Constructs a new VolumeControlItem with a style |
|
| Method Summary | |
|---|---|
void |
itemStateChanged(Item item)
Called when internal state of an Item has been
changed by the user. |
void |
onSnapshot(byte[] data,
String encoding)
Called when a capture is done |
void |
onVideoClose()
Called when a video is destroyed |
void |
onVideoError(Exception e)
Called when an error occures |
void |
onVideoPartReady(VideoSource source)
|
void |
onVideoPause()
Called when the video is paused |
void |
onVideoPlay()
Called when the video is played |
void |
onVideoReady()
Called when a video is fully prepared |
void |
onVideoStop()
Called when the video is stopped |
void |
setVolume(int percent)
Sets the volume to display, must be in percent |
| Methods inherited from class de.enough.polish.ui.Gauge |
|---|
animate, createCssSelector, getMaxValue, getValue, handleKeyPressed, handlePointerDragged, handlePointerPressed, hideNotify, initContent, isInteractive, paintContent, setImage, setMaxValue, setStyle, setStyle, setValue, showNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_VOLUME
public static final int STEPS
| Constructor Detail |
|---|
public VolumeControlItem(VideoContainer item)
item - the VideoItem to control
public VolumeControlItem(VideoContainer item,
Style style)
item - the VideoItem to controlstyle - the style| Method Detail |
|---|
public void setVolume(int percent)
percent - the volume in percentpublic void onVideoReady()
VideoCallback
onVideoReady in interface VideoCallbackpublic void onVideoPartReady(VideoSource source)
public void onVideoError(Exception e)
VideoCallback
onVideoError in interface VideoCallbackpublic void onVideoPause()
VideoCallback
onVideoPause in interface VideoCallbackpublic void onVideoPlay()
VideoCallback
onVideoPlay in interface VideoCallbackpublic void onVideoStop()
VideoCallback
onVideoStop in interface VideoCallbackpublic void onVideoClose()
VideoCallback
onVideoClose in interface VideoCallbackpublic void itemStateChanged(Item item)
ItemStateListenerItem has been
changed by the user.
This happens when the user:
ChoiceGroup;Gauge;TextField;DateField; andItem.notifyStateChanged() was called on an
Item. It is up to the device to decide when it considers a
new value to have been entered into an Item. For example,
implementations of text editing within a TextField
vary greatly
from device to device.
In general, it is not expected that the listener will be called
after every change is made. However, if an item's value
has been changed, the listener
will be called to notify the application of the change
before it is called for a change on another item, and before a
command is delivered to the Form's
CommandListener. For implementations that have the
concept of an input
focus, the listener should be called no later than when the focus moves
away from an item whose state has been changed. The listener
should be called only if the item's value has actually been
changed.
The listener is not called if the application changes the value of an interactive item.
itemStateChanged in interface ItemStateListeneritem - the item that was changed
public void onSnapshot(byte[] data,
String encoding)
VideoCallback
onSnapshot in interface VideoCallbackdata - the resulting data of the capture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||