Package org.ametys.web.contenttype
Record Class SkinContentViewHelper.SkinContentView
java.lang.Object
java.lang.Record
org.ametys.web.contenttype.SkinContentViewHelper.SkinContentView
- Record Components:
skinName
- the skin namename
- the view namemodelViewName
- the model view used by this rendering viewformat
- the output format (html, pdf, doc, ..)label
- the view labeldescription
- the view descriptioniconGlyph
- the icon glyph. Can be null.iconDecorator
- the icon decoration. Can be null.iconSmall
- the small icon. Can be null.iconMedium
- the medium icon. Can be null.iconLarge
- the large icon. Can be null.
- Enclosing class:
- SkinContentViewHelper
public static record SkinContentViewHelper.SkinContentView(String skinName, String name, String modelViewName, String format, I18nizableText label, I18nizableText description, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge)
extends Record
Rendering view of a content brought by a skin
-
Constructor Summary
ConstructorsConstructorDescriptionSkinContentView
(String skinName, String name, String modelViewName, String format, I18nizableText label, I18nizableText description, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge) Creates an instance of aSkinContentView
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theiconDecorator
record component.Returns the value of theiconGlyph
record component.Returns the value of theiconLarge
record component.Returns the value of theiconMedium
record component.Returns the value of theiconSmall
record component.label()
Returns the value of thelabel
record component.Returns the value of themodelViewName
record component.name()
Returns the value of thename
record component.skinName()
Returns the value of theskinName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SkinContentView
public SkinContentView(String skinName, String name, String modelViewName, String format, I18nizableText label, I18nizableText description, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge) Creates an instance of aSkinContentView
record class.- Parameters:
skinName
- the value for theskinName
record componentname
- the value for thename
record componentmodelViewName
- the value for themodelViewName
record componentformat
- the value for theformat
record componentlabel
- the value for thelabel
record componentdescription
- the value for thedescription
record componenticonGlyph
- the value for theiconGlyph
record componenticonDecorator
- the value for theiconDecorator
record componenticonSmall
- the value for theiconSmall
record componenticonMedium
- the value for theiconMedium
record componenticonLarge
- the value for theiconLarge
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)
. -
skinName
Returns the value of theskinName
record component.- Returns:
- the value of the
skinName
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
modelViewName
Returns the value of themodelViewName
record component.- Returns:
- the value of the
modelViewName
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
iconGlyph
Returns the value of theiconGlyph
record component.- Returns:
- the value of the
iconGlyph
record component
-
iconDecorator
Returns the value of theiconDecorator
record component.- Returns:
- the value of the
iconDecorator
record component
-
iconSmall
Returns the value of theiconSmall
record component.- Returns:
- the value of the
iconSmall
record component
-
iconMedium
Returns the value of theiconMedium
record component.- Returns:
- the value of the
iconMedium
record component
-
iconLarge
Returns the value of theiconLarge
record component.- Returns:
- the value of the
iconLarge
record component
-