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
ConstructorsConstructorDescriptionIndicatorData(I18nizableText tooltip, I18nizableText text, String cssClass, Map<String, Object> additionalData) Creates an instance of aIndicatorDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalDatarecord component.cssClass()Returns the value of thecssClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.tooltip()Returns the value of thetooltiprecord component.final StringtoString()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 aIndicatorDatarecord class.- Parameters:
tooltip- the value for thetooltiprecord componenttext- the value for thetextrecord componentcssClass- the value for thecssClassrecord componentadditionalData- the value for theadditionalDatarecord 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 thetooltiprecord component.- Returns:
- the value of the
tooltiprecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
cssClass
Returns the value of thecssClassrecord component.- Returns:
- the value of the
cssClassrecord component
-
additionalData
Returns the value of theadditionalDatarecord component.- Returns:
- the value of the
additionalDatarecord component
-