nl.coderight.jazz.util
Class JazzConfig

java.lang.Object
  extended by nl.coderight.jazz.util.JazzConfig

public final class JazzConfig
extends Object

Provides global configuration settings for Jazz applications.


Nested Class Summary
static class JazzConfig.ValidationIconPosition
          Enumeration of possible positions for validation overlay icon.
 
Method Summary
 Icon getAccordionCollapseIcon()
           
 Icon getAccordionExpandIcon()
           
 Color getAccordionSelectedItemColor()
           
 Color getCalendarDate1Color()
           
 Color getCalendarDate2Color()
           
 Color getCalendarDate3Color()
           
 Color getCalendarDayColor()
           
 Color getCalendarGridColor()
           
 Color getCalendarMonthColor()
           
 Icon getCalendarNextMonthIcon()
           
 Icon getCalendarPreviousMonthIcon()
           
 Color getCalendarWeekColor()
           
 Color getEvenBackgroundColor()
           
 Color getEvenForegroundColor()
           
 Color getFocusBorderColor()
           
 Font getFont()
          Returns global font.
 Color getInputPromptColor()
           
static JazzConfig getInstance()
          Returns instance of JazzConfig.
 String getLicenseApplication()
           
 String getLicenseInfo()
           
 Locale getLocale()
           
 Logger getLogger()
          Returns the Logger for Jazz.
 Color getOddBackgroundColor()
           
 Color getOddForegroundColor()
           
 ResourceManager getResourceManager()
           
 Color getSelectionBackground()
           
 Color getSelectionBackgroundWhenNotFocused()
           
 Color getSelectionForeground()
           
 Color getSelectionForegroundWhenNotFocused()
           
 Icon getTabCloseIcon()
           
 Color getTableNoDataColor()
           
 String getTableNoDataMessage()
           
 Icon getTreeClosedIcon()
           
 Icon getTreeLeafIcon()
           
 Icon getTreeOpenIcon()
           
 Icon getValidationIcon()
           
 String getValidationRequiredMessage()
           
 String getVersion()
           
 Icon getViewMenuTickIcon()
           
 boolean hasLicense()
           
 boolean isAlternatingColorsEnabled()
           
 boolean isDefaultLookAndFeelDecorated()
          Returns Whether look and feel is responsible for window decorations and rendering.
 boolean isFocusBorderEnabled()
           
 boolean isSortingEnabled()
           
 boolean isTabFocusTraversingEnabled()
           
 void setAccordionCollapseIcon(Icon icon)
           
 void setAccordionExpandIcon(Icon icon)
           
 void setAccordionSelectedItemColor(Color accordionSelectedItemColor)
           
 void setAlternatingColorsEnabled(boolean alternatingColorsEnabled)
           
 void setCalendarDate1Color(Color date1Color)
           
 void setCalendarDate2Color(Color date2Color)
           
 void setCalendarDate3Color(Color date3Color)
           
 void setCalendarDayColor(Color dayColor)
           
 void setCalendarGridColor(Color gridColor)
           
 void setCalendarMonthColor(Color monthColor)
           
 void setCalendarNextMonthIcon(Icon icon)
           
 void setCalendarPreviousMonthIcon(Icon icon)
           
 void setCalendarWeekColor(Color monthColor)
           
 void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
          Sets defaultLookAndFeelDecorated.
 void setDefaults()
          Reset configuration to default values.
 void setEvenBackgroundColor(Color evenBackground)
           
 void setEvenForegroundColor(Color evenForeground)
           
 void setFocusBorderColor(Color focusBorderColor)
           
 void setFocusBorderEnabled(boolean enabled)
           
 void setFont(Font font)
          Sets global font.
 void setInputPromptColor(Color inputPromptColor)
           
 void setLicense(URL url)
          Sets location of Jazz license file.
 void setLocale(Locale locale)
           
 void setLoggingEnabled(boolean enabled)
          Enables Jazz logging, default logging is not enabled.
 void setOddBackgroundColor(Color oddBackground)
           
 void setOddForegroundColor(Color oddForeground)
           
 void setResourceManager(ResourceManager resourceManager)
           
 void setSelectionBackground(Color selectionBackground)
           
 void setSelectionBackgroundWhenNotFocused(Color selectionBackgroundWhenNotFocused)
           
 void setSelectionForeground(Color selectionForeground)
           
 void setSelectionForegroundWhenNotFocused(Color selectionForegroundWhenNotFocused)
           
 void setSortingEnabled(boolean sortingEnabled)
           
 void setTabCloseIcon(Icon icon)
           
 void setTabFocusTraversingEnabled(boolean traversingEnabled)
           
 void setTableNoDataColor(Color tableNoDataColor)
           
 void setTableNoDataMessage(String message)
           
 void setTreeClosedIcon(Icon closedIcon)
           
 void setTreeLeafIcon(Icon leafIcon)
           
 void setTreeOpenIcon(Icon openIcon)
           
 void setValidationIcon(Icon icon)
           
 void setValidationIconPosition(JazzConfig.ValidationIconPosition pos)
           
 void setValidationRequiredMessage(String message)
           
 void setViewMenuTickIcon(Icon tickIcon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final JazzConfig getInstance()
Returns instance of JazzConfig.


setDefaultLookAndFeelDecorated

public void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
Sets defaultLookAndFeelDecorated.

When set to true the look and feel is responsible for window decorations and rendering.


isDefaultLookAndFeelDecorated

public boolean isDefaultLookAndFeelDecorated()
Returns Whether look and feel is responsible for window decorations and rendering.


setDefaults

public void setDefaults()
Reset configuration to default values.


getFont

public Font getFont()
Returns global font.


setFont

public void setFont(Font font)
Sets global font.


setLoggingEnabled

public void setLoggingEnabled(boolean enabled)
Enables Jazz logging, default logging is not enabled.


getLogger

public Logger getLogger()
Returns the Logger for Jazz.

See Also:
Logger

setLocale

public void setLocale(Locale locale)

getLocale

public Locale getLocale()

setResourceManager

public void setResourceManager(ResourceManager resourceManager)

getResourceManager

public ResourceManager getResourceManager()

isSortingEnabled

public boolean isSortingEnabled()

setSortingEnabled

public void setSortingEnabled(boolean sortingEnabled)

getValidationRequiredMessage

public String getValidationRequiredMessage()

setValidationRequiredMessage

public void setValidationRequiredMessage(String message)

isTabFocusTraversingEnabled

public boolean isTabFocusTraversingEnabled()

setTabFocusTraversingEnabled

public void setTabFocusTraversingEnabled(boolean traversingEnabled)

isFocusBorderEnabled

public boolean isFocusBorderEnabled()

setFocusBorderEnabled

public void setFocusBorderEnabled(boolean enabled)

getFocusBorderColor

public Color getFocusBorderColor()

setFocusBorderColor

public void setFocusBorderColor(Color focusBorderColor)

getSelectionBackgroundWhenNotFocused

public Color getSelectionBackgroundWhenNotFocused()

setSelectionBackgroundWhenNotFocused

public void setSelectionBackgroundWhenNotFocused(Color selectionBackgroundWhenNotFocused)

getSelectionForegroundWhenNotFocused

public Color getSelectionForegroundWhenNotFocused()

setSelectionForegroundWhenNotFocused

public void setSelectionForegroundWhenNotFocused(Color selectionForegroundWhenNotFocused)

getSelectionBackground

public Color getSelectionBackground()

setSelectionBackground

public void setSelectionBackground(Color selectionBackground)

getSelectionForeground

public Color getSelectionForeground()

setSelectionForeground

public void setSelectionForeground(Color selectionForeground)

isAlternatingColorsEnabled

public boolean isAlternatingColorsEnabled()

setAlternatingColorsEnabled

public void setAlternatingColorsEnabled(boolean alternatingColorsEnabled)

setOddForegroundColor

public void setOddForegroundColor(Color oddForeground)

getOddForegroundColor

public Color getOddForegroundColor()

setOddBackgroundColor

public void setOddBackgroundColor(Color oddBackground)

getOddBackgroundColor

public Color getOddBackgroundColor()

setEvenForegroundColor

public void setEvenForegroundColor(Color evenForeground)

getEvenForegroundColor

public Color getEvenForegroundColor()

setEvenBackgroundColor

public void setEvenBackgroundColor(Color evenBackground)

getEvenBackgroundColor

public Color getEvenBackgroundColor()

getTableNoDataMessage

public String getTableNoDataMessage()

setTableNoDataMessage

public void setTableNoDataMessage(String message)

getTableNoDataColor

public Color getTableNoDataColor()

setTableNoDataColor

public void setTableNoDataColor(Color tableNoDataColor)

getInputPromptColor

public Color getInputPromptColor()

setInputPromptColor

public void setInputPromptColor(Color inputPromptColor)

getCalendarGridColor

public Color getCalendarGridColor()

setCalendarGridColor

public void setCalendarGridColor(Color gridColor)

getCalendarDayColor

public Color getCalendarDayColor()

setCalendarDayColor

public void setCalendarDayColor(Color dayColor)

getCalendarWeekColor

public Color getCalendarWeekColor()

setCalendarWeekColor

public void setCalendarWeekColor(Color monthColor)

getCalendarMonthColor

public Color getCalendarMonthColor()

setCalendarMonthColor

public void setCalendarMonthColor(Color monthColor)

getCalendarDate1Color

public Color getCalendarDate1Color()

setCalendarDate1Color

public void setCalendarDate1Color(Color date1Color)

getCalendarDate2Color

public Color getCalendarDate2Color()

setCalendarDate2Color

public void setCalendarDate2Color(Color date2Color)

getCalendarDate3Color

public Color getCalendarDate3Color()

setCalendarDate3Color

public void setCalendarDate3Color(Color date3Color)

getTabCloseIcon

public Icon getTabCloseIcon()

setTabCloseIcon

public void setTabCloseIcon(Icon icon)

getCalendarPreviousMonthIcon

public Icon getCalendarPreviousMonthIcon()

setCalendarPreviousMonthIcon

public void setCalendarPreviousMonthIcon(Icon icon)

getCalendarNextMonthIcon

public Icon getCalendarNextMonthIcon()

setCalendarNextMonthIcon

public void setCalendarNextMonthIcon(Icon icon)

getAccordionSelectedItemColor

public Color getAccordionSelectedItemColor()

setAccordionSelectedItemColor

public void setAccordionSelectedItemColor(Color accordionSelectedItemColor)

getAccordionExpandIcon

public Icon getAccordionExpandIcon()

setAccordionExpandIcon

public void setAccordionExpandIcon(Icon icon)

getAccordionCollapseIcon

public Icon getAccordionCollapseIcon()

setAccordionCollapseIcon

public void setAccordionCollapseIcon(Icon icon)

getValidationIcon

public Icon getValidationIcon()

setValidationIcon

public void setValidationIcon(Icon icon)

setValidationIconPosition

public void setValidationIconPosition(JazzConfig.ValidationIconPosition pos)

getTreeLeafIcon

public Icon getTreeLeafIcon()

setTreeLeafIcon

public void setTreeLeafIcon(Icon leafIcon)

getTreeOpenIcon

public Icon getTreeOpenIcon()

setTreeOpenIcon

public void setTreeOpenIcon(Icon openIcon)

getTreeClosedIcon

public Icon getTreeClosedIcon()

setTreeClosedIcon

public void setTreeClosedIcon(Icon closedIcon)

getViewMenuTickIcon

public Icon getViewMenuTickIcon()

setViewMenuTickIcon

public void setViewMenuTickIcon(Icon tickIcon)

setLicense

public void setLicense(URL url)
                throws Exception
Sets location of Jazz license file.

Throws:
Exception

getVersion

public String getVersion()

hasLicense

public boolean hasLicense()

getLicenseApplication

public String getLicenseApplication()

getLicenseInfo

public String getLicenseInfo()


Copyright 2010 CodeRight, All rights reserved.