Interface BinaryMedium
- All Known Subinterfaces:
GraphicalMedium
,MappingMedium
public interface BinaryMedium
A binary medium used by
FileEditorValue
- Since:
- 4.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The type of the binary medium. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the alt text.Gets a comment.Returns the element of the binary medium.Returns the element name of the binary medium.getFile()
Returns the file of the binary medium.Returns the folder of the binary medium.Returns the language of the binary medium.Returns the medium of the binary medium.Returns the picture of the binary medium.Returns the remote name.getType()
Returns the type of this binary medium.boolean
isEmpty()
Checks if this binary medium is empty.void
setAltText
(String altText) Sets an alt text for the medium.void
setComment
(String comment) Sets a comment.void
setElementName
(String name) Set the element name.void
setFolder
(MediaFolder folder) Sets the folder of the binary medium.void
Sets the medium of the binary medium.void
setRemoteName
(String remoteName) Sets a remote name for the medium
-
Field Details
-
MEDIA_REF_PREFIX
The media reference prefix.- Since:
- 4.0
-
MEDIA_FOLDER_REF_PREFIX
The media folder prefix.- Since:
- 4.0
-
-
Method Details
-
setRemoteName
@ApiDoc(comment="Sets a remote name for the medium", since="4.0") void setRemoteName(String remoteName) Sets a remote name for the medium- Parameters:
remoteName
- the remote name to set.- Since:
- 4.0
-
setAltText
Sets an alt text for the medium.- Parameters:
altText
- the text to set.- Since:
- 4.0
-
getMedium
Returns the medium of the binary medium.- Returns:
- the medium.
- Since:
- 4.0
-
setMedium
Sets the medium of the binary medium.- Parameters:
medium
- the medium to set.- Since:
- 4.0
-
getFolder
Returns the folder of the binary medium.- Returns:
- the folder of the medium
- Since:
- 4.0.69
-
setFolder
@ApiDoc(comment="Sets the folder of the binary medium.", since="4.0.69") void setFolder(MediaFolder folder) Sets the folder of the binary medium.- Parameters:
folder
- the media folder to set.- Since:
- 4.0.69
-
getPicture
Returns the picture of the binary medium.- Returns:
- the picture of the binary medium.
- Since:
- 4.0.69
-
getFile
Returns the file of the binary medium.- Returns:
- the file of the binary medium.
- Since:
- 4.0.69
-
getElement
@ApiDoc(comment="Returns the element of the binary medium.", since="4.0.101") Referenceable getElement()Returns the element of the binary medium.- Returns:
- the element of the binary medium.
- Since:
- 4.0.101
-
setElementName
Set the element name. Must start with eitherMEDIA_REF_PREFIX
orMEDIA_FOLDER_REF_PREFIX
to identify the respective medium type.- Parameters:
name
- The name of the medium.- Since:
- 4.1.10
-
getElementName
@ApiDoc(comment="Returns the element name of the binary medium.", since="4.1.10") String getElementName()Returns the element name of the binary medium.- Returns:
- the element name.
- Since:
- 4.1.10
-
getRemoteName
Returns the remote name.- Returns:
- the remote name.
- Since:
- 4.0
-
getLanguage
Returns the language of the binary medium.- Returns:
- the language of the binary medium.
- Since:
- 4.0
-
getComment
Gets a comment.- Returns:
- the comment.
- Since:
- 4.0
-
setComment
Sets a comment.- Parameters:
comment
- the comment to set.- Since:
- 4.0
-
isEmpty
Checks if this binary medium is empty.- Returns:
- true is this medium is empty.
- Since:
- 4.0
-
getAltText
Returns the alt text.- Returns:
- the alt text.
- Since:
- 4.0
-
getType
@ApiDoc(comment="Returns the type of this binary medium.", since="4.0.69") BinaryMedium.Type getType()Returns the type of this binary medium.- Returns:
- the type of this binary medium.
- Since:
- 4.0.69
-