| Modifier and Type | Class and Description |
|---|---|
| public static enum | DraggedEntry.
An enum used for defining which drag operation is currently in progress. |
| Modifier and Type | Field and Description |
|---|---|
| private DraggedEntry. | |
| private Duration | |
| private final Calendar | |
| private final Entry |
| Access | Constructor and Description |
|---|---|
| public | DraggedEntry(Entry<?>
the original entry being dragged entry, DraggedEntry.the drag mode (start time, end time, or both) dragModeConstructs a new dragged entry |
| Modifier and Type | Method and Description |
|---|---|
| public DraggedEntry. | |
| public Duration | Returns: the offset durationReturns the duration between the mouse press location and the start time of the entry. |
| public Calendar | Returns: the calendar where the entry originated fromReturns the original calendar where the entry is located that is being dragged. |
| public Entry | Returns: the original calendar entryReturns the original entry that the user wants to edit. |
| public void | setDragMode(DraggedEntry.
the drag mode dragModeSets the current drag mode (start time, end time, or both). |
| public void | setOffsetDuration(Duration
the offset duration duration)Sets the duration between the mouse press location and the start time of the entry. |
| dragMode | back to summary |
|---|---|
| private DraggedEntry. | |
| offsetDuration | back to summary |
|---|---|
| private Duration offsetDuration | |
| originalCalendar | back to summary |
|---|---|
| private final Calendar<T> originalCalendar | |
| originalEntry | back to summary |
|---|---|
| private final Entry<?> originalEntry | |
| DraggedEntry | back to summary |
|---|---|
| public DraggedEntry(Entry<?> entry, DraggedEntry. Constructs a new dragged entry
| |
| getDragMode | back to summary |
|---|---|
| public DraggedEntry. Returns the current drag mode (start time, end time, or both).
| |
| getOffsetDuration | back to summary |
|---|---|
| public Duration getOffsetDuration() Returns the duration between the mouse press location and the start time of the entry.
| |
| getOriginalCalendar | back to summary |
|---|---|
| public Calendar Returns the original calendar where the entry is located that is being dragged.
| |
| getOriginalEntry | back to summary |
|---|---|
| public Entry Returns the original entry that the user wants to edit.
| |
| setDragMode | back to summary |
|---|---|
| public void setDragMode(DraggedEntry. Sets the current drag mode (start time, end time, or both).
| |
| setOffsetDuration | back to summary |
|---|---|
| public void setOffsetDuration(Duration duration) Sets the duration between the mouse press location and the start time of the entry.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DraggedEntry. | END_TIME
The user is changing the end time of an entry. |
| public static final DraggedEntry. | START_AND_END_TIME
The user is dragging the entire entry, hence changing start and end time at the same time. |
| public static final DraggedEntry. | START_TIME
The user is changing the start time of an entry. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DraggedEntry. | |
| public static DraggedEntry. |
| END_TIME | back to summary |
|---|---|
| public static final DraggedEntry. The user is changing the end time of an entry. | |
| START_AND_END_TIME | back to summary |
|---|---|
| public static final DraggedEntry. The user is dragging the entire entry, hence changing start and end time at the same time. | |
| START_TIME | back to summary |
|---|---|
| public static final DraggedEntry. The user is changing the start time of an entry. | |
| DragMode | back to summary |
|---|---|
| private DragMode() | |
| valueOf | back to summary |
|---|---|
| public static DraggedEntry. | |
| values | back to summary |
|---|---|
| public static DraggedEntry. | |