|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.table.DefaultTableCellRenderer
org.tbee.swing.table.DefaultTableCellRenderer
org.tbee.swing.table.NumberRenderer
org.tbee.swing.table.CurrencyRenderer
public class CurrencyRenderer
Renders a currency in the current internationalization
,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
DefaultTableCellRenderer.UIResource |
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Fields inherited from class org.tbee.swing.table.NumberRenderer |
|---|
iNumberFormat |
| Fields inherited from class org.tbee.swing.table.DefaultTableCellRenderer |
|---|
cErrorBorder |
| Fields inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
noFocusBorder |
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CurrencyRenderer()
setup with defaults |
|
CurrencyRenderer(Locale pLocale)
setup |
|
CurrencyRenderer(Locale pLocale,
Currency currency)
The locale denotes the notation style The currency forces the currency instead of using the one that is common in the locale |
|
CurrencyRenderer(Locale pLocale,
int pMinFraction,
int pMaxFraction)
setup |
|
CurrencyRenderer(Locale pLocale,
int pMinFraction,
int pMaxFraction,
Currency currency)
The locale denotes the notation style The currency forces the currency instead of using the one that is common in the locale |
|
| Method Summary | |
|---|---|
void |
setCurrency(Currency value)
Even though the format may be american (where $ are used) the number could be in euro's. |
CurrencyRenderer |
withCurrency(Currency value)
|
| Methods inherited from class org.tbee.swing.table.NumberRenderer |
|---|
getColorForNegative, getColorForPositive, getColorForZero, getTableCellRendererComponent, setColorForNegative, setColorForPositive, setColorForZero |
| Methods inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
firePropertyChange, firePropertyChange, invalidate, isOpaque, repaint, repaint, repaint, revalidate, setBackground, setForeground, setValue, updateUI, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public CurrencyRenderer()
public CurrencyRenderer(Locale pLocale,
int pMinFraction,
int pMaxFraction)
pLocale - locale to use (or null for default)
public CurrencyRenderer(Locale pLocale,
int pMinFraction,
int pMaxFraction,
Currency currency)
pLocale - locale to use (or null for default)
public CurrencyRenderer(Locale pLocale,
Currency currency)
pLocale - locale to use (or null for default)public CurrencyRenderer(Locale pLocale)
pLocale - locale to use (or null for default)| Method Detail |
|---|
public void setCurrency(Currency value)
value - public CurrencyRenderer withCurrency(Currency value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||