I'm trying to display numeric values as 90 (+1) or 90 (-0.98) within a cell where the values within the parenthesis are colored in red or green (just like watching the stock prices real time). Legacy Java Answers Forum - April 2001:: Calling a Crystal report from within a java Swing Application - Ajit . Problems translating Dates format - Fran Perez June 21, 2001 at 12:29 PM (4) http://www.artima.com/legacy/answers/Apr2001/index.htmlHOME | Formatting a Flex DataGrid control using a custom item renderer at :: X being the value that would be represented by the position of the hslider. /07/11/using-an-itemrenderer-to-change-the-background-of-a-datagrid-cell/ http://blog.flexexamples.com/2007/08/20/formatting-a-flex-datagrid-control-using-a-custom-item-renderer/HOME |
With the code below, console shows
90 (+1
Sorry, Evant, this seems to be a PEBKAC issue. The style is being applied correctly. It's just that my color selection doesn't out well against the background. Changing the contrast worked.
1) Use a span CellRendererText (java-gnome 4.0 API Documentation):: Event generated after user activated a cell, changed its content and pressed Return. If you want to use Pango markup to format the text being rendered, http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/CellRendererText.htmlHOME | A:: EditorGridListener: Fires after a cell is edited, but before the value is set in the Store: Get the index within the cache of the passed Record. http://gwt-ext.com/docs/gwtext2/index-all.htmlHOME |
2) Attributes should be in double quotes, not single.
Sorry, I'm new at this. I'm assuming you mean what the Style pane shows when I have the div selected on the left.
If so, it correctly shows the class
.posValue {applicat...rsion=1.0 (line 314)
color:#5C8548 !important;
}
but the color line isn't crossed out (not sure what that means)
Thanks
Thanks Evant.. Using span fixes the problem where the value is displayed in 3 lines.
But the colors still don't show up.
90 (+1)
Here's the render from FF.
90 (
+1
)
Inspect it using FireBug, see what styles are being applied.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks | |