zinger.bsheet
Class TableSort

java.lang.Object
  extended by zinger.bsheet.DialogEditor
      extended by zinger.bsheet.TableSort
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class TableSort
extends DialogEditor


Nested Class Summary
protected static class TableSort.ComparatorEditor
           
protected static class TableSort.ComparatorTableModel
           
 
Field Summary
protected  javax.swing.table.TableColumnModel columnModel
           
protected  java.util.Comparator[] comparators
           
protected  javax.swing.JTable comparatorTable
           
protected  javax.swing.table.TableModel model
           
protected  java.lang.String setNaturalOrderCommand
           
protected  java.lang.String setReverseOrderCommand
           
protected  int[] sortColumns
           
 
Fields inherited from class zinger.bsheet.DialogEditor
acceptButton, acceptCommand, acceptLabel, cancelButton, cancelCommand, cancelLabel, cellEditCommand, changesAccepted, colEditCommand, dialog, dialogTitle, lock, table
 
Constructor Summary
TableSort(javax.swing.JTable table)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
protected  void createComparatorTable()
           
protected  void createDialog()
           
protected  javax.swing.JToolBar createToolBar()
           
protected  void doSort(int startRow, int nRows)
           
protected  void editCells()
           
protected  void editColumns()
           
protected  void prompt()
           
protected  void setSelectedComparators(java.lang.Object comp)
           
 
Methods inherited from class zinger.bsheet.DialogEditor
buildButtonPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comparatorTable

protected javax.swing.JTable comparatorTable

columnModel

protected javax.swing.table.TableColumnModel columnModel

model

protected javax.swing.table.TableModel model

sortColumns

protected int[] sortColumns

comparators

protected java.util.Comparator[] comparators

setNaturalOrderCommand

protected final java.lang.String setNaturalOrderCommand

setReverseOrderCommand

protected final java.lang.String setReverseOrderCommand
Constructor Detail

TableSort

public TableSort(javax.swing.JTable table)
Method Detail

editColumns

protected void editColumns()
Specified by:
editColumns in class DialogEditor

editCells

protected void editCells()
Specified by:
editCells in class DialogEditor

doSort

protected void doSort(int startRow,
                      int nRows)

prompt

protected void prompt()

createComparatorTable

protected void createComparatorTable()

createDialog

protected void createDialog()
Overrides:
createDialog in class DialogEditor

createToolBar

protected javax.swing.JToolBar createToolBar()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class DialogEditor

setSelectedComparators

protected void setSelectedComparators(java.lang.Object comp)