java.lang.Object
java.lang.Record
org.snapfx.dnd.DockDragService.DropRequest
- Record Components:
draggedNode- dragged node to movetarget- drop target element, ornullfor empty-main-layout center dropposition- drop position on targettabIndex- target tab index for tab insert operations, ornull
- Enclosing class:
DockDragService
public static record DockDragService.DropRequest(DockNode draggedNode, DockElement target, DockPosition position, Integer tabIndex)
extends Record
Immutable callback payload used for accepted dock-drop requests.
-
Constructor Summary
ConstructorsConstructorDescriptionDropRequest(DockNode draggedNode, DockElement target, DockPosition position, Integer tabIndex) Creates an instance of aDropRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedraggedNoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.tabIndex()Returns the value of thetabIndexrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DropRequest
public DropRequest(DockNode draggedNode, DockElement target, DockPosition position, Integer tabIndex) Creates an instance of aDropRequestrecord class.- Parameters:
draggedNode- the value for thedraggedNoderecord componenttarget- the value for thetargetrecord componentposition- the value for thepositionrecord componenttabIndex- the value for thetabIndexrecord 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 withObjects::equals(Object,Object). -
draggedNode
Returns the value of thedraggedNoderecord component.- Returns:
- the value of the
draggedNoderecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
tabIndex
Returns the value of thetabIndexrecord component.- Returns:
- the value of the
tabIndexrecord component
-