ca.odell.glazedlists.swing
Class SwingCalculations
java.lang.Object
ca.odell.glazedlists.swing.SwingCalculations
public final class SwingCalculations
- extends Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bind
public static void bind(JLabel label,
Calculation<?> calculation)
- Updates the given label with the latest value of a Calculation each time
it reports a change.
- Parameters:
label
- the JLabel displaying the value of the calculationcalculation
- a source of a value that changes over time
bind
public 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.
- Parameters:
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
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by James Lemieux at 2009-01-25 18:40