Record Class NativeUi.Window
java.lang.Object
java.lang.Record
megalodonte.application.messaging.NativeUi.Window
- Enclosing class:
NativeUi
public static record NativeUi.Window(String id, String title, double width, double height, NativeUi.Element root)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWindow(String id, String title, double width, double height, NativeUi.Element root) Creates an instance of aWindowrecord 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.doubleheight()Returns the value of theheightrecord component.id()Returns the value of theidrecord component.root()Returns the value of therootrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.doublewidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Window
Creates an instance of aWindowrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentroot- the value for therootrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
width
public double width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public double height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-