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 getCalendarDate1Color()
           
 Color getCalendarDate2Color()
           
 Color getCalendarDate3Color()
           
 Color getCalendarDayColor()
           
 Color getCalendarGridColor()
           
 Color getCalendarMonthColor()
           
 Icon getCalendarNextMonthIcon()
           
 Icon getCalendarPreviousMonthIcon()
           
 Color getCalendarWeekColor()
           
 Color getEvenBackgroundColor()
           
 Color getEvenForegroundColor()
           
 Color getFocusBorderColor()
           
 Color getInputPromptColor()
          Returns the default color for prompt text.
static JazzConfig getInstance()
          Returns instance of JazzConfig.
 String getLicenseApplication()
           
 String getLicenseCompany()
           
 String getLicenseDeveloper()
           
 String getLicenseInfo()
           
 JazzLicense.Type getLicenseType()
           
 Locale getLocale()
          Returns the default Locale.
 Logger getLogger()
          Returns the Logger for Jazz.
 Color getOddBackgroundColor()
           
 Color getOddForegroundColor()
           
 ResourceManager getResourceManager()
          Returns the ResourceManager.
 Color getSelectionBackground()
           
 Color getSelectionBackgroundWhenNotFocused()
           
 Color getSelectionForeground()
           
 Color getSelectionForegroundWhenNotFocused()
           
 Icon getTabCloseIcon()
           
 Color getTableNoDataColor()
          Returns the default color for TableField has no data message.
 String getTableNoDataMessage()
          Returns the default message when TableField has no data.
 Icon getTreeClosedIcon()
           
 Icon getTreeLeafIcon()
           
 Icon getTreeOpenIcon()
           
 Icon getValidationIcon()
           
 String getValidationRequiredMessage()
          Returns the default validation required message.
 String getVersion()
           
 boolean hasLicense()
           
 boolean isAlternatingColorsEnabled()
          Returns whether alternating colors is enabled.
 boolean isDefaultLookAndFeelDecorated()
          Returns Whether look and feel is responsible for window decorations and rendering.
 boolean isFocusBorderEnabled()
           
 boolean isSortingEnabled()
          Returns whether sorting is enabled.
 boolean isTabFocusTraversingEnabled()
          Returns whether tab focus traversing is enabled.
 void setAccordionCollapseIcon(Icon icon)
           
 void setAccordionExpandIcon(Icon icon)
           
 void setAlternatingColorsEnabled(boolean alternatingColorsEnabled)
          Sets whether alternating colors is enabled.
 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 setInputPromptColor(Color inputPromptColor)
          Sets the default color for prompt text.
 void setLicense(URL url)
          Sets location of Jazz license file.
 void setLocale(Locale locale)
          Sets the default Locale.
 void setLoggingEnabled(boolean enabled)
          Enables Jazz logging.
 void setOddBackgroundColor(Color oddBackground)
           
 void setOddForegroundColor(Color oddForeground)
           
 void setResourceManager(ResourceManager resourceManager)
          Sets the ResourceManager.
 void setSelectionBackground(Color selectionBackground)
           
 void setSelectionBackgroundWhenNotFocused(Color selectionBackgroundWhenNotFocused)
           
 void setSelectionForeground(Color selectionForeground)
           
 void setSelectionForegroundWhenNotFocused(Color selectionForegroundWhenNotFocused)
           
 void setSortingEnabled(boolean sortingEnabled)
          Sets whether sorting is enabled.
 void setTabCloseIcon(Icon icon)
           
 void setTabFocusTraversingEnabled(boolean traversingEnabled)
          Sets whether tab focus traversing is enabled.
 void setTableNoDataColor(Color tableNoDataColor)
          Sets the default color for TableField has no data message.
 void setTableNoDataMessage(String message)
          Sets the default message when TableField has no data.
 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)
          Sets the default validation required message.
 
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.

Parameters:
defaultLookAndFeelDecorated -
Since:
1.4

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.


setLoggingEnabled

public void setLoggingEnabled(boolean enabled)
Enables Jazz logging.

Since:
1.3

getLogger

public Logger getLogger()
Returns the Logger for Jazz.

Since:
1.3
See Also:
Logger

setLocale

public void setLocale(Locale locale)
Sets the default Locale.

See Also:
Locale

getLocale

public Locale getLocale()
Returns the default Locale.

See Also:
Locale

setResourceManager

public void setResourceManager(ResourceManager resourceManager)
Sets the ResourceManager.

Since:
1.1
See Also:
ResourceManager

getResourceManager

public ResourceManager getResourceManager()
Returns the ResourceManager.

Since:
1.1
See Also:
ResourceManager

isSortingEnabled

public boolean isSortingEnabled()
Returns whether sorting is enabled.


setSortingEnabled

public void setSortingEnabled(boolean sortingEnabled)
Sets whether sorting is enabled.


getValidationRequiredMessage

public String getValidationRequiredMessage()
Returns the default validation required message.

Since:
1.4

setValidationRequiredMessage

public void setValidationRequiredMessage(String message)
Sets the default validation required message.

Since:
1.4

isTabFocusTraversingEnabled

public boolean isTabFocusTraversingEnabled()
Returns whether tab focus traversing is enabled.

Since:
1.4

setTabFocusTraversingEnabled

public void setTabFocusTraversingEnabled(boolean traversingEnabled)
Sets whether tab focus traversing is enabled.

Since:
1.4

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()
Returns whether alternating colors is enabled.


setAlternatingColorsEnabled

public void setAlternatingColorsEnabled(boolean alternatingColorsEnabled)
Sets whether alternating colors is enabled.


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()
Returns the default message when TableField has no data.

Since:
1.6

setTableNoDataMessage

public void setTableNoDataMessage(String message)
Sets the default message when TableField has no data.

Since:
1.6

getTableNoDataColor

public Color getTableNoDataColor()
Returns the default color for TableField has no data message.

Since:
1.6

setTableNoDataColor

public void setTableNoDataColor(Color tableNoDataColor)
Sets the default color for TableField has no data message.

Since:
1.6

getInputPromptColor

public Color getInputPromptColor()
Returns the default color for prompt text.

Since:
1.6

setInputPromptColor

public void setInputPromptColor(Color inputPromptColor)
Sets the default color for prompt text.

Since:
1.6

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)

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)

setLicense

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

Parameters:
url -
Throws:
Exception

getVersion

public String getVersion()

hasLicense

public boolean hasLicense()

getLicenseType

public JazzLicense.Type getLicenseType()

getLicenseApplication

public String getLicenseApplication()

getLicenseDeveloper

public String getLicenseDeveloper()

getLicenseCompany

public String getLicenseCompany()

getLicenseInfo

public String getLicenseInfo()


Copyright 2010 CodeRight, All rights reserved.