net.coderazzi.filters.gui
Class Look

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

public class Look
extends Object

Class representing the current TableFilterHeader appearance.


Constructor Summary
Look()
           
 
Method Summary
 Color getBackground()
          Returns the background color used by the editors.
 CustomChoiceDecorator getCustomChoiceDecorator()
          Returns the registered CustomChoiceDecorator.
 Color getDisabledBackground()
          Returns the background color used for disabled editors.
 Color getDisabledForeground()
          Returns the foreground color used for disabled editors.
 Color getErrorForeground()
          Returns the color set by default as foreground on each text editor when the user commits any error on the filter expression.
 Font getFont()
          Returns the font used on editors.
 Color getForeground()
          Returns the foreground color used by the editors.
 Color getGridColor()
          Returns the color set by default for the header's grid.
 int getMaxVisiblePopupRows()
          Returns the maximum number of visible rows in the popup menu.
 Color getSelectionBackground()
          Returns the background color on focused editors.
 Color getSelectionForeground()
          Returns the foreground color on focused editors.
 Color getTextSelection()
          Returns the color set by default as text selection on filters.
 void setupComponent(Component c, boolean isSelected, boolean isEnabled)
          Prepares the provided component to have the expected appearance
Only the background, foreground and font are updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Look

public Look()
Method Detail

getBackground

public Color getBackground()
Returns the background color used by the editors.


getCustomChoiceDecorator

public CustomChoiceDecorator getCustomChoiceDecorator()
Returns the registered CustomChoiceDecorator.


getDisabledBackground

public Color getDisabledBackground()
Returns the background color used for disabled editors.


getDisabledForeground

public Color getDisabledForeground()
Returns the foreground color used for disabled editors.


getErrorForeground

public Color getErrorForeground()

Returns the color set by default as foreground on each text editor when the user commits any error on the filter expression.


getFont

public Font getFont()
Returns the font used on editors.


getForeground

public Color getForeground()
Returns the foreground color used by the editors.


getGridColor

public Color getGridColor()
Returns the color set by default for the header's grid.


getMaxVisiblePopupRows

public int getMaxVisiblePopupRows()
Returns the maximum number of visible rows in the popup menu.


getSelectionBackground

public Color getSelectionBackground()
Returns the background color on focused editors.


getSelectionForeground

public Color getSelectionForeground()
Returns the foreground color on focused editors.


getTextSelection

public Color getTextSelection()
Returns the color set by default as text selection on filters.


setupComponent

public void setupComponent(Component c,
                           boolean isSelected,
                           boolean isEnabled)
Prepares the provided component to have the expected appearance
Only the background, foreground and font are updated.