public class Media extends Control
Example render:
__________ Label | | | :) | |__________|
Constructor and Description |
---|
Media()
Generic empty constructor.
|
Media(String url)
Constructor with only the url.
|
Media(String label,
String url)
Constructor with the URL value.
|
Media(String label,
String url,
String type)
Constructor with the URL value.
|
Modifier and Type | Method and Description |
---|---|
String[] |
create(Group group)
This method is for internal use of utils only.
|
String |
getType()
Get the type of media element of the value.
|
String |
getUrl()
Get the URL to the the value to be displayed, from the Resource server.
|
void |
setType(String type)
Set the type of media element of the value.
|
void |
setUrl(String url)
Set the URL to the the value to be displayed, from the Resource server.
|
getHelp, getHint, getLabel, getReference, setHelp, setHint, setLabel, setReference, setReference
public Media()
public Media(String url)
url
- The URL to the value to be displayed, from the Resource
server.public Media(String label, String url)
label
- The label text that identifies the output to the user.url
- The URL to the value to be displayed, from the Resource
server.public String[] create(Group group)
Control
create
in class Control
group
- The UI group to which the control is being added.public String getUrl()
public void setUrl(String url)
url
- The URLpublic String getType()
public void setType(String type)
type
- The media typeCopyright © 2018 universAAL Consortium. All rights reserved.