java.lang.Object
atlantafx.base.controls.TabsDragHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TabLineBehavior
protected final TabLine
protected static final int
protected static final double
protected static final javafx.util.Duration
protected static final int
protected int
protected double
protected final javafx.beans.value.ChangeListener
<Tab.DragPolicy> protected TabsDragHandler.DragState
protected int
protected double
protected @Nullable TabSkin
protected double
protected int
protected double
protected final TabsDragHandler.DragTransition
protected @Nullable TabSkin
protected double
protected double
protected final TabsDragHandler.DragTransition
protected final javafx.event.EventHandler
<javafx.scene.input.MouseEvent> protected final javafx.event.EventHandler
<javafx.scene.input.MouseEvent> protected final javafx.event.EventHandler
<javafx.scene.input.MouseEvent> protected final TabsContainer
protected final javafx.collections.ListChangeListener
<javafx.scene.Node> protected @Nullable TabSkin
-
Constructor Summary
ConstructorsConstructorDescriptionTabsDragHandler
(TabLine control, TabsContainer tabsContainer, TabLineBehavior behavior) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addReorderEventHandlers
(javafx.scene.Node node) protected void
protected TabsDragHandler.DragTransition
protected TabsDragHandler.DragTransition
void
dispose()
protected void
doDrag
(javafx.scene.input.MouseEvent event) protected void
dragBackwards
(javafx.geometry.Bounds dragTabBounds) protected void
dragForwards
(javafx.geometry.Bounds dragTabBounds) protected double
getEventLocalX
(javafx.scene.input.MouseEvent e) protected void
handleTabDragged
(javafx.scene.input.MouseEvent event) protected void
handleTabMousePressed
(javafx.scene.input.MouseEvent event) protected void
handleTabMouseReleased
(javafx.scene.input.MouseEvent event) void
init()
boolean
isNotDragged
(TabSkin tabSkin) protected void
removeReorderEventHandlers
(javafx.scene.Node node) protected void
reorderTabs
(int from, int to) protected void
protected void
startDrag
(javafx.scene.input.MouseEvent event) protected void
protected void
stopDrag()
protected void
stopTransition
(javafx.animation.Animation animation) protected void
-
Field Details
-
DRAG_DURATION
protected static final javafx.util.Duration DRAG_DURATION -
DRAG_FORWARDS
protected static final int DRAG_FORWARDS- See Also:
-
DRAG_BACKWARDS
protected static final int DRAG_BACKWARDS- See Also:
-
DRAG_DISTANCE_THRESHOLD
protected static final double DRAG_DISTANCE_THRESHOLD- See Also:
-
tabDraggedHandler
protected final javafx.event.EventHandler<javafx.scene.input.MouseEvent> tabDraggedHandler -
tabMousePressedHandler
protected final javafx.event.EventHandler<javafx.scene.input.MouseEvent> tabMousePressedHandler -
tabMouseReleasedHandler
protected final javafx.event.EventHandler<javafx.scene.input.MouseEvent> tabMouseReleasedHandler -
dragTransition
-
dropTransition
-
tabsDragListener
protected final javafx.collections.ListChangeListener<javafx.scene.Node> tabsDragListener -
control
-
tabsContainer
-
behavior
-
dragPolicyListener
-
dragTabSkin
-
dropTabSkin
-
transitionTabSkin
-
dragState
-
dragEventLocalX
protected double dragEventLocalX -
dragTabStartIndex
protected int dragTabStartIndex -
dragTabCurrentIndex
protected int dragTabCurrentIndex -
dragDirection
protected int dragDirection -
dragTabSourceX
protected double dragTabSourceX -
dragTabTransitionX
protected double dragTabTransitionX -
dragTabDestX
protected double dragTabDestX -
dropTabSourceX
protected double dropTabSourceX -
dropTabTransitionX
protected double dropTabTransitionX
-
-
Constructor Details
-
TabsDragHandler
-
-
Method Details
-
init
public void init() -
getDragState
-
isNotDragged
-
dispose
public void dispose() -
createDragTransition
-
createDropTransition
-
addReorderEventHandlers
protected void addReorderEventHandlers(javafx.scene.Node node) -
removeReorderEventHandlers
protected void removeReorderEventHandlers(javafx.scene.Node node) -
updateDragListeners
protected void updateDragListeners() -
handleTabDragged
protected void handleTabDragged(javafx.scene.input.MouseEvent event) -
handleTabMousePressed
protected void handleTabMousePressed(javafx.scene.input.MouseEvent event) -
handleTabMouseReleased
protected void handleTabMouseReleased(javafx.scene.input.MouseEvent event) -
startDrag
protected void startDrag(javafx.scene.input.MouseEvent event) -
doDrag
protected void doDrag(javafx.scene.input.MouseEvent event) -
dragForwards
protected void dragForwards(javafx.geometry.Bounds dragTabBounds) -
dragBackwards
protected void dragBackwards(javafx.geometry.Bounds dragTabBounds) -
stopDrag
protected void stopDrag() -
resetDrag
protected void resetDrag() -
startReorderingTransition
protected void startReorderingTransition() -
completeHeaderReordering
protected void completeHeaderReordering() -
stopTransition
protected void stopTransition(javafx.animation.Animation animation) -
getEventLocalX
protected double getEventLocalX(javafx.scene.input.MouseEvent e) -
reorderTabs
protected void reorderTabs(int from, int to)
-