|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.bramosystems.oss.player.core.client.skin.MediaSeekBar
public abstract class MediaSeekBar
Abstract base class for seek bar implementations.
Provides means of controlling loading and playing progress indicators during media loading and playback respectively.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected com.google.gwt.user.client.ui.AbsolutePanel |
seekTrack
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
MediaSeekBar(int height)
Constructs MediaSeekBar of the specified height. |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addSeekChangeHandler(SeekChangeHandler handler)
Adds the specified handler to the player. |
double |
getLoadingProgress()
Returns the progress of the media loading operation |
double |
getPlayingProgress()
Returns the progress of the media playback operation |
protected void |
initSeekBar(com.google.gwt.user.client.ui.Widget loadingWidget,
com.google.gwt.user.client.ui.Widget playingWidget)
Initialize the seek bar with the widgets that will be used to indicate media loading and playback progress respectively. |
protected void |
initWidget(com.google.gwt.user.client.ui.Widget widget)
Overridden to prevent subclasses from changing the wrapped widget. |
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
|
void |
setLoadingProgress(double loadingProgress)
Set the progress of the media loading operation. |
void |
setPlayingProgress(double playingProgress)
Set the progress of the media playback operation. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
protected com.google.gwt.user.client.ui.AbsolutePanel seekTrack
| Constructor Detail |
|---|
public MediaSeekBar(int height)
MediaSeekBar of the specified height.
height - the height of the seek bar in pixels| Method Detail |
|---|
protected void initWidget(com.google.gwt.user.client.ui.Widget widget)
initSeekBar instead.
initWidget in class com.google.gwt.user.client.ui.CompositeinitSeekBar(com.google.gwt.user.client.ui.Widget, com.google.gwt.user.client.ui.Widget)
protected final void initSeekBar(com.google.gwt.user.client.ui.Widget loadingWidget,
com.google.gwt.user.client.ui.Widget playingWidget)
Subclasses should call this method before calling any Widget methods on this object.
loadingWidget - loading progress indicator widgetplayingWidget - playback progress indicator widgetpublic final void setLoadingProgress(double loadingProgress)
loadingProgress - progress should be between 0 (the minimum)
and 1 (the maximum). Any value outside the range will be ignored.public final double getLoadingProgress()
0 (the minimum)
and 1 (the maximum)public final double getPlayingProgress()
0 (the minimum)
and 1 (the maximum)public final void setPlayingProgress(double playingProgress)
playingProgress - progress should be between 0 (the minimum)
and 1 (the maximum). Any value outside the range will be ignored.public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandlerpublic final com.google.gwt.event.shared.HandlerRegistration addSeekChangeHandler(SeekChangeHandler handler)
addSeekChangeHandler in interface HasSeekChangeHandlershandler - the handler
SeekChangeHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||