Record Class CommentEditorDialog.Result
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.dialogs.CommentEditorDialog.Result
- Record Components:
text- text to display or edittextColor- color value to usebackgroundColor- color value to useborderColor- color value to usekind- kind value used by the operationbinding- binding value used by the operationvisibleInConceptual- whether visible in conceptual is enabledvisibleInLogical- whether visible in logical is enabledvisibleInPhysical- whether visible in physical is enabled
- Enclosing class:
CommentEditorDialog
public static record CommentEditorDialog.Result(String text, Color textColor, Color backgroundColor, Color borderColor, CommentKind kind, CommentBinding binding, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical)
extends Record
Immutable value object for result data.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(String text, Color textColor, Color backgroundColor, Color borderColor, CommentKind kind, CommentBinding binding, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.binding()Returns the value of thebindingrecord component.Returns the value of theborderColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.text()Returns the value of thetextrecord component.Returns the value of thetextColorrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibleInConceptualrecord component.booleanReturns the value of thevisibleInLogicalrecord component.booleanReturns the value of thevisibleInPhysicalrecord component.
-
Constructor Details
-
Result
public Result(String text, Color textColor, Color backgroundColor, Color borderColor, CommentKind kind, CommentBinding binding, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical) Creates an instance of aResultrecord class.- Parameters:
text- the value for thetextrecord componenttextColor- the value for thetextColorrecord componentbackgroundColor- the value for thebackgroundColorrecord componentborderColor- the value for theborderColorrecord componentkind- the value for thekindrecord componentbinding- the value for thebindingrecord componentvisibleInConceptual- the value for thevisibleInConceptualrecord componentvisibleInLogical- the value for thevisibleInLogicalrecord componentvisibleInPhysical- the value for thevisibleInPhysicalrecord 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 '=='. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
borderColor
Returns the value of theborderColorrecord component.- Returns:
- the value of the
borderColorrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
visibleInConceptual
public boolean visibleInConceptual()Returns the value of thevisibleInConceptualrecord component.- Returns:
- the value of the
visibleInConceptualrecord component
-
visibleInLogical
public boolean visibleInLogical()Returns the value of thevisibleInLogicalrecord component.- Returns:
- the value of the
visibleInLogicalrecord component
-
visibleInPhysical
public boolean visibleInPhysical()Returns the value of thevisibleInPhysicalrecord component.- Returns:
- the value of the
visibleInPhysicalrecord component
-