Site hosted at byteslooser and Grasia! mirrors.


com.byteslooser.filters.parser.generic
Class TableFilterHelper

java.lang.Object
  extended by com.byteslooser.filters.parser.generic.TableFilterHelper

public abstract class TableFilterHelper
extends Object

Helper class, implementing funcionality commonly used, associated to the creation and usage of IFilterTextParser

Author:
Luis M Pena - byteslooser@gmail.com

Constructor Summary
TableFilterHelper()
           
 
Method Summary
static FilterTextParser createTextFilterParser(TableModel model)
          Creates a generic FilterTextParser that uses the identifiers provided by the passed table model (as extracted from the table headers)
static List<IdentifierInfo> extractIdentifiersFromTableColumnNames(TableModel model)
          Obtains the identifiers from the table headers
static List<IdentifierInfo> extractIdentifiersFromTableColumnNames(TableModel model, int columns)
          Obtains the identifiers from the table headers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableFilterHelper

public TableFilterHelper()
Method Detail

extractIdentifiersFromTableColumnNames

public static List<IdentifierInfo> extractIdentifiersFromTableColumnNames(TableModel model)
Obtains the identifiers from the table headers


extractIdentifiersFromTableColumnNames

public static List<IdentifierInfo> extractIdentifiersFromTableColumnNames(TableModel model,
                                                                          int columns)
Obtains the identifiers from the table headers


createTextFilterParser

public static FilterTextParser createTextFilterParser(TableModel model)
Creates a generic FilterTextParser that uses the identifiers provided by the passed table model (as extracted from the table headers)