com.sas.dataselectors.sort
Class SortSelectorModelFactory

com.sas.dataselectors.sort.SortSelectorModelFactory
All Implemented Interfaces:
com.sas.util.SortDirectionInterface

public class SortSelectorModelFactory
implements com.sas.util.SortDirectionInterface

This is the factory class for SortSelectorInterface instances. Right now, the only implementation it returns is the SortSelectorAdapter, but this can be expanded in the future.


Field Summary
 
Fields inherited from interface com.sas.util.SortDirectionInterface
ASCENDING, DESCENDING, NOT_SORTED
 
Constructor Summary
SortSelectorModelFactory()
           
 
Method Summary
static SortSelectorInterface getAdapter(javax.swing.table.TableModel model)
          Returns a new adapter for the given data model.
 

Constructor Detail

SortSelectorModelFactory

public SortSelectorModelFactory()
Method Detail

getAdapter

public static SortSelectorInterface getAdapter(javax.swing.table.TableModel model)
Returns a new adapter for the given data model.

Parameters:
model - the data model to sort the TableView
Returns:
a new adapter
Throws:
java.lang.IllegalArgumentException



Copyright © 2009 SAS Institute Inc. All Rights Reserved.