Package com.vaadin.copilot
Record Class ComponentInfoHandler.ComponentDragDropApiInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.ComponentInfoHandler.ComponentDragDropApiInfo
- Record Components:
acceptingChildren- whether the component can accept child components.hasAddMethod- whether the component provides anaddmethod.hasOnlyAddMethod- whether the component has only theaddmethod (i.e., lacks alternatives likeaddComponent,setContent, etc.).methodSelectionDialogAvailable- whether a method selection dialog should be shown for adding children.implementingHasComponents- whether the component implements theHasComponentsinterface.
- Enclosing class:
ComponentInfoHandler
public static record ComponentInfoHandler.ComponentDragDropApiInfo(boolean acceptingChildren, boolean hasAddMethod, boolean hasOnlyAddMethod, boolean methodSelectionDialogAvailable, boolean implementingHasComponents)
extends Record
A record that encapsulates metadata about a component's drag-and-drop API
support.
This data structure is used to indicate the drag-and-drop capabilities and child component management features of a specific component in a Vaadin application.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentDragDropApiInfo(boolean acceptingChildren, boolean hasAddMethod, boolean hasOnlyAddMethod, boolean methodSelectionDialogAvailable, boolean implementingHasComponents) Creates an instance of aComponentDragDropApiInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theacceptingChildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasAddMethodrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasOnlyAddMethodrecord component.booleanReturns the value of theimplementingHasComponentsrecord component.booleanReturns the value of themethodSelectionDialogAvailablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentDragDropApiInfo
public ComponentDragDropApiInfo(boolean acceptingChildren, boolean hasAddMethod, boolean hasOnlyAddMethod, boolean methodSelectionDialogAvailable, boolean implementingHasComponents) Creates an instance of aComponentDragDropApiInforecord class.- Parameters:
acceptingChildren- the value for theacceptingChildrenrecord componenthasAddMethod- the value for thehasAddMethodrecord componenthasOnlyAddMethod- the value for thehasOnlyAddMethodrecord componentmethodSelectionDialogAvailable- the value for themethodSelectionDialogAvailablerecord componentimplementingHasComponents- the value for theimplementingHasComponentsrecord 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. All components in this record class are compared with '=='. -
acceptingChildren
public boolean acceptingChildren()Returns the value of theacceptingChildrenrecord component.- Returns:
- the value of the
acceptingChildrenrecord component
-
hasAddMethod
public boolean hasAddMethod()Returns the value of thehasAddMethodrecord component.- Returns:
- the value of the
hasAddMethodrecord component
-
hasOnlyAddMethod
public boolean hasOnlyAddMethod()Returns the value of thehasOnlyAddMethodrecord component.- Returns:
- the value of the
hasOnlyAddMethodrecord component
-
methodSelectionDialogAvailable
public boolean methodSelectionDialogAvailable()Returns the value of themethodSelectionDialogAvailablerecord component.- Returns:
- the value of the
methodSelectionDialogAvailablerecord component
-
implementingHasComponents
public boolean implementingHasComponents()Returns the value of theimplementingHasComponentsrecord component.- Returns:
- the value of the
implementingHasComponentsrecord component
-