95 |
|
/** |
96 |
|
* Return the Runnable forming the basis of this task. |
97 |
|
* @return the runnable action |
98 |
+ |
* @see #setRunnable |
99 |
|
*/ |
100 |
|
protected Runnable getRunnable() { |
101 |
|
return runnable; |
104 |
|
/** |
105 |
|
* Set the Runnable forming the basis of this task. |
106 |
|
* @param r the runnable action |
107 |
+ |
* @see #getRunnable |
108 |
|
*/ |
109 |
|
protected void setRunnable(Runnable r) { |
110 |
|
runnable = r; |
111 |
|
} |
112 |
|
|
113 |
|
/** |
114 |
< |
* Set the state of this task to Cancelled |
114 |
> |
* Set the state of this task to Cancelled. |
115 |
|
*/ |
116 |
|
protected void setCancelled() { |
117 |
|
runnerUpdater.set(this, CANCELLED); |