public final class CalculationsSwing
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
bind(javax.swing.JLabel label,
Calculation<?> calculation)
Updates the given label with the latest value of a Calculation each time
it reports a change.
|
static void |
bind(javax.swing.JLabel label,
Calculation<?> calculation,
java.text.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 <E> Calculation<E> |
swingThreadProxyCalculation(Calculation<? extends E> source)
Wraps the source in a
Calculation that fires all of its update
events from the Swing event dispatch thread. |
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(javax.swing.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(javax.swing.JLabel label, Calculation<?> calculation, java.text.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 textGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2016-06-08 1:31