|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.support.utils.ui.Control
org.universAAL.support.utils.ui.Media
public class Media
Class representing a Multimedia Output UI element. Multimedia Output can be of different types and their display depends completely on the UI renderer (a voice renderer cannot display an image). The output is represented as a String URL in the Resource server.
Example render:
__________ Label | | | :) | |__________|
Field Summary |
---|
Fields inherited from class org.universAAL.support.utils.ui.Control |
---|
help, hint, label, MY_NAMESPACE, ref |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.universAAL.support.utils.ui.Control |
---|
getHelp, getHint, getLabel, getReference, setHelp, setHint, setLabel, setReference, setReference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 Media(String label, String url, String type)
label
- The label text that identifies the output to the user.url
- The URL to the value to be displayed, from the Resource
server.type
- The type of media element. By default it's IMG.Method Detail |
---|
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 type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |