Class HiddenElement
java.lang.Object
com.aquima.interactions.composer.model.Element
com.aquima.interactions.composer.model.HiddenElement
- All Implemented Interfaces:
IElement
,Serializable
This element is used in the page model to represent a hidden element. Hidden elements are not expanded, but by adding
this HiddenElement place-holder, the client can still 'see' there was an element definition present. This will also
ensure that generated keys stay the same regardless of the visibility of elements.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HiddenElement
(HiddenElement other) HiddenElement
(String name, ElementType type) Constructs a hidden element place-holder for the specified element name and type. -
Method Summary
Modifier and TypeMethodDescriptionThis method should clone the element and return the cloned element.getType()
This method returns the type of the element that was not visible.boolean
This method returns a boolean indicating if the element should be visible.Methods inherited from class com.aquima.interactions.composer.model.Element
accept, addPresentationStyle, equals, evaluateTsl, getName, getParent, getPresentationStyles, getProperty, getPropertyKeys, getRuntimeKey, getVisibilityCondition, hasFocus, hashCode, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, setFocus, setParent, setPresentationStyle, setPresentationStyles, setPresentationStyles, setProperty, setReadonly, setReadonlyInheritFromParent, setRuntimeKey, setVisibilityCondition, setVisible
-
Constructor Details
-
HiddenElement
Constructs a hidden element place-holder for the specified element name and type.- Parameters:
name
- The name of the element that is not visible.type
- The type of the hidden element.
-
HiddenElement
-
-
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.- Returns:
- The cloned (duplicate) element.
-
getType
This method returns the type of the element that was not visible.- Returns:
- the type of the element that was not visible.
-
isVisible
public boolean isVisible()Description copied from interface:IElement
This method returns a boolean indicating if the element should be visible. An element is visible when the element itself is specified as being visible and the parent container (if available) is visible.
-