|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swing.CalculationsSwing
public final class CalculationsSwing
Method Summary | ||
---|---|---|
static void |
bind(JLabel label,
Calculation<?> calculation)
Updates the given label with the latest value of a Calculation each time it reports a change. |
|
static void |
bind(JLabel label,
Calculation<?> calculation,
Format formatter)
Updates the given label with the latest value of a Calculation each time it reports a change. |
|
static boolean |
isSwingThreadProxyCalculation(Calculation calc)
Returns true if calc is a Calculation that fires
all of its update events from the Swing event dispatch thread. |
|
static
|
swingThreadProxyCalculation(Calculation<? extends E> source)
Wraps the source in a Calculation that fires all of its update
events from the Swing event dispatch thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E> Calculation<E> swingThreadProxyCalculation(Calculation<? extends E> source)
Calculation
that fires all of its update
events from the Swing event dispatch thread.
public static boolean isSwingThreadProxyCalculation(Calculation calc)
true
if calc
is a Calculation
that fires
all of its update events from the Swing event dispatch thread.
public static void bind(JLabel label, Calculation<?> calculation)
label
- the JLabel displaying the value of the calculationcalculation
- a source of a value that changes over timepublic static void bind(JLabel label, Calculation<?> calculation, Format formatter)
label
- the JLabel displaying the value of the calculationcalculation
- a source of a value that changes over timeformatter
- used to format the raw value of the calculation into pretty display text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |