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 adaptiveChoices
          Whether to enable adaptive choices, true by default.
static AutoChoices autoChoices
          Whether to automatically fill with content the editor field's choices.
static boolean autoSelection
          Set to true to perform automatically the selection of a row that is uniquely identified by the existing filter.
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 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 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

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.


autoChoices

public static AutoChoices autoChoices
Whether to automatically fill with content the editor field's choices.


adaptiveChoices

public static boolean adaptiveChoices
Whether to enable adaptive choices, true by default.


ignoreCase

public static boolean ignoreCase
Whether to ignore case or not, 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 filter model.


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 choices are present.


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.


backgroundColor

public static Color backgroundColor
Header's background color.


foregroundColor

public static Color foregroundColor
Header's foreground color.


errorColor

public static Color errorColor
Header's error color.


gridColor

public static Color gridColor
Header's grid color.


disabledColor

public static Color disabledColor
Header's disabled color.


disabledBackgroundColor

public static Color disabledBackgroundColor
Header's disabled color.


selectionBackgroundColor

public static Color selectionBackgroundColor
Header's selection background color.


selectionForegroundColor

public static Color selectionForegroundColor
Header's selection foreground color.


selectionColor

public static Color selectionColor
Header's selection color.


font

public static Font font
Header's font.


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


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

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.



Copyright © 2011 coderazzi. All Rights Reserved.