|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.swinger.SwingDelayedResult
public abstract class SwingDelayedResult
A delayed result that is computed in the event dispatch thread.
Field Summary | |
---|---|
protected java.lang.Object |
_cachedResult
The cached result. |
protected boolean |
_shouldCacheResult
True if the computed result should be cached. |
Constructor Summary | |
---|---|
SwingDelayedResult()
Construct a new instance that doesn't cache its result. |
|
SwingDelayedResult(boolean shouldCacheResult)
Construct a new instance that caches its result if the argument is true. |
Method Summary | |
---|---|
protected abstract java.lang.Object |
_computeResult()
Compute the result. |
java.lang.Object |
force()
Force the result to be computed and return it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final boolean _shouldCacheResult
protected java.lang.Object _cachedResult
Constructor Detail |
---|
public SwingDelayedResult()
DelayedResultMap
, which also caches computed values.
public SwingDelayedResult(boolean shouldCacheResult)
Method Detail |
---|
public final java.lang.Object force()
IDelayedResult
force
in interface IDelayedResult
protected abstract java.lang.Object _computeResult() throws java.lang.Exception
null
, return
MapUtilities.NULL_MAP.VALUE
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |