|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.ui.rdf.FormElement
org.universAAL.middleware.ui.rdf.FormControl
org.universAAL.middleware.ui.rdf.Output
org.universAAL.middleware.ui.rdf.MediaObject
public class MediaObject
An Output
control for presenting media (content that goes beyond
plain text).
Field Summary | |
---|---|
static String |
MY_URI
|
static String |
PROP_CONTENT_TYPE
The Internet media type of the content borne by a media object. |
static String |
PROP_CONTENT_URL
The URL with which the media content can be retrieved. |
static String |
PROP_RESOLUTION_MAX_X
An optional hint for UI handlers regarding the maximum horizontal size of a visualizable media in number of pixels. |
static String |
PROP_RESOLUTION_MAX_Y
An optional hint for UI handlers regarding the maximum vertical size of a visualizable media in number of pixels. |
static String |
PROP_RESOLUTION_MIN_X
An optional hint for UI handlers regarding the minimum horizontal size of a visualizable media in number of pixels. |
static String |
PROP_RESOLUTION_MIN_Y
An optional hint for UI handlers regarding the minimum vertical size of a visualizable media in number of pixels. |
static String |
PROP_RESOLUTION_PREFERRED_X
An optional hint for UI handlers regarding the preferred horizontal size of a visualizable media in number of pixels. |
static String |
PROP_RESOLUTION_PREFERRED_Y
An optional hint for UI handlers regarding the preferred vertical size of a visualizable media in number of pixels. |
Fields inherited from class org.universAAL.middleware.ui.rdf.FormControl |
---|
PROP_CONTROL_LABEL, PROP_HELP, PROP_HINT, PROP_PARENT_CONTROL, PROP_REFERENCED_PPATH, PROP_VALUE_RESTRICTION |
Fields inherited from class org.universAAL.middleware.ui.rdf.FormElement |
---|
PROP_APPEARANCE |
Fields inherited from class org.universAAL.middleware.rdf.Resource |
---|
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri |
Constructor Summary | |
---|---|
MediaObject()
For exclusive use by de-serializers. |
|
MediaObject(Group parent,
Label label,
String contentType,
String contentURL)
Constructs a new media object. |
Method Summary | |
---|---|
String |
getContentType()
|
String |
getContentURL()
|
int |
getMaxLength()
Overrides the default implementation in FormControl.getMaxLength() and returns always -1 as the intended
number of characters does not apply to media objects. |
int |
getResolutionMaxX()
Deprecated. |
int |
getResolutionMaxY()
Deprecated. |
int |
getResolutionMinX()
Deprecated. |
int |
getResolutionMinY()
Deprecated. |
int |
getResolutionPreferredX()
Deprecated. |
int |
getResolutionPreferredY()
Deprecated. |
void |
setMaxResolution(int x,
int y)
Deprecated. use the FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation)
generalized method to provide the same information. |
void |
setMinResolution(int x,
int y)
Deprecated. use the FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation)
generalized method to provide the same information. |
void |
setPreferredResolution(int x,
int y)
Deprecated. use the FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation)
generalized method to provide the same information. |
boolean |
setProperty(String propURI,
Object value)
For usage by de-serializers. |
Methods inherited from class org.universAAL.middleware.ui.rdf.FormControl |
---|
getAncestorRepeat, getFormObject, getHelpString, getHintString, getLabel, getParentGroup, getParentRepeat, getReferencedPPath, getRestrictions, getSuperGroups, getTypeURI, getValue, hasFocus, hasValue, isOfBooleanType, isOfPrimitiveType, isRepeatable, setHelpString, setHintString, toString |
Methods inherited from class org.universAAL.middleware.ui.rdf.FormElement |
---|
addAppearanceRecommendation, getAppearanceRecommendations |
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource |
---|
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties |
Methods inherited from class org.universAAL.middleware.rdf.Resource |
---|
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toStringRecursive, toStringRecursive, unliteral |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String MY_URI
public static final String PROP_CONTENT_TYPE
public static final String PROP_CONTENT_URL
public static final String PROP_RESOLUTION_MAX_X
public static final String PROP_RESOLUTION_MAX_Y
public static final String PROP_RESOLUTION_MIN_X
public static final String PROP_RESOLUTION_MIN_Y
public static final String PROP_RESOLUTION_PREFERRED_X
public static final String PROP_RESOLUTION_PREFERRED_Y
Constructor Detail |
---|
public MediaObject()
public MediaObject(Group parent, Label label, String contentType, String contentURL)
parent
- The mandatory parent group as the direct container of this
media object. See FormControl.PROP_PARENT_CONTROL
.label
- The optional Label
to be associated with this media
object. See FormControl.PROP_CONTROL_LABEL
.contentType
- See PROP_CONTENT_TYPE
; mandatory.contentURL
- See PROP_CONTENT_URL
; mandatory.Method Detail |
---|
public String getContentType()
PROP_CONTENT_TYPE
public String getContentURL()
PROP_CONTENT_URL
public int getMaxLength()
FormControl.getMaxLength()
and returns always -1 as the intended
number of characters does not apply to media objects.
getMaxLength
in class FormControl
public int getResolutionMaxX()
PROP_RESOLUTION_MAX_X
public int getResolutionMaxY()
PROP_RESOLUTION_MAX_Y
public int getResolutionMinX()
PROP_RESOLUTION_MIN_X
public int getResolutionMinY()
PROP_RESOLUTION_MIN_Y
public int getResolutionPreferredX()
PROP_RESOLUTION_PREFERRED_X
public int getResolutionPreferredY()
PROP_RESOLUTION_PREFERRED_Y
public void setMaxResolution(int x, int y)
FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation)
generalized method to provide the same information.
x
- See PROP_RESOLUTION_MAX_X
y
- See PROP_RESOLUTION_MAX_Y
public void setMinResolution(int x, int y)
FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation)
generalized method to provide the same information.
x
- See PROP_RESOLUTION_MIN_X
y
- See PROP_RESOLUTION_MIN_Y
public void setPreferredResolution(int x, int y)
FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation)
generalized method to provide the same information.
x
- See PROP_RESOLUTION_PREFERRED_X
y
- See PROP_RESOLUTION_PREFERRED_Y
public boolean setProperty(String propURI, Object value)
FormControl
setProperty
in class FormControl
FormControl.setProperty(String, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |