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 aUiFragment
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.int
order()
Returns the value of theorder
record component.Returns the value of theplacement
record component.resource()
Returns the value of theresource
record component.final String
toString()
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 thekey
record component.- Returns:
- the value of the
key
record component
-
placement
Returns the value of theplacement
record component.- Returns:
- the value of the
placement
record component
-
resource
Returns the value of theresource
record component.- Returns:
- the value of the
resource
record component
-
order
public int order()Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-