Modifier and Type | Field and Description |
---|---|
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.
|
PROP_CONTROL_LABEL, PROP_HELP, PROP_HINT, PROP_PARENT_CONTROL, PROP_REFERENCED_PPATH, PROP_VALUE_RESTRICTION
PROP_APPEARANCE
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, 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, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Constructor and Description |
---|
MediaObject()
For exclusive use by de-serializers.
|
MediaObject(Group parent,
Label label,
String contentType,
String contentURL)
Constructs a new media object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAncestorRepeat, getFormObject, getHelpString, getHintString, getLabel, getParentGroup, getParentRepeat, getReferencedPPath, getRestrictions, getSuperGroups, getTypeURI, getValue, hasFocus, hasValue, isOfBooleanType, isOfPrimitiveType, isRepeatable, setHelpString, setHintString, toString
addAppearanceRecommendation, getAppearanceRecommendations
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toStringRecursive, toStringRecursive, unliteral
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
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.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)
Copyright © 2018 universAAL Consortium. All rights reserved.