ca.odell.glazedlists.swing
Class EventListJXTableSorting

java.lang.Object
  extended by ca.odell.glazedlists.swing.EventListJXTableSorting

public class EventListJXTableSorting
extends Object

Sort a JXTable using SortedList.

Extension: SwingX
This Glazed Lists extension requires the third party library SwingX.
Tested Version:CVS Head, April 15, 2006
Home page:https://swingx.dev.java.net/
License:LGPL

To prepare a JXTable to be sorted using a SortedList:

  • Create a SortedList and EventTableModel that depends on that SortedList.
  • Create a JXTable using the EventTableModel as its model.
  • Run the install(org.jdesktop.swingx.JXTable, ca.odell.glazedlists.SortedList) method to bind the JXTable's headers to the SortedList's Comparator.

    Note that your FilterPipeline will be changed as a consequence of using EventListJXTableSorting. This is due to API limitations in SwingX which will hopefully be eventually resolved. For this reason it is recommended that you not use FilterPipeline with this class. Instead, consider using FilterList for filtering your JXTable.

    Since this class works with the SwingX project, it is likely to change as SwingX continues to evolve and mature. We will attempt to maintain source and binary compatibility as SwingX changes, but it is highly recommended that you test your table sorting each time you update your SwingX jar file.

    Author:
    Jesse Wilson

    Method Summary
    static EventListJXTableSorting install(JXTable table, SortedList sortedList)
              Install this EventListJXTableSorting to provide the sorting behaviour for the specified JXTable.
     void uninstall()
              Remove this EventListJXTableSorting from the JXTable.
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Method Detail

    install

    public static EventListJXTableSorting install(JXTable table,
                                                  SortedList sortedList)
    Install this EventListJXTableSorting to provide the sorting behaviour for the specified JXTable.


    uninstall

    public void uninstall()
    Remove this EventListJXTableSorting from the JXTable.



    Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
    Documentation build by jessewilson at 2006-08-09 23:05