|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectceleboss.ui.UIHelper
Static utility class for Celebos windows.
| Field Summary | |
static java.text.NumberFormat |
CURRENCY
Default format for Currency. |
static java.text.DateFormat |
DATETIME
Default format for date time |
static javax.swing.Icon |
DOWN_ICON
Icon for decreasing values |
static javax.swing.Icon |
HIGHEST_ICON
Icon for highest value |
static javax.swing.Icon |
HIGHEST_UP_ICON
Icon for highest value |
static javax.swing.Icon |
LOWEST_DOWN_ICON
Icon for lowest values |
static javax.swing.Icon |
LOWEST_ICON
Icon for lowest values |
static java.text.NumberFormat |
NUMBER
Default format for all Number values |
static java.text.NumberFormat |
PERCENTAGE
Default format for all percetnage values |
static javax.swing.Icon |
UP_ICON
Icon for increasing values |
| Method Summary | |
static javax.swing.JLabel |
addGridLabel(javax.swing.JPanel panel,
int column,
java.lang.String label)
Adds a label and a vlaue label to a panel using Gridbag at a specific column. |
static javax.swing.JLabel |
addGridLabel(javax.swing.JPanel panel,
java.lang.String label)
Adds a label and a vlaue label to a panel using Gridbag |
static javax.swing.Icon |
getChangableValueIcon(ChangableValue change)
Generate an icon that best represents the status of a ChangeableValue. |
static javax.swing.Icon |
getIcon(java.lang.String name)
Find an icon by name from the class loader. |
static void |
setChangeLabel(javax.swing.JLabel label,
ChangableValue value)
This is a helper method that updates a JLabel with a changable value according to the common formatting. |
static void |
setChangeLabel(javax.swing.JLabel label,
java.text.NumberFormat format,
ChangableValue value)
This is a helper method that updates a JLabel with a changable value according to the common formatting. |
static void |
setDateLabel(javax.swing.JLabel label,
java.util.Date time)
This is a helper method that updates a JLabel with a Date value according to the common formatting. |
static void |
setMoneyLabel(javax.swing.JLabel label,
float cashValue)
This is a helper method that updates a JLabel with a Money value according to the common formatting. |
static void |
setMoneyLabel(javax.swing.JLabel label,
java.lang.Float cashValue)
This is a helper method that updates a JLabel with a Money value according to the common formatting. |
static void |
setPercentageLabel(javax.swing.JLabel label,
java.lang.Float perc)
This is a helper method that updates a JLabel with a percentage value according to the common formatting. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.text.NumberFormat CURRENCY
public static final java.text.DateFormat DATETIME
public static final javax.swing.Icon DOWN_ICON
public static final javax.swing.Icon HIGHEST_ICON
public static final javax.swing.Icon HIGHEST_UP_ICON
public static final javax.swing.Icon LOWEST_DOWN_ICON
public static final javax.swing.Icon LOWEST_ICON
public static final java.text.NumberFormat NUMBER
public static final java.text.NumberFormat PERCENTAGE
public static final javax.swing.Icon UP_ICON
| Method Detail |
public static javax.swing.JLabel addGridLabel(javax.swing.JPanel panel,
int column,
java.lang.String label)
panel - Target panelcolumn - The column indexlabel - Text of label
public static javax.swing.JLabel addGridLabel(javax.swing.JPanel panel,
java.lang.String label)
panel - Target panellabel - Text of label
public static javax.swing.Icon getChangableValueIcon(ChangableValue change)
change - Value to represent
public static javax.swing.Icon getIcon(java.lang.String name)
name - Name of icon.
public static void setChangeLabel(javax.swing.JLabel label,
ChangableValue value)
label - JLabel to update.value - Value.
public static void setChangeLabel(javax.swing.JLabel label,
java.text.NumberFormat format,
ChangableValue value)
label - JLabel to update.format - Format to use.value - Value.
public static void setDateLabel(javax.swing.JLabel label,
java.util.Date time)
label - JLable to update.time - Value.
public static void setMoneyLabel(javax.swing.JLabel label,
float cashValue)
label - JLable to update.cashValue - Value.
public static void setMoneyLabel(javax.swing.JLabel label,
java.lang.Float cashValue)
label - JLable to update.cashValue - Value.
public static void setPercentageLabel(javax.swing.JLabel label,
java.lang.Float perc)
label - JLable to update.perc - Value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||