ListView changing style

Hi,
i trying to change the colors of the ListView. First of all i defined a default list-view styleclass for selection of the elements in the list.
.list-view:focused .list-cell:filled:selected, .list-view:focused .list-cell:filled:selected:hover {
    -fx-background: yellow;
.list-cell:filled:selected:focused, .list-cell:filled:selected {
    -fx-background-color: yellow;
}All my ListView have now this styleclass. Now i would like define an other style for a listview to customize only one ListView in my application. The unique ListView with the style exist only onetime in my application. So i create an other styleclass:
.xlist-view:focused .list-cell:filled:selected, .xlist-view:focused .list-cell:filled:selected:hover {
    -fx-background: pink;
/* When the ListView is _not_ focused, we show alternate selection colors */
.xlist-cell:filled:selected:focused, .xlist-cell:filled:selected {
    -fx-background-color: pink;
} and add this styleclass to my listview
xListView.getStyleClass().add("xlist-view"); but nothing changed. All ListView have the style from the default-definition of the Listview and the "onlyone" Listview have also the Style of the default-definition and doesnt overwrite the styles ... If i doesnt define the .listview style, my "onlyone" ListView will get the styleclass and the selected items will be "pink" if i selecting it.
This situation makes my realy crazy and i have no idea how to resolve this issue? Have someone an idea??
Regards
Edited by: netwalker on 25.07.2012 00:03

I think this is because the .list-view style does not have a higher priority than the .xlist-view style (listviews by default already have a "list-view" style applied to them).
So basically, if you had two listviews, one with style "list-view" (default) and one with style "list-view" (default) and "xlist-view" then it is unclear which should be used for the 2nd one, because neither is more specifically defined in CSS.
If however you defined the xlist-view style in CSS like this...:
.list-view.xlist-view:focused .list-cell:filled:selected, .list-view.xlist-view:focused .list-cell:filled:selected:hover {
    -fx-background: pink;
/* When the ListView is _not_ focused, we show alternate selection colors */
.list-cell.xlist-cell:filled:selected:focused, .list-cell.xlist-cell:filled:selected {
    -fx-background-color: pink;
}...then this one will match only elements that have both "list-view" (default) and "xlist-view" classes. This is more specific, and thus should take priority.

Similar Messages

  • Change Style in task description

    Hi All,
         I am using a decision step in my workflow.  I want to change the default font style associated with the task.  The default is Form: System and the default paragraph is '*'.
         I want to use custom style for formatting the task description.  The Menu option Change style in Change editor is not allowing me to select the zstyle i have created. 
        I will appreciate if anyone can provide me a solution.
    Thanks & Regards,
    Manikandan Ramamoorthy.
    Note:  All supportive answers will be rewarded

    Hi Barry,
    I also checked, and we are not having any options to choose the particular style.
    Hope its a limitation we have in workflow.
    Because when i checked the same option SO10, we have an option choose.
    So workaround will be like this:
    Create your desired text in SO10 with your own style and include that standard text in your task description.
    Hope it solves your issue.
    Thanks and Regards,
    Swaminathan

  • How to change style?

    Hello,
    I m getting data from DWR like below, but i want to change style of those data, may be bold...Is there a way to change styles of field1 and field2???
    DWRUtil.setValue("one",field1);
    DWRUtil.setValue("two",field2);
    ...

    This should help you
    [http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Font.html]

  • Possible to change style of predefined theme ?

    Using Java API - is it possible to dynamically change style of a predefined theme ?

    There is no API method that allows you to change the predefined theme styling rules definition. In your request you can create dynamic styles and also dynamic themes that uses these dynamic styles.

  • Having issues with trying to change style in Robo11

    Having an issue with Robo11 allowing me to change a style in a topic (document imported from Word) that already exist in the style css. Robo allows me to scroll down, but immediately jumps back to the top. This has only occured on 4-5 projects out of over 50 projects. Have tried more than one way to change style, but continues to jump to top of style type list.

    Can you try the styles and formatting pod instead? (View > Pods > Styles and Formatting) Can you assign the style through that?

  • Feature Request: Change Style - Style Set (word like)

    I'm learning to use pages and there is a feature in word that I miss a lot.
    It's the Change Style - Style Set
    I want to change all the styles of my document, using the templates that I have installed in my machine, in a coherent way. In word I can do it with a button click. I really don't know how it is possible in Pages.
    Regards
    Camilo

    fruhulda
    In Word there is something akin to the CSS style sheet, but not as comprehensive.
    It lets you have stylesheet sets where the color, fonts, and various style elements can be swapped over for complete documents.
    It is a nice idea but not complete, and typically for Microsoft, the examples they offer are ugly.
    Pages could usefully rip this off and improve on it. That would make Pages '12 or '20 a truely great and useful upgrade.
    Peter

  • Change Style for text (PE12)

    When I insert a text, i can change style just one time. It is not possible to change style for other text. I must stop the program and start up for changing style at each time I request to change style.
    Solution?

    Peru Bob,
    Thank you for linking to the Muvipix thread. Not sure what happened in PrE 12, but this Styles Bug looks pretty serious, as Styles allow a user to do so much, regarding attributes for Shapes and Text.
    Appreciated,
    Hunt

  • Ical iOS Lion, month preview / change style

    Hi,
    I am wondering how to display the preview of the months to come in the left side of the new iCal, like it was possible before in weekly view.
    I really miss this functionality, as I need to have a good idea of the months to come to manage many of my events.
    Anyway to display it?
    As a side note, I would really like to change the style of the new iCal as I don't like the leather effect. Let me know if this is possible.
    Many thanks

    I am in total agreement on EVERYTHING you said. I don't know if it is the designer in my, but I couldn't stomach the faux leather look at all. I changed that using this tutorial! Super easy and well worth it.
    http://www.simpleandusable.com/news/how-to-remove-the-faux-leather-in-ical-for-o s-x-lion.html
    However, I really want teh previous months preivews and can't figure that out! I am really bummed they changed this feature!!

  • CSS - how do I remove/change styles for one image?

    Hi,
    In my CSS I have the following rule which styles all the images within the 'main_text' div with a border, background colour and padding:
    #main_text img{
        border: 1px solid #666;
        padding: 5px;
        background-color: #C0BEB6;
    However I have one image on one page where I want to remove this styling and I can't find a way of doing it.
    I've tried applying a class to the image I want to change:
    .exclaim {
        border-style: none;
        float: left;
        margin-right: 10px;
        padding: 0px;
    The .exclaim rule appears after '#main_text img' in the stylesheet.
    The float and margin both work but the border and padding are retained from the other selector.
    I know I could just have 2 classes and apply them as necessary but eventually I am likely to have quite a few images throughout the site that need the border and padding and just the one that doesn't.
    The site in question is here: http://www.elitejoiners-shopfitters.co.uk/
    The page that contains the image that doesn't need the border is the error page: http://www.elitejoiners-shopfitters.co.uk/error404.html
    Thanks
    Mick

    Will .exclaim always be inside #main_text?
    If so, increase the CSS "weight" of .exclaim by targetting it more specifically so that it trumps #main_text img:
    change
    .exclaim {
        border-style: none;
        float: left;
        margin-right: 10px;
        padding: 0px;
    to
    #main_text .exclaim {
        border-style: none;
        float: left;
        margin-right: 10px;
        padding: 0px;

  • Using javascript to change styles and such

    I want ot use javascript to change the "display" style of a
    div tag
    whatDiv.style.display = "block"
    This works fine if the div tag has an inline style defined:
    <div style="display:none"> ...</div>
    But if the tag has a class attached to it and the display
    :none is attached
    to that class, then it doesn't work
    <style...>
    div.hidden{ display:none; }
    </style>
    <div class="hidden"> ... </div>
    ... how can I remedy this?

    On Thu, 15 Jun 2006 17:20:54 +0000 (UTC), "jeremyluby"
    <[email protected]> wrote:
    >What gary is saying is that you should not use a class,
    but an ID only to
    >define the region.
    Nope. That's not what I'm saying. Regardless of whether
    you're using a
    class or not, if you get an object reference using an ID, you
    can change
    the properties. Consider this example:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Demo</title>
    <style type="text/css">
    .demo {
    background-color: #000099;
    border: 1px solid #000;
    color: #ffffff;
    text-align: center;
    height: 60px;
    width: 500px;
    </style>
    <script type="text/javascript">
    var bg="#009";
    function changeColor(x){
    o=document.getElementById(x);
    bg=(bg=="#009"?"#900":"#009");
    o.style.backgroundColor=bg;
    </script>
    </head>
    <body>
    <div id="test" class="demo">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
    elit.</p>
    </div>
    <p><a href="javascript:;"
    onClick="changeColor('test')">Change
    Color</a></p>
    </body>
    </html>
    Gary

  • How to change style properties of text links

    Hello to everyone.
    There is a very irritating thing going on with the style properties of a text link.
    I want my text that acts as a link to other pages, to retain the properties of a normal text. iWeb keeps underlining the text and changing the colour of it.
    Is it possible to alter that without fiddling with the css file? I can change that if have to but that means that I'll have to manually edit the file in more than 50 pages...
    Any help would be greatly appreciated!
    Dimitris

    Dmitris,
    There is no way to do this in iWeb directly. As you have already alluded to, the only way to do this would be to edit the CSS files for your pages. You could do this by hand, but judging by your message it doesn't sound like you would have too much fun doing this.
    I would suggest that you look into a program like MassReplaceIt...
    http://www.apple.com/downloads/macosx/productivity_tools/massreplaceit.html
    This is basically a glorified find and replace type of tool. You can tell it to find a whole block of parameters in the CSS file and change it to whatever you like. And the benefit for you is that you can save these actions so that you can redo them whenever you publish the pages. MRI is smart enough to change only what needs changing. And searching out all the CSS files in all subdirectories is a bonus for you, Dmitris. Just point it at your site folder and let the program change all 50 CSS files in one click!
    Good luck!

  • Changing Styles Across Multiple Files

    We have a lengthy catalog that we build in spreads. We don't make a book file, since the pages are all sent individually to our prepress people, and we also have pages that copywriters use to create the copy in the first place.
    Every piece of copy in this book is set up on character and paragraph styles. We start with a master template, so all the styles have the same names.
    We're almost done with the whole thing, and then today we find out from the Office of Secret Self-Important Ivory Towers that they have chosen new fonts for us and not told us what they are until now, so now we have to change every single font from the top down.
    Is there any way to synchronize the styles without building a book file? It's not the end of the world if that's what we have to do, but it won't work for the writers' files, and it's going to require a lot of manual tweaking to keep it from shuffling pages everywhere.
    We're on CS4, by the way.

    If all of your documents share the same style names, then you can do this relatively easily without using the book features.
    Although it is easier to do this by using the book features, what you need to do is open the document that you consider to be your source or master document. Make all the style changes as needed and save it.
    Open the next document.
    Go to the Paragraph Style panel
    In the panel menu, select Load All Text Styles... (this loads Paragraph and Character styles)
    Select the master document.
    Allow the incoming styles to override any existing styles of the same name.
    Cleanup any text as needed, save and close.
    Repeat for all other documents.
    If you have object styles, use the same proceedure with the object style panel.
    If you have swatches that change, you can Save Swatches from the master file, then Load Swatches in the other files.
    Note: this would be far easier to do by temporarily adding all the documents to a book (be sure to disable any auto page numbering in the book) and then Sync from the book panel.
    HTH
    -mt

  • How to programmatically change style in an ADF table

    Hi,
    I got an ADF table generated form my data controls.
    But I need to change de style of every cell in my backing bean.
    I can't really find anything usefull on google, hopefully you guys can provide me with some usefull information.

    I got my answer somewhere else :
    >
    Based on the comments we now know that you use jdev 11.1.2.2.0. What you can do is to bind the styleClass property of the table to a backing bean property. The property in the bean has a getter and a setter method. In the setter method you can get all the values you need from the row and do you calculation. Based on the outcome you return the name of a style class suitable for the cell. The different style classes you define in a skin fro the application. If you e.g. defien the following style classes in your skin
    .high_value { background-color:green; }
    .negative_value { background-color:red;}
    and in a bean in request scope, which you access from the page the table is on
        private String styleForCell;
    public String getStyleForCell()
        // get the value of the cell
        FacesContext lContext = FacesContext.getCurrentInstance();
        ELContext lELContext = lContext.getELContext();
        ExpressionFactory lExpressionFactory = lContext.getApplication().getExpressionFactory();
        Number val;
        val = (Number) lExpressionFactory.createValueExpression(lELContext, "#{row.valargument}", Object.class).getValue(lELContext);
        if (val == null)
            return "";
        // do the calculation and return the suitable style class
        int ival = val.intValue();
        if (ival >= 100000 )
            return "high_value";
        else if (ival < 0)
            return "negative_value";
        else
            return "";        
    public void setStyleForCell(String aStyleForCell)
        this.styleForCell = aStyleForCell;
    }Now you can access the calculated style class from the tables column styleClass property as #{beanname.styleForCell} This will call the method for each cell of the column.

  • How to change style property in runtime

    Hallo. I have this style tag in my main application:
    <fx:Style>
         @namespace s "library://ns.adobe.com/flex/spark";
         @namespace mx "library://ns.adobe.com/flex/halo";
         @font-face {
         src: url("../caratteri/MyriadPro-Bold.otf");
         fontFamily: "MyriadPro-Bold";
         embedAsCFF: true;
         .mioStileMyriadProBold {
         fontFamily:MyriadPro-Bold;
         fontLookup: embeddedCFF;
    </fx:Style>
    It works good but i wish to change the fontFamily while the program is running. How can i do that?
    Thx a lot.
    Max

    Hallo. Thx for the answer. I would like to know if your solution is working always. I mean, in my example i showed you that i have this:
    .mioStileMyriadProBold {
    fontFamily:MyriadPro-Bold;
    fontLookup: embeddedCFF;
    But what if i have 2 custom styles??.. How can i change one or another specifically ??
    I hope you understand what i mean.
    Max

  • Changing style sheets causes hang (ID CS2 Windows)

    I have several 25-page (or so) files that are part of a book file. I'm trying to change the tabs in some of the style sheets but when I make the changes within the style sheet dialog window and close it, InDesign hangs. I've let it go for 15 minutes just in case it's working, but it shouldn't take anywhere near that long. It also hangs if I try to delete a character style from the palette. Actually, any style change I've tried to make causes the same hang.
    Any suggestions? I know it's not RAM because it works in other files (I have 4GB).
    Thanks...

    Might be a font problem. Anything different about these files?
    Try exporting to .inx and resaving the result as a new .indd. Replace the original in the book with the new one and see if that helps, too.
    Peter

Maybe you are looking for

  • How to create Header and Footer  template

    Hi, I am wondering if this is possible, if yes , can some help me please? At present we have preprinted stationary for invoices and now the plan is to get rid of preprinted stationary and print header and footer via oracle reports directly. The addre

  • Photos will not sync to iphone5

    Just got my new iphone5 today. When I first sync'd it my photos transfered fine but now no matter what I do it will not sync photos, it always comes up with the error 'not enough memory'. Everything else syncs fine to my phone, even a 2GB game. I eve

  • Exporting Why is the color so dark

    When I am working in AE CS3 the color looks great but when I export it Animation + with RGB Preserved, why does my colors look really dark? Is there a setting I am missing? I am using an IMac with Intel prossessor. It also looks dark on my boss's HP

  • Transfer data from one type of table to another

    Can some kind soul put me out of my misery and explain how I can get the data from Table1 to Table2 I'm really struggling! Table1 MerchID MatchesSKU 1 BR34 1 BD16 2 DE11 3 HB12 3 DX15 3 DR19 Table2 MerchID MatchesSKU1 MatchesSKU2 MatchesSKU3 1 BR34 B

  • How do i autherise my computer in i tunes menu to rent movies on my new computer?

    how do I autherise my computer,so that I can rent movies on my new computer?