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 AutoChoices autoChoices
          If and how to provide content to the editor field's choices.
static boolean autoCompletion
          Whether to enable auto completion, true by default.
static Color backgroundColor
          Header's background color.
static Class<? extends CustomChoiceDecorator> customChoiceDecoratorClass
          The class defining the generic IParserModel
It must have a default constructor.
It corresponds to the property ParserModel.class
static String dateFormat
          The default date format, used on the default filter model.
static Color disabledBackgroundColor
          Header's disabled color.
static Color disabledColor
          Header's disabled color.
static Color errorColor
          Header's error color.
static int filterRowHeightDelta
          Setting to add / decrease height to the filter row.
This setting could be specifically required on specific Look And Feels -Substance seems to require additional height.
static Font font
          Header's font.
static Color foregroundColor
          Header's foreground color.
static Color gridColor
          Header's grid color.
static TableFilterHeader.Position headerPosition
          The header position, TableFilterHeader.Position.INLINE by default.
static boolean ignoreCase
          Whether to ignore case or not, false by default (case sensitive).
static boolean instantFiltering
          Whether to enable instant filtering, true by default.
static Icon matchEmptyFilterIcon
          The default icon used to represent null/empty values.
static String matchEmptyFilterString
          The default string associated to a nop operation.
static int maxPopupHistory
          The maximum size of the history when no choices are present.
static int maxVisiblePopupRows
          The maximum number of visible tows on the popup menus.
static Class<? extends IParserModel> parserModelClass
          The class defining the generic IParserModel
It must have a default constructor.
It corresponds to the property ParserModel.class
static String PROPERTIES_PREFIX
          Properties must be defined with this prefix.
static Color selectionBackgroundColor
          Header's selection background color.
static Color selectionColor
          Header's selection color.
static Color selectionForegroundColor
          Header's selection foreground color.
 
Constructor Summary
FilterSettings()
           
 
Method Summary
static CustomChoiceDecorator newCustomChoiceDecorator()
          Creates a CustomChoiceDecorator as defined by default.
static IParserModel newParserModel()
          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

PROPERTIES_PREFIX

public static final String PROPERTIES_PREFIX
Properties must be defined with this prefix.

See Also:
Constant Field Values

autoChoices

public static AutoChoices autoChoices
If and how to provide content to the editor field's choices.


autoCompletion

public static boolean autoCompletion
Whether to enable auto completion, true by default.


backgroundColor

public static Color backgroundColor
Header's background color.


customChoiceDecoratorClass

public static Class<? extends CustomChoiceDecorator> customChoiceDecoratorClass
The class defining the generic IParserModel
It must have a default constructor.
It corresponds to the property ParserModel.class


dateFormat

public static String dateFormat
The default date format, used on the default filter model.


disabledBackgroundColor

public static Color disabledBackgroundColor
Header's disabled color.


disabledColor

public static Color disabledColor
Header's disabled color.


errorColor

public static Color errorColor
Header's error color.


filterRowHeightDelta

public static int filterRowHeightDelta
Setting to add / decrease height to the filter row.
This setting could be specifically required on specific Look And Feels -Substance seems to require additional height.


font

public static Font font
Header's font.


foregroundColor

public static Color foregroundColor
Header's foreground color.


gridColor

public static Color gridColor
Header's grid color.


headerPosition

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


ignoreCase

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


instantFiltering

public static boolean instantFiltering
Whether to enable instant filtering, true by default.


matchEmptyFilterIcon

public static Icon matchEmptyFilterIcon
The default icon used to represent null/empty values.


matchEmptyFilterString

public static String matchEmptyFilterString
The default string associated to a nop operation.

It is chosen as = because that is the expression that the default text parser can use to find null/empty values. If any other parse is chosen, it could be meaningful to update this string.


maxPopupHistory

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


maxVisiblePopupRows

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


parserModelClass

public static Class<? extends IParserModel> parserModelClass
The class defining the generic IParserModel
It must have a default constructor.
It corresponds to the property ParserModel.class


selectionBackgroundColor

public static Color selectionBackgroundColor
Header's selection background color.


selectionColor

public static Color selectionColor
Header's selection color.


selectionForegroundColor

public static Color selectionForegroundColor
Header's selection foreground color.

Constructor Detail

FilterSettings

public FilterSettings()
Method Detail

newParserModel

public static IParserModel newParserModel()
Creates a TextParser as defined by default.


newCustomChoiceDecorator

public static CustomChoiceDecorator newCustomChoiceDecorator()
Creates a CustomChoiceDecorator as defined by default.