Package org.ametys.odf.tree
Record Class ODFTreeIndicator.IndicatorData
java.lang.Object
java.lang.Record
org.ametys.odf.tree.ODFTreeIndicator.IndicatorData
- Record Components:
tooltip
- The tooltiptext
- The text value. Can be nullcssClass
- the CSS class for the icon glyph. Can be nulladditionalData
- the additional data. Can be null or empty.
- Enclosing interface:
- ODFTreeIndicator
public static record ODFTreeIndicator.IndicatorData(I18nizableText tooltip, I18nizableText text, String cssClass, Map<String,Object> additionalData)
extends Record
Record for indicator data
-
Constructor Summary
ConstructorDescriptionIndicatorData
(I18nizableText tooltip, I18nizableText text, String cssClass, Map<String, Object> additionalData) Creates an instance of aIndicatorData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalData
record component.cssClass()
Returns the value of thecssClass
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.text()
Returns the value of thetext
record component.tooltip()
Returns the value of thetooltip
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IndicatorData
public IndicatorData(I18nizableText tooltip, I18nizableText text, String cssClass, Map<String, Object> additionalData) Creates an instance of aIndicatorData
record class.- Parameters:
tooltip
- the value for thetooltip
record componenttext
- the value for thetext
record componentcssClass
- the value for thecssClass
record componentadditionalData
- the value for theadditionalData
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
tooltip
Returns the value of thetooltip
record component.- Returns:
- the value of the
tooltip
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
cssClass
Returns the value of thecssClass
record component.- Returns:
- the value of the
cssClass
record component
-
additionalData
Returns the value of theadditionalData
record component.- Returns:
- the value of the
additionalData
record component
-