Overriding default DataGridItemRenderer in DataGrid

I need to use a custom ItemRenderer for one of my
DataGridColumns, however as soon as I do so, clicking on a row no
longer turns the text white, like the default renderer in another
column. I have already dealt with this in other lists, and had to
hack around it.
Is there a simple solution for that particular style to
cascade down into the elements of my custom renderer? My custom
renderer is basically some images and a Text element inside an
HBox, all wrapped inside a Canvas. I want the Text element to turn
white.

I checked the defaults.css file.Some styles are defined there.But some of them like rollOverColor,selectionColor etc are not defined.
D:\FlexBuilder\sdks\3.0.0\frameworks\projects\framework\defaults.css
DataGrid
    alternatingItemColors: #F7F7F7, #FFFFFF;
    columnDropIndicatorSkin: ClassReference("mx.skins.halo.DataGridColumnDropIndicator");
    columnResizeSkin: ClassReference("mx.skins.halo.DataGridColumnResizeSkin");
    headerColors: #FFFFFF, #E6E6E6;
    headerDragProxyStyleName: "headerDragProxyStyle";
    headerBackgroundSkin: ClassReference("mx.skins.halo.DataGridHeaderBackgroundSkin");
    headerSeparatorSkin: ClassReference("mx.skins.halo.DataGridHeaderSeparator");
    headerStyleName: "dataGridStyles";
    sortArrowSkin: ClassReference("mx.skins.halo.DataGridSortArrow");
    stretchCursor: Embed(source="Assets.swf",symbol="cursorStretch");
    verticalGridLineColor: #CCCCCC;
D:\FlexBuilder\sdks\3.0.0\frameworks\projects\haloclassic\defaults.css
DataGrid
    alternatingRowColors: #F7F7F7, #FFFFFF;
    headerColors: #E6EEEE, #FFFFFF;
    backgroundColor: #FFFFFF;
    borderStyle: "solid";
    columnResizeSkin: ClassReference("haloclassic.DataGridColumnResizeSkin");
    headerSeparatorSkin: ClassReference("haloclassic.DataGridHeaderSeparator");
    headerStyle: "dataGridStyles";
    paddingTop: 2;
    paddingBottom: 2;
    sortArrowSkin: ClassReference("haloclassic.DataGridSortArrow");
    stretchCursor: Embed(source="Assets.swf",symbol="cursorStretch");

Similar Messages

  • Problem overriding default JSF conversion error messages

    Hello !
    I have a problem to override default JSF conversation error message. I have an inputText which is binded to BigDecimal attribute, so when I enter a character in that field I get this error message: "- Conversion failed."
    I think I need to register the message bundle in my faces config, and put the key of this error message to my properties file.. am I right ?
    Can somebody help me with this ? Which key I need to put into the properties file ?
    Miljan

    Get [Sun's Java EE tutorial |https://www.sun.com/offers/details/JavaEETutorial.xml?cid=20090723ZA_TACO_JVEE_0004] and read the relevant section so you don't have to guess what you need to do.

  • Problem when overriding default skin of Flex

    Hi all,
    I tried to change the default style of Flex by redefining the css file. To Button, I add some different images to different status. Because Combo, ColorPicker are all inherited from Button, they all have the same style like Button has, even if I define new style for Combo as well.
    How to avoid this scenario? What is the right way to overriding default skin?
    Thanks and regards,
    Yan

    Hi there,
    I played around with skinning a few months ago too but I didn't run over this problem. Check this article: http://www.adobe.com/devnet/flex/articles/flex_skins.html I don't know how are you replacing the default icons but what I did, was to build my skins from scratch with the help of the template of Flex skins for Photoshop, saved each skin as a .png file and everything worked fine.
    With best regards,
    Barna Biro
    Blog: http://blog.wisebisoft.com

  • Override Default Page Activation Workflow

    Hello,
    I am trying to override the default handling of Authors requesting page activations.  By default, an Author that doesn’t have Replication privileges has the request sent to the Admin group.  We’ve created several workflows specifically for different groups since each has their own approval flow:
    CQ User Group                 CQ Workflow
    Consumer >>                     Consumer Approval Workflow
    eCRM >>                             Consumer Approval Workflow
    Business >>                        Business Approval Workflow
    I realize the Author could select the workflow from the Sidekick, but I need ot ensure the correct workflow is assigned if they simply click “Activate” from the Sidekick or the Site Admin (Websites) page.  What’s the best way to accomplish this – writing some sort of servlet, using the Dynamic Participant Step, something else?  The logic would be fairly straight forward – on activation request, check user group and assign page to pre-defined workflow and initiate.

    You can set this in version 5.1.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "anil" <[email protected]> wrote in message
    news:399aba85$[email protected]..
    How we can override default error page (404) in WebLogic ver 4.5.1 ? Wehave already set property weblogic.httpd.errorPage.404=URL in
    weblogic.properties file , but it is not working with 4.5.1
    >
    We would like to have solution in properties setting, because changing thecode is not possible
    >
    Thanks in Advance
    anil

  • Override default send from email id and attachment name in email delivery

    How to override the default send from email ID and attachment name to send an outbound document using Email Transport protocol in Oracle Integration B2B ?. I've seen that "[email protected]" and subject of the email message were used as send from email ID and attachment name respectively

    Ramesh,
    I set the send from email ID as Generic Identifier for host and send to email ID as Generic Identifier for trading partner and used it in the agreement. How ever still the email message is generated with "[email protected]" as send from email ID.
    However I noticed that the "FROM" field in the wire message is updated with the correct send from email ID which I used as the Generic Identifier for host.
    Please advise.

  • Calender overriding default alert settings in iOS

    Here's the problem: when I do an All Day Event in Calendar, something overrides my default Alert settings and sets and Alert for 9:00am the day before the All Day Event. I only want Alerts set on Events I choose, so I'm assuming that's why I have my defaults Everywhere (Mac, iPad, iPhone iPod Touch) set to None for Birthdays, Events, and All Day Events. Once the Alert sounds, if I go in to Edit the Event and delete the Alert, it does not recur if edited properly. (I do use multi-day All Day Events).
    This is most annoying, BTW. Because I trust these devices to be accurate and to do what I expect within their rather few limitations compared to the rest of the techno-device universe.
    What am I not doing? What should be undone?
    Thanks for any help.

    You can send Apple Feedback here: http://www.apple.com/feedback/

  • Override default pdf signing method

    I am trying to create an extended digital signature application to sign a PDF file (i want to override the default signing method used by the PDF), i went through a research and found that co-sign already done it before, please check the following link:
    http://www.youtube.com/watch?v=WgsQgJWeGZE
    i need to know how to create my own digital signing tool and integrate into Adobe reader??,
    thank you for your help

    I need "two up (cover)" not (facing), because it jumbles the pagination. c1 and c4 should be seen as single pages, and the rest of the doc should be spreads.
    Hi Bill.
    Yes you would want the "Two up (cover)" when you have layout as attached pdf, but that was not what was in the question, so thats why I suggested tge other version
    ("So that when a user opens the pdf in Reader it is initally shown as 2up (two page spread)")
    Full screen mode is primarily intended for presentations - as a Powerpoint slide alias, so it would make no sence to show a spread, cause you would want to show a slide.
    If you want the full screen to show as you described, make page 2 and forth as a one page (spread size).
    Torben.

  • Overriding Defaults for "Reply To" and [Reply] "From

    When I reply to a message, Mail selects values for the Reply To field and the From field. I can override these manually, but is there a way to set a different default? I could not see any way to do this with Rules. I suspect there is a way to write an Apple Script to do this, but that's work.
    thanks

    Thanks. I understand that Reply To does not have any other information by which to choose a default other than the email address of the sender. However, if one has multiple email accounts configured, it might be the case that you want to use one of them is the FROM default regardless of which account receives the email. As you point out Preferences --> Compose will let you do this. But if the FROM address is content dependent, then I need to able to construct a Rule - apparently that is not possible.

  • Overriding Default JTable Selection Behavior

    I'm attempting to override the default selection behavior of a JTable. For clicking, I want the table to behave basically as if the ctrl key was being held down all the time. That works great.
    I want the behavior of dragging a selection to behave a certain way as well. If ctrl is not held down, then a drag should cancel the current selection and start a new one at the drag interval. This works fine too.
    However, if ctrl is held down during a drag, I want the dragged interval to be added to the selection instead of replacing it. This almost works. However, if I hold ctrl while dragging, it no longer let's me "undrag" the selection: once a cell is inside the dragged interval, it's selected, even if you drag back over it to deselect it.
    I understand why that's happening given my approach, but I'm looking for a way around it. Does anybody have any ideas about how to get a JTable to behave the way I want?
    Here's a compilable program that demonstrates what I'm doing:
    import javax.swing.*;
    import java.awt.event.*;
    public class TestTableSelection{
         boolean ctrlDown = false;
         JTable table;
         public TestTableSelection(){
              JFrame frame = new JFrame("Test Table Selection");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //give the table random data
              String [][] data = new String [10][5];
              String [] names = new String [5];
              for(int i = 0; i < 5; i++){
                   names[i] = "C: " + i;
                   for(int j = 0; j < 10; j++){
                        data[j] = "t: " + (int)(Math.random()*100);
              table = new JTable(data, names){
                   //override the default selection behavior
                   public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                        if(ctrlDown){
                             //ctrl + dragging should add the dragged interval to the selection
                             super.changeSelection(rowIndex, columnIndex, toggle, extend);     
                        else{
                             //clicking adds a row to the selection without clearing others
                             //dragging without holding ctrl clears the selection
                             //and starts a new selection at the dragged interval
                             super.changeSelection(rowIndex, columnIndex, !extend, extend);
              //keep track of when ctrl is held down
              table.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        ctrlDown = e.isControlDown();
                   public void keyReleased(KeyEvent e){
                        ctrlDown = e.isControlDown();
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(250, 250);
              frame.setVisible(true);
         public static void main(String[] args){
              new TestTableSelection();
    Let me know if any of that isn't clear.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    This change seemed to work for me
              table = new JTable(data, names){
                   int prevRow = -1;
                   //override the default selection behavior
                   public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                        if(ctrlDown){
                             //ctrl + dragging should add the dragged interval to the selection
                             if ( rowIndex != prevRow ) {
                                  prevRow = rowIndex;
                                  super.changeSelection(rowIndex, columnIndex, true, false);
                        else{
                             //clicking adds a row to the selection without clearing others
                             //dragging without holding ctrl clears the selection
                             //and starts a new selection at the dragged interval
                             super.changeSelection(rowIndex, columnIndex, !extend, extend);
              };

  • Overriding default XML parser in Resin

    Hi,
    I'm trying to use the the Saxon version 7 parser (Saxon7.jar) with Resin. I am using shared hosting and only have access to my web.xml and lib directory.
    Using Tomcat on my development environment, all I had to do was place the Saxon7.jar in my lib directory and everything worked just fine. Doing the same on Resin didn't work. Resin is still using it's default parser.
    To see the stacktrace follow this link:
    http://www.bacman.net/search/?keywords=the
    You will see that it is still using Caucho's parser:
    com.caucho.xsl.StylesheetImpl.transform(StylesheetImpl.java:205)
    Is there a way to override Resin's default parser using web.xml?
    Thanks,
    BacMan

    One way to make your program use the Saxon 6 transformer is to make this line of code run in its initialization:System.setProperty("javax.xml.transform.TransformerFactory",
      "com.icl.saxon.TransformerFactoryImpl");This is for Saxon 6, note, the class name you should use for Saxon 7 is something else. You should find the exact name in the Saxon documentation somewhere.
    I don't have any Resin experience, but you need to find the place where you can specify Java system properties for Resin and specify that one (javax.xml.transform.TransformerFactory) there. The command-line version would be
    java -Djavax.xml.transform.TransformerFactory=...

  • Override default printing behaviour

    Hi all,
    I would like overriding the default printing delivery behaviour. What should I do in order to archive this? should I implement a java class? if yes, which class has have to be inherit from? and how to register the class such that this class is being called?
    Thx
    Reards,
    whching

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Override default values for infotype 0009 (Bank Details)

    Dear all,
    When we create a new bank details, default value will populate.
    I would like to know how to override these value, dynamic action? User exist? Feature? Or something else?
    Thanks in advance
    Regards
    Bill

    Hi Sikindar,
    Thanks for the reply, am trying to understand the options available.
    It look like the current behavior is: INITS + RUFNM
    and the user want to change it into: INITS only
    And it should only apply to country group 28
    Regards
    Bill

  • Overriding default printer margins

    I am having trouble controlling the margins on my reports. In the report builder i have them set as one thing, but when i run the report they get set to the default print settings on my machine of 1 inch. Is there a way to override a user's default printer settings when printing a report thorugh a browser??
    Thanks,
    Patrick

    Hi Patrick
    If I understand your problem correctly, Though you set the margin as say "0" in report, still you see a margin of 1.0 in the output.
    If this is the problem, the reason is Reports takes the hardware margin of your printer into account and adds to the margin you set in report.
    Generally this is what is the expected behaviour from the users
    In Reports 9i, you would see a way of controlling this by command line ignoreMargin
    Thanks
    Rajesh

  • Override Default Message before Selection

    Hi Experts...
    Is it possible to override the default message that is shown before selection in prompts.
    No Results
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
    MONTH is equal to Jan
    and VERTCAL is equal to EU
    and GRP_CUST is equal to SNY
    and TYPE is equal to TnM
    Can this default message be overwritten ??
    Regards,
    Veena A

    Hi,
    1. Open Answers report
    2. Choose Results tab
    3. In Results tab choose No Results view
    4. In the No Results view you'll see text:
    Use the fields below to specify what should be displayed when this analysis returns no results
    Write something in the text field. This will aply when no data insted of:
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
    I hope this is clearly enough.
    Regards,
    Goran
    http://108obiee.blogspot.com

  • Override default print options in Adobe reader

    Hello Adobe support team,
    Can you please provide the possible ways to override the print options that comes by default. In the below snapshot marked in red green and blue are the ones that we want to be set as default print options for a selected document instead of users setting it for each document.
    Please help!

    All permanent print options are set from the Printer Control Panel without being in the printer setup from within the application.

Maybe you are looking for

  • N97 music player take 3 mins to refresh playlist

    hello guys, i jus want to know if other people are also experiencing my problems. i'm not going to touch every no97 music player issues. i'll tell you one at a time. well here it goes, when i've about 400 songs in the music player and i decide to del

  • A question about input values inside PL/SQL block

    Dear all, I would appreciate if you could kindly help me with this question. Consider the following code. DECLARE   myvar1 NUMBER;   myvar2 NUMBER;   myvar3 NUMBER; BEGIN   myvar1 := &1;   myvar2 := &2;   myvar3 := &3;   DBMS_OUTPUT.put_line('myvar1

  • Sample received from an external agency for testing

    Hi folks, My client is a testing laboratory where they receive samples from external company. Tested results are sent back to the customer along with a test certificate and is billed for the testing carried out. I have two things to clarify 1) how is

  • Can I make the "Getting Started" video larger. The words are too small.

    Been viewing the videos on the new version, but it is not full screen and this makes it very difficult to read the words in the video clips. Can I zoom or make it full screen?

  • Catalog content managment

    hai, could anyone give the configuration steps required to configure ccm.does trex is mandatory in ccm.In srm we have maintianed twpurlsvr likethat does we have maintined any table in ccm?.is there any transaction like sicf in srm.how can we activate