ca.sqlpower.wabit.report
Class ReportUtil

java.lang.Object
  extended by ca.sqlpower.wabit.report.ReportUtil

public class ReportUtil
extends java.lang.Object

This class contains a collection of static methods that are useful when creating report classes.


Field Summary
static java.lang.String DEFAULT_FORMAT_STRING
          This string is used to describe the default format when selecting a format.
 
Method Summary
static javax.swing.JButton createFontButton(javax.swing.JComponent fontTarget)
          This returns a button to choose a font type.
static java.util.List<java.text.DecimalFormat> getNumberFormats()
          This returns a list of several different DecimalFormats that can be used in number formatting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FORMAT_STRING

public static final java.lang.String DEFAULT_FORMAT_STRING
This string is used to describe the default format when selecting a format.

See Also:
Constant Field Values
Method Detail

createFontButton

public static javax.swing.JButton createFontButton(javax.swing.JComponent fontTarget)
This returns a button to choose a font type. The font of the component passed in will be used as the default font of the FontSelector when it is opened. The font chosen will also be placed on this JComponent when a font is selected.

Parameters:
fontTarget - The component that will have its font modified when the user chooses a new font. The parent window of this component will be used as a parent for the font selector.
Returns:
A button that will display a FontSelector to choose a new font for the JComponent.

getNumberFormats

public static java.util.List<java.text.DecimalFormat> getNumberFormats()
This returns a list of several different DecimalFormats that can be used in number formatting.



Copyright © 2009. All Rights Reserved.