ca.odell.glazedlists.swing
Class SwingCalculations

java.lang.Object
  extended by 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
 

Method Detail

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 calculation
calculation - 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 calculation
calculation - a source of a value that changes over time
formatter - 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