Spec-Zone .ru
спецификации, руководства, описания, API
|
Modifier | Constructor and Description |
---|---|
protected |
MediaBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(Media x) |
Media |
build()
Make an instance of
Media based on the properties set on this builder. |
static MediaBuilder |
create()
Creates a new instance of MediaBuilder.
|
MediaBuilder |
onError(java.lang.Runnable x)
Set the value of the
onError property for the instance constructed by this builder. |
MediaBuilder |
source(java.lang.String x)
Set the value of the
source property for the instance constructed by this builder. |
MediaBuilder |
tracks(java.util.Collection<? extends Track> x)
Add the given items to the List of items in the
tracks property for the instance constructed by this builder. |
MediaBuilder |
tracks(Track... x)
Add the given items to the List of items in the
tracks property for the instance constructed by this builder. |
public static MediaBuilder create()
public void applyTo(Media x)
public MediaBuilder onError(java.lang.Runnable x)
onError
property for the instance constructed by this builder.public MediaBuilder source(java.lang.String x)
source
property for the instance constructed by this builder.public MediaBuilder tracks(java.util.Collection<? extends Track> x)
tracks
property for the instance constructed by this builder.public MediaBuilder tracks(Track... x)
tracks
property for the instance constructed by this builder.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to