Oracle Data-aware Controls Reference

oracle.dacf.control.swing
Interface SortDelegate

All Known Implementing Classes:
GridSortDelegate

public interface SortDelegate

Interface for sorting, used by the GridControl.

Version:
SDK

Method Summary
 void postSort(javax.infobus.ScrollableRowsetAccess scr)
          Implementation may use this method to cleanup
 boolean preSort(javax.infobus.ScrollableRowsetAccess scr)
          GridControl invokes this method, so that the implementation can prepare to sort.
 boolean sort(javax.infobus.ScrollableRowsetAccess scr, java.lang.String columnName, java.lang.String sortOrder)
          GridControl invokes this method to perform the actual sorting.
 

Method Detail

preSort

public boolean preSort(javax.infobus.ScrollableRowsetAccess scr)
GridControl invokes this method, so that the implementation can prepare to sort. The implementation for example may post changes to the database or prompt the user The return value of this method determines if sorting should continue

Returns:
true if sorting should continue

sort

public boolean sort(javax.infobus.ScrollableRowsetAccess scr,
                    java.lang.String columnName,
                    java.lang.String sortOrder)
GridControl invokes this method to perform the actual sorting. The return value is used by the GridControl to decide if the icon in the table header should change Irrespective of the value returned by this method, the postSort method is always invoked

Parameters:
columnName - which column to sort

postSort

public void postSort(javax.infobus.ScrollableRowsetAccess scr)
Implementation may use this method to cleanup


Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.