insensa.view.dialogs.connections
Class CDialogSetErrorPrioritizationProperties.NumberColumnFormat

java.lang.Object
  extended by insensa.view.dialogs.connections.CDialogSetErrorPrioritizationProperties.NumberColumnFormat
Enclosing class:
CDialogSetErrorPrioritizationProperties

public class CDialogSetErrorPrioritizationProperties.NumberColumnFormat
extends java.lang.Object

NumberColumnFormat makes available a simple NumberRenderer and NumberEditor for JTable. Usage example:

 
 &NumberColumnFormat numberColumnFormat = new NumberColumnFormat();
 &table.setDefaultRenderer(Number.class, numberColumnFormat.getRenderer());
 &table.setDefaultEditor(Number.class, numberColumnFormat.getEditor());
 
 


Nested Class Summary
private  class CDialogSetErrorPrioritizationProperties.NumberColumnFormat.NumberEditor
           
private  class CDialogSetErrorPrioritizationProperties.NumberColumnFormat.NumberRenderer
           
 
Field Summary
private  javax.swing.DefaultCellEditor editor
           
private  java.text.DecimalFormat formatterE
           
private  java.text.DecimalFormat formatterR
           
private  java.text.DecimalFormatSymbols numberSymbols
           
private  javax.swing.table.DefaultTableCellRenderer renderer
           
 
Constructor Summary
CDialogSetErrorPrioritizationProperties.NumberColumnFormat()
          Constructs a NumberColumnFormat using the pattern "###,###,###.##" and the default number format symbols for the default locale.
CDialogSetErrorPrioritizationProperties.NumberColumnFormat(java.lang.String pattern)
          Constructs a NumberColumnFormat using the given pattern and the default number format symbols for the default locale.
CDialogSetErrorPrioritizationProperties.NumberColumnFormat(java.lang.String patternR, java.lang.String patternE)
          Constructs a NumberColumnFormat using the given patterns and the default number format symbols for the default locale.
 
Method Summary
 javax.swing.DefaultCellEditor getEditor()
          Returns the number cell editor.
 java.text.DecimalFormatSymbols getNumberSymbols()
          Returns the DecimalFormatSymbols.
 javax.swing.table.DefaultTableCellRenderer getRenderer()
          Returns the number cell renderer.
 void setDecimalSeparator(char sep)
          Sets the DecimalSeparator used for the number rendering.
 void setGroupingSeparator(char sep)
          Sets the GroupingSeparator used for the number rendering.
 void setNumberSymbols(java.text.DecimalFormatSymbols numberSymbols)
          Sets the DecimalFormatSymbols used for the number rendering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatterR

private java.text.DecimalFormat formatterR

formatterE

private java.text.DecimalFormat formatterE

renderer

private javax.swing.table.DefaultTableCellRenderer renderer

numberSymbols

private java.text.DecimalFormatSymbols numberSymbols

editor

private javax.swing.DefaultCellEditor editor
Constructor Detail

CDialogSetErrorPrioritizationProperties.NumberColumnFormat

public CDialogSetErrorPrioritizationProperties.NumberColumnFormat()
Constructs a NumberColumnFormat using the pattern "###,###,###.##" and the default number format symbols for the default locale.


CDialogSetErrorPrioritizationProperties.NumberColumnFormat

public CDialogSetErrorPrioritizationProperties.NumberColumnFormat(java.lang.String pattern)
Constructs a NumberColumnFormat using the given pattern and the default number format symbols for the default locale.

Parameters:
pattern - the pattern describing the number format, "###,###,###.##" if null

CDialogSetErrorPrioritizationProperties.NumberColumnFormat

public CDialogSetErrorPrioritizationProperties.NumberColumnFormat(java.lang.String patternR,
                                                                  java.lang.String patternE)
Constructs a NumberColumnFormat using the given patterns and the default number format symbols for the default locale.

Parameters:
patternR - the pattern describing the number format of the renderer, "###,###,###.##" if null
patternE - the pattern describing the number format of the editor, "#########.##" if null
Method Detail

getEditor

public javax.swing.DefaultCellEditor getEditor()
Returns the number cell editor.

Returns:
the table number cell editor

getNumberSymbols

public java.text.DecimalFormatSymbols getNumberSymbols()
Returns the DecimalFormatSymbols.

Returns:
the DecimalFormatSymbols used for the number rendering.

getRenderer

public javax.swing.table.DefaultTableCellRenderer getRenderer()
Returns the number cell renderer.

Returns:
the table number cell renderer

setDecimalSeparator

public void setDecimalSeparator(char sep)
Sets the DecimalSeparator used for the number rendering.

Parameters:
sep -

setGroupingSeparator

public void setGroupingSeparator(char sep)
Sets the GroupingSeparator used for the number rendering.

Parameters:
sep -

setNumberSymbols

public void setNumberSymbols(java.text.DecimalFormatSymbols numberSymbols)
Sets the DecimalFormatSymbols used for the number rendering.

Parameters:
numberSymbols -