|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object insensa.view.dialogs.connections.CDialogSetIndexationProperties.NumberColumnFormat
public class CDialogSetIndexationProperties.NumberColumnFormat
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 |
CDialogSetIndexationProperties.NumberColumnFormat.NumberEditor
|
private class |
CDialogSetIndexationProperties.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 | |
---|---|
CDialogSetIndexationProperties.NumberColumnFormat()
Constructs a NumberColumnFormat using the pattern
"###,###,###.##" and the default number format symbols for the
default locale. |
|
CDialogSetIndexationProperties.NumberColumnFormat(java.lang.String pattern)
Constructs a NumberColumnFormat using the given pattern
and the default number format symbols for the default locale. |
|
CDialogSetIndexationProperties.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 |
---|
private java.text.DecimalFormat formatterR
private java.text.DecimalFormat formatterE
private javax.swing.table.DefaultTableCellRenderer renderer
private java.text.DecimalFormatSymbols numberSymbols
private javax.swing.DefaultCellEditor editor
Constructor Detail |
---|
public CDialogSetIndexationProperties.NumberColumnFormat()
NumberColumnFormat
using the pattern
"###,###,###.##" and the default number format symbols for the
default locale.
public CDialogSetIndexationProperties.NumberColumnFormat(java.lang.String pattern)
NumberColumnFormat
using the given pattern
and the default number format symbols for the default locale.
pattern
- the pattern describing the number format, "###,###,###.##"
if nullpublic CDialogSetIndexationProperties.NumberColumnFormat(java.lang.String patternR, java.lang.String patternE)
NumberColumnFormat
using the given patterns
and the default number format symbols for the default locale.
patternR
- the pattern describing the number format of the renderer,
"###,###,###.##" if nullpatternE
- the pattern describing the number format of the editor,
"#########.##" if nullMethod Detail |
---|
public javax.swing.DefaultCellEditor getEditor()
public java.text.DecimalFormatSymbols getNumberSymbols()
public javax.swing.table.DefaultTableCellRenderer getRenderer()
public void setDecimalSeparator(char sep)
sep
- public void setGroupingSeparator(char sep)
sep
- public void setNumberSymbols(java.text.DecimalFormatSymbols numberSymbols)
numberSymbols
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |