public final class DraggedEntry extends Entry<Object>
calendarProperty, endDateProperty, endTimeProperty, fullDayProperty, intervalProperty, locationProperty, minimumDurationProperty, multiDayProperty, recurrenceEndProperty, recurrenceIdProperty, recurrenceProperty, recurrenceRuleProperty, recurrenceSourceProperty, startDateProperty, startTimeProperty, titleProperty, userObjectProperty, zoneIdProperty
Modifier and Type | Class and Description |
---|---|
static class |
DraggedEntry.DragMode
An enum used for defining which drag operation is currently in progress.
|
Constructor and Description |
---|
DraggedEntry(Entry<?> entry,
DraggedEntry.DragMode dragMode)
Constructs a new dragged entry
|
Modifier and Type | Method and Description |
---|---|
DraggedEntry.DragMode |
getDragMode()
Returns the current drag mode (start time, end time, or both).
|
Duration |
getOffsetDuration()
Returns the duration between the mouse press location and the start time
of the entry.
|
Calendar |
getOriginalCalendar()
Returns the original calendar where the entry is located that is being
dragged.
|
Entry<?> |
getOriginalEntry()
Returns the original entry that the user wants to edit.
|
void |
setDragMode(DraggedEntry.DragMode dragMode)
Sets the current drag mode (start time, end time, or both).
|
void |
setOffsetDuration(Duration duration)
Sets the duration between the mouse press location and the start time of
the entry.
|
calendarProperty, changeEndDate, changeEndDate, changeEndTime, changeEndTime, changeStartDate, changeStartDate, changeStartTime, changeStartTime, compareTo, createRecurrence, endDateProperty, endTimeProperty, equals, fullDayProperty, getCalendar, getDuration, getEndAsLocalDateTime, getEndAsZonedDateTime, getEndDate, getEndMillis, getEndTime, getId, getInterval, getLocation, getMinimumDuration, getProperties, getPropertySheetItems, getRecurrenceEnd, getRecurrenceId, getRecurrenceRule, getRecurrenceSourceEntry, getStartAsLocalDateTime, getStartAsZonedDateTime, getStartDate, getStartMillis, getStartTime, getStyleClass, getTitle, getUserObject, getZoneId, hashCode, hasProperties, hasStyleClass, intersects, intersects, intervalProperty, isFullDay, isMultiDay, isRecurrence, isRecurring, isShowing, locationProperty, matches, minimumDurationProperty, multiDayProperty, recurrenceEndProperty, recurrenceIdProperty, recurrenceProperty, recurrenceRuleProperty, recurrenceSourceProperty, removeFromCalendar, setCalendar, setFullDay, setId, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setInterval, setLocation, setMinimumDuration, setRecurrenceRule, setTitle, setUserObject, setZoneId, startDateProperty, startTimeProperty, titleProperty, toString, userObjectProperty, zoneIdProperty
public DraggedEntry(Entry<?> entry, DraggedEntry.DragMode dragMode)
entry
- the original entry being draggeddragMode
- the drag mode (start time, end time, or both)public DraggedEntry.DragMode getDragMode()
public void setDragMode(DraggedEntry.DragMode dragMode)
dragMode
- the drag modepublic Entry<?> getOriginalEntry()
public Calendar getOriginalCalendar()
public void setOffsetDuration(Duration duration)
duration
- the offset durationpublic Duration getOffsetDuration()
Copyright © 2017 Dirk Lemmermann Software & Consulting. All rights reserved.