java.lang.Object
atlantafx.base.controls.TabsDragHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TabLineBehaviorprotected final TabLineprotected static final intprotected static final doubleprotected static final javafx.util.Durationprotected static final intprotected intprotected doubleprotected final javafx.beans.value.ChangeListener<Tab.DragPolicy> protected TabsDragHandler.DragStateprotected intprotected doubleprotected @Nullable TabSkinprotected doubleprotected intprotected doubleprotected final TabsDragHandler.DragTransitionprotected @Nullable TabSkinprotected doubleprotected doubleprotected final TabsDragHandler.DragTransitionprotected 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 TabsContainerprotected final javafx.collections.ListChangeListener<javafx.scene.Node> protected @Nullable TabSkin -
Constructor Summary
ConstructorsConstructorDescriptionTabsDragHandler(TabLine control, TabsContainer tabsContainer, TabLineBehavior behavior) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddReorderEventHandlers(javafx.scene.Node node) protected voidprotected TabsDragHandler.DragTransitionprotected TabsDragHandler.DragTransitionvoiddispose()protected voiddoDrag(javafx.scene.input.MouseEvent event) protected voiddragBackwards(javafx.geometry.Bounds dragTabBounds) protected voiddragForwards(javafx.geometry.Bounds dragTabBounds) protected doublegetEventLocalX(javafx.scene.input.MouseEvent e) protected voidhandleTabDragged(javafx.scene.input.MouseEvent event) protected voidhandleTabMousePressed(javafx.scene.input.MouseEvent event) protected voidhandleTabMouseReleased(javafx.scene.input.MouseEvent event) voidinit()booleanisNotDragged(TabSkin tabSkin) protected voidremoveReorderEventHandlers(javafx.scene.Node node) protected voidreorderTabs(int from, int to) protected voidprotected voidstartDrag(javafx.scene.input.MouseEvent event) protected voidprotected voidstopDrag()protected voidstopTransition(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)
-