Package limn.backend.spi
Record Class MenuBarReading
java.lang.Object
java.lang.Record
limn.backend.spi.MenuBarReading
- Record Components:
about- the item that says what the application is, for the application's own menu, ornull; only its number, its enabled state and whether it is there are used, the system having its own label for itsettings- the item that opens the application's settings, likewise- the bar's menus in the application's order, the items above taken out and the item that ends the application dropped, the system having its ownrightToLeft- whether the application reads from the right
public record MenuBarReading(@Nullable MenuRow about, @Nullable MenuRow settings, List<MenuBarReading.Top> menus, boolean rightToLeft)
extends Record
A menu bar as a backend is handed it for the system's own bar: what the application declared,
already sorted into the places a system that keeps the bar outside the window has for it.
One reading numbers the rows of the whole bar, the two of the application's menu included, and a number means nothing once the bar has been read again.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat a menu of the bar is to the system.static final recordOne menu of the bar. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMenuBarReading(@Nullable MenuRow about, @Nullable MenuRow settings, List<MenuBarReading.Top> menus, boolean rightToLeft) Creates an instance of aMenuBarReadingrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MenuRowabout()Returns the value of theaboutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.menus()Returns the value of themenusrecord component.booleanReturns the value of therightToLeftrecord component.@Nullable MenuRowsettings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
A bar with nothing in it.
-
-
Constructor Details
-
MenuBarReading
public MenuBarReading(@Nullable MenuRow about, @Nullable MenuRow settings, List<MenuBarReading.Top> menus, boolean rightToLeft) Creates an instance of aMenuBarReadingrecord class.- Parameters:
about- the value for theaboutrecord componentsettings- the value for thesettingsrecord componentmenus- the value for themenusrecord componentrightToLeft- the value for therightToLeftrecord 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
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 '=='. -
about
Returns the value of theaboutrecord component.- Returns:
- the value of the
aboutrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
rightToLeft
public boolean rightToLeft()Returns the value of therightToLeftrecord component.- Returns:
- the value of the
rightToLeftrecord component
-