Class Asset
java.lang.Object
com.aquima.interactions.composer.model.Element
com.aquima.interactions.composer.model.Asset
- All Implemented Interfaces:
IAsset
,IElement
,Serializable
Simple runtime page element to represent a block of text.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method should clone the element and return the cloned element.boolean
This method returns the content type of the text element.getText()
This method returns a multilingual text object containing the actual content of the text element.int
hashCode()
void
setContentType
(String contentType) This method may be used to override the content type of the text element.void
setText
(IMultilingualText text) This method can be used to change the text of the element.Methods inherited from class com.aquima.interactions.composer.model.Element
accept, addPresentationStyle, evaluateTsl, getName, getParent, getPresentationStyles, getProperty, getPropertyKeys, getRuntimeKey, getVisibilityCondition, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible, setFocus, setParent, setPresentationStyle, setPresentationStyles, setPresentationStyles, setProperty, setReadonly, setReadonlyInheritFromParent, setRuntimeKey, setVisibilityCondition, setVisible
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.composer.IElement
accept, getName, getParent, getPresentationStyles, getProperty, getPropertyKeys, getRuntimeKey, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible, setProperty
-
Constructor Details
-
Asset
Constructor which requires a name and the content text.- Parameters:
name
- The name of the text element (mandatory).contentType
- The type of the content text (optional).text
- The content of the text element (mandatory).
-
Asset
-
-
Method Details
-
duplicate
Description copied from interface:IElement
This method should clone the element and return the cloned element. The duplicate method should usually make a deep copy of the element, with the exception of members that are not mutable (and thus can safely be shared between multiple copies). The properties of an element are considered to be non-mutable, and will thus by default be copied. -
getText
Description copied from interface:IAsset
This method returns a multilingual text object containing the actual content of the text element. -
setText
This method can be used to change the text of the element.- Parameters:
text
- Object containing the new text (content) for the element.
-
getContentType
Description copied from interface:IAsset
This method returns the content type of the text element. The content type is optional, so this method may return a null value when the content type is not available. The content type will usually be the asset format that was used when including the text on a container.- Specified by:
getContentType
in interfaceIAsset
- Returns:
- The content type of the text element.
-
setContentType
This method may be used to override the content type of the text element. The content type is optional, so this method may also be used to clear the content type by providing a null value.- Parameters:
contentType
- The new content type of the text element.
-
equals
-
hashCode
public int hashCode()
-