public final class SwingCalculations
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.
|
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 builder at 2012-09-17 16:07