-
- All Implemented Interfaces:
-
kotlin.collections.Iterable
public class LinearLayout<T extends GameComponentView> extends GameComponentContainer<T>
A LinearLayout may be used to visualize a zone containing GameComponentViews.
GameComponentViews inside the container get placed according to the specified Orientation and Alignment. A spacing between components may be specified which may also be negative e.g. components like playing cards should overlap.
Visualization:
The Visual is used to visualize a background.
If all components are still within bounds with the user defined spacing, the user defined spacing gets used to space the components. Otherwise, the biggest possible spacing is used so that all components are still withing bounds of the LinearLayout.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LinearLayout(Number posX, Number posY, Number width, Number height, Number spacing, Visual visual, Orientation orientation, VerticalAlignment verticalAlignment, HorizontalAlignment horizontalAlignment)
Secondary constructor taking separate alignment components. LinearLayout(Number posX, Number posY, Number width, Number height, Number spacing, Visual visual, Orientation orientation, Alignment alignment)
Creates a LinearLayout.
-
Method Summary
Modifier and Type Method Description final DoubleProperty
getSpacingProperty()
Property for the spacing of GameComponentViews in this LinearLayout. final Double
getSpacing()
final Unit
setSpacing(Double spacing)
final Property<Orientation>
getOrientationProperty()
Property for the Orientation of GameComponentViews in this LinearLayout. final Orientation
getOrientation()
final Unit
setOrientation(Orientation orientation)
final Property<Alignment>
getAlignmentProperty()
Property for the Alignment of GameComponentViews in this LinearLayout. final Alignment
getAlignment()
final Unit
setAlignment(Alignment alignment)
final Function1<T, Unit>
getOnAdd()
onAdd gets invoked anytime after a GameComponentView is added to this GameComponentContainer with the added GameComponentView as its receiver. final Unit
setOnAdd(Function1<T, Unit> onAdd)
onAdd gets invoked anytime after a GameComponentView is added to this GameComponentContainer with the added GameComponentView as its receiver. final Function1<T, Unit>
getOnRemove()
onRemove gets invoked anytime after a GameComponentView is removed from this GameComponentContainer with the removed GameComponentView as its receiver. final Unit
setOnRemove(Function1<T, Unit> onRemove)
onRemove gets invoked anytime after a GameComponentView is removed from this GameComponentContainer with the removed GameComponentView as its receiver. final List<T>
getComponents()
final Unit
setComponents(List<T> components)
final BooleanProperty
getIsDraggableProperty()
Property that controls whether component is draggable or not. final Boolean
getIsDraggable()
final Unit
setIsDraggable(Boolean isDraggable)
final ReadonlyBooleanProperty
getIsDraggedProperty()
Property that reflects whether component is currently dragged or not. final Boolean
getIsDragged()
final Unit
setIsDragged(Boolean isDragged)
final Function1<DragEvent, Unit>
getOnDragGestureStarted()
Gets invoked with a DragEvent whenever a drag gesture is started on this ComponentView. final Unit
setOnDragGestureStarted(Function1<DragEvent, Unit> onDragGestureStarted)
Gets invoked with a DragEvent whenever a drag gesture is started on this ComponentView. final Function1<DragEvent, Unit>
getOnDragGestureMoved()
Gets invoked with a DragEvent whenever a mouse movement occurs during a drag gesture on this ComponentView. final Unit
setOnDragGestureMoved(Function1<DragEvent, Unit> onDragGestureMoved)
Gets invoked with a DragEvent whenever a mouse movement occurs during a drag gesture on this ComponentView. final Function2<DropEvent, Boolean, Unit>
getOnDragGestureEnded()
Gets invoked with a DragEvent whenever a drag gesture has ended on this rendered ComponentView. final Unit
setOnDragGestureEnded(Function2<DropEvent, Boolean, Unit> onDragGestureEnded)
Gets invoked with a DragEvent whenever a drag gesture has ended on this rendered ComponentView. final ComponentView
getParent()
The parent of this ComponentView. final Unit
setParent(ComponentView parent)
final String
getName()
Name field only for debugging purposes. final Unit
setName(String name)
Name field only for debugging purposes. final DoubleProperty
getPosXProperty()
Property for the horizontal position of this ComponentView. final Double
getPosX()
final Unit
setPosX(Double posX)
final Double
getActualPosX()
final Unit
setActualPosX(Double actualPosX)
final DoubleProperty
getPosYProperty()
Property for the vertical position of this ComponentView. final Double
getPosY()
final Unit
setPosY(Double posY)
final Double
getActualPosY()
final Unit
setActualPosY(Double actualPosY)
final DoubleProperty
getWidthProperty()
Property for the width of this ComponentView. final Double
getWidth()
final Unit
setWidth(Double width)
final Double
getActualWidth()
final Unit
setActualWidth(Double actualWidth)
final DoubleProperty
getHeightProperty()
Property for the height of this ComponentView. final Double
getHeight()
final Unit
setHeight(Double height)
final Double
getActualHeight()
final Unit
setActualHeight(Double actualHeight)
final DoubleProperty
getScaleXProperty()
Property for the horizontal scale of this ComponentView. final Double
getScaleX()
final Unit
setScaleX(Double scaleX)
final DoubleProperty
getScaleYProperty()
Property for the vertical scale of this ComponentView. final Double
getScaleY()
final Unit
setScaleY(Double scaleY)
final Double
getScale()
final Unit
setScale(Double scale)
final CoordinatePlain
getLayoutBounds()
final Unit
setLayoutBounds(CoordinatePlain layoutBounds)
final DoubleProperty
getRotationProperty()
Property for the rotation of this ComponentView in degrees. final Double
getRotation()
final Unit
setRotation(Double rotation)
Visual
getVisual()
Unit
setVisual(Visual visual)
Sets a copy of the given Visual to this field and refreshes GUI. final LimitedDoubleProperty
getOpacityProperty()
Property for the opacity of this ComponentView. final Double
getOpacity()
final Unit
setOpacity(Double opacity)
final BooleanProperty
getIsVisibleProperty()
Property for the visibility of this ComponentView. final Boolean
getIsVisible()
final Unit
setIsVisible(Boolean isVisible)
final BooleanProperty
getIsDisabledProperty()
Property that controls if user input events cause input functions of this ComponentView to get invoked. final Boolean
getIsDisabled()
final Unit
setIsDisabled(Boolean isDisabled)
final BooleanProperty
getIsFocusableProperty()
Property that controls whether this ComponentView is focusable or not. final Boolean
getIsFocusable()
final Unit
setIsFocusable(Boolean isFocusable)
final Function1<MouseEvent, Unit>
getOnMouseEntered()
Gets invoked with a MouseEvent whenever the mouse enters this ComponentView. final Unit
setOnMouseEntered(Function1<MouseEvent, Unit> onMouseEntered)
Gets invoked with a MouseEvent whenever the mouse enters this ComponentView. final Function1<MouseEvent, Unit>
getOnMouseExited()
Gets invoked with a MouseEvent whenever the mouse leaves this ComponentView. final Unit
setOnMouseExited(Function1<MouseEvent, Unit> onMouseExited)
Gets invoked with a MouseEvent whenever the mouse leaves this ComponentView. final Function1<MouseEvent, Unit>
getOnMousePressed()
Gets invoked with a MouseEvent whenever the mouse is pressed inside this ComponentView. final Unit
setOnMousePressed(Function1<MouseEvent, Unit> onMousePressed)
Gets invoked with a MouseEvent whenever the mouse is pressed inside this ComponentView. final Function1<MouseEvent, Unit>
getOnMouseReleased()
Gets invoked with a MouseEvent whenever the mouse is released inside this ComponentView. final Unit
setOnMouseReleased(Function1<MouseEvent, Unit> onMouseReleased)
Gets invoked with a MouseEvent whenever the mouse is released inside this ComponentView. final Function1<MouseEvent, Unit>
getOnMouseClicked()
Gets invoked with a MouseEvent whenever the mouse is clicked inside this ComponentView. final Unit
setOnMouseClicked(Function1<MouseEvent, Unit> onMouseClicked)
Gets invoked with a MouseEvent whenever the mouse is clicked inside this ComponentView. final Function1<KeyEvent, Unit>
getOnKeyPressed()
Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus. final Unit
setOnKeyPressed(Function1<KeyEvent, Unit> onKeyPressed)
Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus. final Function1<KeyEvent, Unit>
getOnKeyReleased()
Gets invoked with a KeyEvent whenever a key is released while this ComponentView has focus. final Unit
setOnKeyReleased(Function1<KeyEvent, Unit> onKeyReleased)
Gets invoked with a KeyEvent whenever a key is released while this ComponentView has focus. final Function1<KeyEvent, Unit>
getOnKeyTyped()
Gets invoked with a KeyEvent whenever a key is typed while this ComponentView has focus. final Unit
setOnKeyTyped(Function1<KeyEvent, Unit> onKeyTyped)
Gets invoked with a KeyEvent whenever a key is typed while this ComponentView has focus. final Function1<DragEvent, Boolean>
getDropAcceptor()
Returns whether this ComponentView is a valid drop target for the dragged component in the given DragEvent or not. final Unit
setDropAcceptor(Function1<DragEvent, Boolean> dropAcceptor)
Returns whether this ComponentView is a valid drop target for the dragged component in the given DragEvent or not. final Function1<DragEvent, Unit>
getOnDragGestureEntered()
Gets invoked with a DragEvent whenever the mouse enters this ComponentView while performing a drag gesture. final Unit
setOnDragGestureEntered(Function1<DragEvent, Unit> onDragGestureEntered)
Gets invoked with a DragEvent whenever the mouse enters this ComponentView while performing a drag gesture. final Function1<DragEvent, Unit>
getOnDragGestureExited()
Gets invoked with a DragEvent whenever the mouse leaves this ComponentView while performing a drag gesture. final Unit
setOnDragGestureExited(Function1<DragEvent, Unit> onDragGestureExited)
Gets invoked with a DragEvent whenever the mouse leaves this ComponentView while performing a drag gesture. final Function1<DragEvent, Unit>
getOnDragDropped()
Gets invoked with a DragEvent whenever a drag and drop gesture finishes over this ComponentView and the dropAcceptor returns true
for the given DragEvent.final Unit
setOnDragDropped(Function1<DragEvent, Unit> onDragDropped)
Gets invoked with a DragEvent whenever a drag and drop gesture finishes over this ComponentView and the dropAcceptor returns true
for the given DragEvent.-
Methods inherited from class tools.aqua.bgw.components.container.LinearLayout
add, addAll, addAll, addComponentsListener, clear, clearComponentsListener, isEmpty, isNotEmpty, iterator, numberOfComponents, remove, removeAll, removeAll, removeComponentsListener
-
Methods inherited from class tools.aqua.bgw.components.DynamicComponentView
offset, removeFromParent, reposition, resize, rotate, scale, scaleX, scaleY
-
Methods inherited from class tools.aqua.bgw.components.container.GameComponentContainer
forEach, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LinearLayout
LinearLayout(Number posX, Number posY, Number width, Number height, Number spacing, Visual visual, Orientation orientation, VerticalAlignment verticalAlignment, HorizontalAlignment horizontalAlignment)
Secondary constructor taking separate alignment components.- Parameters:
posX
- horizontal coordinate for this LinearLayout.posY
- vertical coordinate for this LinearLayout.width
- width for this LinearLayout.height
- height for this LinearLayout.spacing
- spacing between contained GameComponentViews.visual
- Visual to be used for this LinearLayout.orientation
- orientation for this LinearLayout.verticalAlignment
- specifies how the contained components should be aligned vertically.horizontalAlignment
- specifies how the contained components should be aligned horizontally.
-
LinearLayout
LinearLayout(Number posX, Number posY, Number width, Number height, Number spacing, Visual visual, Orientation orientation, Alignment alignment)
Creates a LinearLayout.- Parameters:
posX
- horizontal coordinate for this LinearLayout.posY
- vertical coordinate for this LinearLayout.width
- width for this LinearLayout.height
- height for this LinearLayout.spacing
- spacing between contained GameComponentViews.visual
- Visual to be used for this LinearLayout.orientation
- orientation for this LinearLayout.alignment
- specifies how the contained GameComponentViews should be aligned.
-
-
Method Detail
-
getSpacingProperty
final DoubleProperty getSpacingProperty()
Property for the spacing of GameComponentViews in this LinearLayout.
-
getSpacing
final Double getSpacing()
-
setSpacing
final Unit setSpacing(Double spacing)
-
getOrientationProperty
final Property<Orientation> getOrientationProperty()
Property for the Orientation of GameComponentViews in this LinearLayout.
-
getOrientation
final Orientation getOrientation()
-
setOrientation
final Unit setOrientation(Orientation orientation)
-
getAlignmentProperty
final Property<Alignment> getAlignmentProperty()
Property for the Alignment of GameComponentViews in this LinearLayout.
-
getAlignment
final Alignment getAlignment()
-
setAlignment
final Unit setAlignment(Alignment alignment)
-
getOnAdd
final Function1<T, Unit> getOnAdd()
onAdd gets invoked anytime after a GameComponentView is added to this GameComponentContainer with the added GameComponentView as its receiver.
-
setOnAdd
final Unit setOnAdd(Function1<T, Unit> onAdd)
onAdd gets invoked anytime after a GameComponentView is added to this GameComponentContainer with the added GameComponentView as its receiver.
-
getOnRemove
final Function1<T, Unit> getOnRemove()
onRemove gets invoked anytime after a GameComponentView is removed from this GameComponentContainer with the removed GameComponentView as its receiver.
-
setOnRemove
final Unit setOnRemove(Function1<T, Unit> onRemove)
onRemove gets invoked anytime after a GameComponentView is removed from this GameComponentContainer with the removed GameComponentView as its receiver.
-
getComponents
final List<T> getComponents()
-
setComponents
final Unit setComponents(List<T> components)
-
getIsDraggableProperty
final BooleanProperty getIsDraggableProperty()
Property that controls whether component is draggable or not.
-
getIsDraggable
final Boolean getIsDraggable()
-
setIsDraggable
final Unit setIsDraggable(Boolean isDraggable)
-
getIsDraggedProperty
final ReadonlyBooleanProperty getIsDraggedProperty()
Property that reflects whether component is currently dragged or not.
-
getIsDragged
final Boolean getIsDragged()
-
setIsDragged
final Unit setIsDragged(Boolean isDragged)
-
getOnDragGestureStarted
final Function1<DragEvent, Unit> getOnDragGestureStarted()
Gets invoked with a DragEvent whenever a drag gesture is started on this ComponentView.
-
setOnDragGestureStarted
final Unit setOnDragGestureStarted(Function1<DragEvent, Unit> onDragGestureStarted)
Gets invoked with a DragEvent whenever a drag gesture is started on this ComponentView.
-
getOnDragGestureMoved
final Function1<DragEvent, Unit> getOnDragGestureMoved()
Gets invoked with a DragEvent whenever a mouse movement occurs during a drag gesture on this ComponentView.
-
setOnDragGestureMoved
final Unit setOnDragGestureMoved(Function1<DragEvent, Unit> onDragGestureMoved)
Gets invoked with a DragEvent whenever a mouse movement occurs during a drag gesture on this ComponentView.
-
getOnDragGestureEnded
final Function2<DropEvent, Boolean, Unit> getOnDragGestureEnded()
Gets invoked with a DragEvent whenever a drag gesture has ended on this rendered ComponentView.
Second parameter is
true
if at least one drop target accepted drop,false
otherwise.
-
setOnDragGestureEnded
final Unit setOnDragGestureEnded(Function2<DropEvent, Boolean, Unit> onDragGestureEnded)
Gets invoked with a DragEvent whenever a drag gesture has ended on this rendered ComponentView.
Second parameter is
true
if at least one drop target accepted drop,false
otherwise.
-
getParent
final ComponentView getParent()
The parent of this ComponentView.
null
if this ComponentView is not contained in a GameComponentContainer, LayoutView, or a Scene.If the component has been added directly to a Scene, parent is equal to the scene's RootComponent.
If the component is contained within a container, parent is equal to that container.
-
setParent
final Unit setParent(ComponentView parent)
-
setName
final Unit setName(String name)
Name field only for debugging purposes. Has no effect on rendering.
-
getPosXProperty
final DoubleProperty getPosXProperty()
Property for the horizontal position of this ComponentView.
-
getActualPosX
final Double getActualPosX()
-
setActualPosX
final Unit setActualPosX(Double actualPosX)
-
getPosYProperty
final DoubleProperty getPosYProperty()
Property for the vertical position of this ComponentView.
-
getActualPosY
final Double getActualPosY()
-
setActualPosY
final Unit setActualPosY(Double actualPosY)
-
getWidthProperty
final DoubleProperty getWidthProperty()
Property for the width of this ComponentView.
-
getActualWidth
final Double getActualWidth()
-
setActualWidth
final Unit setActualWidth(Double actualWidth)
-
getHeightProperty
final DoubleProperty getHeightProperty()
Property for the height of this ComponentView.
-
getActualHeight
final Double getActualHeight()
-
setActualHeight
final Unit setActualHeight(Double actualHeight)
-
getScaleXProperty
final DoubleProperty getScaleXProperty()
Property for the horizontal scale of this ComponentView.
-
getScaleYProperty
final DoubleProperty getScaleYProperty()
Property for the vertical scale of this ComponentView.
-
getLayoutBounds
final CoordinatePlain getLayoutBounds()
-
setLayoutBounds
final Unit setLayoutBounds(CoordinatePlain layoutBounds)
-
getRotationProperty
final DoubleProperty getRotationProperty()
Property for the rotation of this ComponentView in degrees.
Values not in [0,360) get mapped to values in [0,360) by modulo operation with 360.
example conversions: -10 -> 350 -370 -> 350 370 -> 10 730 -> 10
-
getRotation
final Double getRotation()
-
setRotation
final Unit setRotation(Double rotation)
-
setVisual
Unit setVisual(Visual visual)
Sets a copy of the given Visual to this field and refreshes GUI.
-
getOpacityProperty
final LimitedDoubleProperty getOpacityProperty()
Property for the opacity of this ComponentView.
Must be in range 0.0 to 1.0.
0.0 corresponds to 0% opacity, where 1.0 corresponds to 100% opacity.
Note that invisible objects (opacity == 0.0) still remain interactive.
-
getOpacity
final Double getOpacity()
-
setOpacity
final Unit setOpacity(Double opacity)
-
getIsVisibleProperty
final BooleanProperty getIsVisibleProperty()
Property for the visibility of this ComponentView.
Invisible ComponentViews are disabled. An object marked as visible may still be opaque due to opacity.
-
getIsVisible
final Boolean getIsVisible()
-
setIsVisible
final Unit setIsVisible(Boolean isVisible)
-
getIsDisabledProperty
final BooleanProperty getIsDisabledProperty()
Property that controls if user input events cause input functions of this ComponentView to get invoked.
true
means no invocation, wherefalse
means invocation.For a list of affected functions refer to the
See Also
section.
-
getIsDisabled
final Boolean getIsDisabled()
-
setIsDisabled
final Unit setIsDisabled(Boolean isDisabled)
-
getIsFocusableProperty
final BooleanProperty getIsFocusableProperty()
Property that controls whether this ComponentView is focusable or not.
-
getIsFocusable
final Boolean getIsFocusable()
-
setIsFocusable
final Unit setIsFocusable(Boolean isFocusable)
-
getOnMouseEntered
final Function1<MouseEvent, Unit> getOnMouseEntered()
Gets invoked with a MouseEvent whenever the mouse enters this ComponentView.
-
setOnMouseEntered
final Unit setOnMouseEntered(Function1<MouseEvent, Unit> onMouseEntered)
Gets invoked with a MouseEvent whenever the mouse enters this ComponentView.
-
getOnMouseExited
final Function1<MouseEvent, Unit> getOnMouseExited()
Gets invoked with a MouseEvent whenever the mouse leaves this ComponentView.
-
setOnMouseExited
final Unit setOnMouseExited(Function1<MouseEvent, Unit> onMouseExited)
Gets invoked with a MouseEvent whenever the mouse leaves this ComponentView.
-
getOnMousePressed
final Function1<MouseEvent, Unit> getOnMousePressed()
Gets invoked with a MouseEvent whenever the mouse is pressed inside this ComponentView.
-
setOnMousePressed
final Unit setOnMousePressed(Function1<MouseEvent, Unit> onMousePressed)
Gets invoked with a MouseEvent whenever the mouse is pressed inside this ComponentView.
-
getOnMouseReleased
final Function1<MouseEvent, Unit> getOnMouseReleased()
Gets invoked with a MouseEvent whenever the mouse is released inside this ComponentView.
-
setOnMouseReleased
final Unit setOnMouseReleased(Function1<MouseEvent, Unit> onMouseReleased)
Gets invoked with a MouseEvent whenever the mouse is released inside this ComponentView.
-
getOnMouseClicked
final Function1<MouseEvent, Unit> getOnMouseClicked()
Gets invoked with a MouseEvent whenever the mouse is clicked inside this ComponentView. Gets invoked after onMousePressed and onMouseReleased.
-
setOnMouseClicked
final Unit setOnMouseClicked(Function1<MouseEvent, Unit> onMouseClicked)
Gets invoked with a MouseEvent whenever the mouse is clicked inside this ComponentView. Gets invoked after onMousePressed and onMouseReleased.
-
getOnKeyPressed
final Function1<KeyEvent, Unit> getOnKeyPressed()
Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus.
-
setOnKeyPressed
final Unit setOnKeyPressed(Function1<KeyEvent, Unit> onKeyPressed)
Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus.
-
getOnKeyReleased
final Function1<KeyEvent, Unit> getOnKeyReleased()
Gets invoked with a KeyEvent whenever a key is released while this ComponentView has focus.
-
setOnKeyReleased
final Unit setOnKeyReleased(Function1<KeyEvent, Unit> onKeyReleased)
Gets invoked with a KeyEvent whenever a key is released while this ComponentView has focus.
-
getOnKeyTyped
final Function1<KeyEvent, Unit> getOnKeyTyped()
Gets invoked with a KeyEvent whenever a key is typed while this ComponentView has focus. Gets invoked after onKeyPressed.
-
setOnKeyTyped
final Unit setOnKeyTyped(Function1<KeyEvent, Unit> onKeyTyped)
Gets invoked with a KeyEvent whenever a key is typed while this ComponentView has focus. Gets invoked after onKeyPressed.
-
getDropAcceptor
final Function1<DragEvent, Boolean> getDropAcceptor()
Returns whether this ComponentView is a valid drop target for the dragged component in the given DragEvent or not.
Implement this function in such a way that it returns
true
if this ComponentView accepts the drop of the given DropEvent.draggedComponent orfalse
if a drop is not valid. The DropEvent.draggedComponent will snap back if all available drop targets returnfalse
.It is advised not to modify the Scene or its children in this function. A better suited function to modify the Scene or its children after a drag and drop gesture is onDragDropped .
Note: onDragDropped only gets invoked if the dropAcceptor returns
true
for the given DropEvent.
-
setDropAcceptor
final Unit setDropAcceptor(Function1<DragEvent, Boolean> dropAcceptor)
Returns whether this ComponentView is a valid drop target for the dragged component in the given DragEvent or not.
Implement this function in such a way that it returns
true
if this ComponentView accepts the drop of the given DropEvent.draggedComponent orfalse
if a drop is not valid. The DropEvent.draggedComponent will snap back if all available drop targets returnfalse
.It is advised not to modify the Scene or its children in this function. A better suited function to modify the Scene or its children after a drag and drop gesture is onDragDropped .
Note: onDragDropped only gets invoked if the dropAcceptor returns
true
for the given DropEvent.
-
getOnDragGestureEntered
final Function1<DragEvent, Unit> getOnDragGestureEntered()
Gets invoked with a DragEvent whenever the mouse enters this ComponentView while performing a drag gesture.
-
setOnDragGestureEntered
final Unit setOnDragGestureEntered(Function1<DragEvent, Unit> onDragGestureEntered)
Gets invoked with a DragEvent whenever the mouse enters this ComponentView while performing a drag gesture.
-
getOnDragGestureExited
final Function1<DragEvent, Unit> getOnDragGestureExited()
Gets invoked with a DragEvent whenever the mouse leaves this ComponentView while performing a drag gesture.
-
setOnDragGestureExited
final Unit setOnDragGestureExited(Function1<DragEvent, Unit> onDragGestureExited)
Gets invoked with a DragEvent whenever the mouse leaves this ComponentView while performing a drag gesture.
-
getOnDragDropped
final Function1<DragEvent, Unit> getOnDragDropped()
Gets invoked with a DragEvent whenever a drag and drop gesture finishes over this ComponentView and the dropAcceptor returns
true
for the given DragEvent.
-
setOnDragDropped
final Unit setOnDragDropped(Function1<DragEvent, Unit> onDragDropped)
Gets invoked with a DragEvent whenever a drag and drop gesture finishes over this ComponentView and the dropAcceptor returns
true
for the given DragEvent.
-
-
-
-