net.coderazzi.filters.gui
Class FilterSettings

java.lang.Object
  extended by net.coderazzi.filters.gui.FilterSettings

public class FilterSettings
extends Object

Class to define some common settings to the TableFilter library. It is just a sugar replacement to using directly system properties (which could be not available, anyway)


Field Summary
static boolean autoOptions
          Whether to automatically fill with content the editor field's options
static boolean autoSelection
          Set to true to perform automatically the selection of a row that is uniquely identified by the existing filter.
static String dateFormat
          The default date format, used on the default text parser
static String defaultOperator
          The default operator used on the text parser
static Class<? extends IFilterTextParser> filterTextParserClass
          The class to handle the text parsing by default.
static TableFilterHeader.Position headerPosition
          The header position, TableFilterHeader.Position.INLINE by default.
static boolean ignoreCase
          Whether to ignore case or not.
static int maxPopupHistory
          The maximum size of the history when no options are present
static int maxVisiblePopupRows
          The maximum number of visible tows on the popup menus
 
Constructor Summary
FilterSettings()
           
 
Method Summary
static IFilterTextParser newTextParser()
          Creates a TextParser as defined by default
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

autoSelection

public static boolean autoSelection
Set to true to perform automatically the selection of a row that is uniquely identified by the existing filter. It is true by default.


autoOptions

public static boolean autoOptions
Whether to automatically fill with content the editor field's options


ignoreCase

public static boolean ignoreCase
Whether to ignore case or not. It is false by default (case sensitive)


headerPosition

public static TableFilterHeader.Position headerPosition
The header position, TableFilterHeader.Position.INLINE by default.


dateFormat

public static String dateFormat
The default date format, used on the default text parser


defaultOperator

public static String defaultOperator
The default operator used on the text parser


maxVisiblePopupRows

public static int maxVisiblePopupRows
The maximum number of visible tows on the popup menus


maxPopupHistory

public static int maxPopupHistory
The maximum size of the history when no options are present


filterTextParserClass

public static Class<? extends IFilterTextParser> filterTextParserClass
The class to handle the text parsing by default. It must have a default constructor. It corresponds to the property TextParser.class

Constructor Detail

FilterSettings

public FilterSettings()
Method Detail

newTextParser

public static IFilterTextParser newTextParser()
Creates a TextParser as defined by default