org.universAAL.middleware.ui.rdf
Class MediaObject

Package class diagram package MediaObject
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.ui.rdf.FormElement
              extended by org.universAAL.middleware.ui.rdf.FormControl
                  extended by org.universAAL.middleware.ui.rdf.Output
                      extended by org.universAAL.middleware.ui.rdf.MediaObject

public class MediaObject
extends Output

An Output control for presenting media (content that goes beyond plain text).

Author:
mtazari, Carsten Stockloew

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

MY_URI

public static final String MY_URI
See Also:
Constant Field Values

PROP_CONTENT_TYPE

public static final String PROP_CONTENT_TYPE
The Internet media type of the content borne by a media object.

See Also:
http://en.wikipedia.org/wiki/Internet_media_type, Constant Field Values

PROP_CONTENT_URL

public static final String PROP_CONTENT_URL
The URL with which the media content can be retrieved.

See Also:
Constant Field Values

PROP_RESOLUTION_MAX_X

public static final String PROP_RESOLUTION_MAX_X
An optional hint for UI handlers regarding the maximum horizontal size of a visualizable media in number of pixels.

See Also:
Constant Field Values

PROP_RESOLUTION_MAX_Y

public static final String PROP_RESOLUTION_MAX_Y
An optional hint for UI handlers regarding the maximum vertical size of a visualizable media in number of pixels.

See Also:
Constant Field Values

PROP_RESOLUTION_MIN_X

public static final String PROP_RESOLUTION_MIN_X
An optional hint for UI handlers regarding the minimum horizontal size of a visualizable media in number of pixels.

See Also:
Constant Field Values

PROP_RESOLUTION_MIN_Y

public static final String PROP_RESOLUTION_MIN_Y
An optional hint for UI handlers regarding the minimum vertical size of a visualizable media in number of pixels.

See Also:
Constant Field Values

PROP_RESOLUTION_PREFERRED_X

public static final String PROP_RESOLUTION_PREFERRED_X
An optional hint for UI handlers regarding the preferred horizontal size of a visualizable media in number of pixels.

See Also:
Constant Field Values

PROP_RESOLUTION_PREFERRED_Y

public static final String PROP_RESOLUTION_PREFERRED_Y
An optional hint for UI handlers regarding the preferred vertical size of a visualizable media in number of pixels.

See Also:
Constant Field Values
Constructor Detail

MediaObject

public MediaObject()
For exclusive use by de-serializers.


MediaObject

public MediaObject(Group parent,
                   Label label,
                   String contentType,
                   String contentURL)
Constructs a new media object.

Parameters:
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

getContentType

public String getContentType()
See Also:
PROP_CONTENT_TYPE

getContentURL

public String getContentURL()
See Also:
PROP_CONTENT_URL

getMaxLength

public 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.

Overrides:
getMaxLength in class FormControl

getResolutionMaxX

public int getResolutionMaxX()
Deprecated. 

See Also:
PROP_RESOLUTION_MAX_X

getResolutionMaxY

public int getResolutionMaxY()
Deprecated. 

See Also:
PROP_RESOLUTION_MAX_Y

getResolutionMinX

public int getResolutionMinX()
Deprecated. 

See Also:
PROP_RESOLUTION_MIN_X

getResolutionMinY

public int getResolutionMinY()
Deprecated. 

See Also:
PROP_RESOLUTION_MIN_Y

getResolutionPreferredX

public int getResolutionPreferredX()
Deprecated. 

See Also:
PROP_RESOLUTION_PREFERRED_X

getResolutionPreferredY

public int getResolutionPreferredY()
Deprecated. 

See Also:
PROP_RESOLUTION_PREFERRED_Y

setMaxResolution

public void setMaxResolution(int x,
                             int y)
Deprecated. use the FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation) generalized method to provide the same information.

Sets the maximum size in number of pixels.

Parameters:
x - See PROP_RESOLUTION_MAX_X
y - See PROP_RESOLUTION_MAX_Y

setMinResolution

public void setMinResolution(int x,
                             int y)
Deprecated. use the FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation) generalized method to provide the same information.

Sets the minimum size in number of pixels.

Parameters:
x - See PROP_RESOLUTION_MIN_X
y - See PROP_RESOLUTION_MIN_Y

setPreferredResolution

public void setPreferredResolution(int x,
                                   int y)
Deprecated. use the FormElement.addAppearanceRecommendation(org.universAAL.middleware.ui.owl.Recommendation) generalized method to provide the same information.

Sets the preferred size in number of pixels.

Parameters:
x - See PROP_RESOLUTION_PREFERRED_X
y - See PROP_RESOLUTION_PREFERRED_Y

setProperty

public boolean setProperty(String propURI,
                           Object value)
Description copied from class: FormControl
For usage by de-serializers.

Overrides:
setProperty in class FormControl
Returns:
true if the property changed as a result of the call
See Also:
FormControl.setProperty(String, Object)


Copyright © 2014 universAAL Consortium. All Rights Reserved.