Record Class UiFragment
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.api.plugins.web.page.ui.UiFragment
- Record Components:
key- unique key used to identify element under typeplacement- string value identifying unique place in application where fragment should be rendered. Placement value is defined by component using UI Fragments. For example "adminPanelQuickAccess" is top left menu with navigation elements.resource- relative link to resource to be displayed. Usually it should be link to JS with react component, but it may be different for some placements. The best is to consult with documentation for specific placement to make sure.order- numerical key used to sort elements under the same placement
Represents single UI element that should be dynamically rendered.
NOTE: elements are showed sorted by order property, then by key.
-
Constructor Summary
ConstructorsConstructorDescriptionUiFragment(String key, String placement, String resource, int order) Creates an instance of aUiFragmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.intorder()Returns the value of theorderrecord component.Returns the value of theplacementrecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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
public final int 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
placement
Returns the value of theplacementrecord component.- Returns:
- the value of the
placementrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-