Disabling rollover color in TileList component

I have a TileList where I want to completely disable the
rollover color. I have altenating background colors between
elements, so what would I need to do in order to accomplish this? I
can't seem to find the answer anywhere.
Thanks,
Jake

Set the useRollOver style to false.

Similar Messages

  • Disable selection color in datagrid/list/tilelist?

    I have a datagrid and would like to disable the selection
    color. I disable the rollover color by using useRollOver to
    false.

    MXML
    <mx:DataGrid id="dg"
    selectionColor="dg.getStyle('backgroundColor')"/>
    AS
    dg.setStyle("selectionColor",
    dg.getStyle("backgroundColor"));

  • Custom Tilelist Component With Special Effects

    I am trying to create a custom tilelist component which incorporates some special visual effects I need for my app. What I'm trying to do is replace the blue themed rollover color which shows when each item is rolled over with an effect which applies the glow effect to each hovered over items image and label and also converts the image to color whilst the item is hovered over (the tilelist itself is converted to greyscale upon application complete). At the moment I have it set so the blue them is completely removed but I want to instead alter the rolover them e to how I've described above. Here's what I mean below, which I made using static images and text (the social item is being hovered over in that picture), followed by the code for my custom tilelist so far:-
    http://i223.photobucket.com/albums/dd147/jimmyoneshot/theicons.jpg
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TileList xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:itemRenderer>
        <mx:Component>
         <mx:Canvas width="125" height="145">
          <mx:Image source="{data.icon}" height="64" width="64" top="10" horizontalCenter="0"/>
          <mx:Label text="{data.label}" bottom="1" horizontalCenter="0" color="#FFFFFF" fontWeight="bold" fontSize="12"/>
         </mx:Canvas>   
        </mx:Component>
        </mx:itemRenderer>
    <mx:Script>
    <![CDATA[
      import mx.core.EdgeMetrics;
      import mx.core.IFlexDisplayObject;
      import mx.skins.halo.ListDropIndicator;
      import mx.events.DragEvent;
      import mx.controls.listClasses.IListItemRenderer;
      use namespace mx_internal;
      override protected function drawSelectionIndicator(
        indicator:Sprite, x:Number, y:Number,
        width:Number, height:Number, color:uint,
        itemRenderer:IListItemRenderer):void
      // Remove the Selection indicator
      override protected function drawHighlightIndicator(
       indicator:Sprite, x:Number, y:Number,
       width:Number, height:Number, color:uint,
       itemRenderer:IListItemRenderer):void
      ]]>
    </mx:Script>
    </mx:TileList>

    I'm unstuck :)  The key to getting this to work is to import the packages you are going to use in your component.xml.
    So, for me..I had to add the following:
            com.adobe.idp.workflow.dsc.type
            com.adobe.idp.taskmanager.form
            com.adobe.idp.taskmanager.form.impl
            com.adobe.idp.taskmanager.form.impl.xfa

  • Remove Flex DataGrid Heading Rollover Color

    Hi,
    How can i stop rollover color change in Flex 3 DataGrid heading ?
    Can i override the following mehtod if yes how can i do this ?
     drawHeaderIndicator(s, r.x, 0, visibleColumns[i].width, cachedHeaderHeight - 0.5, getStyle("rollOverColor"), r);
    Thanks,
    -Shrban

    To do what you want to do requires a fair amount of work as the rollover color is set as a style, you can change the color but it seems the rollover can't be disabled(not without a custom datagrid).
    A quick fix is to try and at least reduce the difference in the rollover color, this could be done as per below, which basically makes the rollover color the same as the lighter shade of the header gradient.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" creationComplete="appHandler(event)">
    <mx:Script>
    <![CDATA[
    import mx.controls.Label;
    import mx.events.FlexEvent;
    protected function appHandler(event:FlexEvent):void
    var colors:Array = dg.getStyle("headerColors");
    dg.setStyle("rollOverColor",colors[0]);
    ]]>
    </mx:Script>
    <mx:DataGrid id="dg" x="234" y="198" width="619" height="360">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="col1" />
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>

  • Disabled foreground color in JComboBox

    what's the correct way to set the disabled foreground color of a jcombobox? i don't want to set the disabled color for the entire ui to the same color, but for one jcombobox specifically. i searched the web and found many posts with the same question, but no real solution. this one has been giving me nightmares and i thought i'd share what i've found. the solution seems to be quite simple: wrap the combobox label in a panel. that way the panel gets the disabled colors, but the coloring of the label of the combobox remains. here's the solution in short in case others need it:
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultListCellRenderer;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.ListCellRenderer;
    public class MyComboBox extends JComboBox {
      public MyComboBox() {
        super();
        setRenderer( new ColorCellRenderer());
      public static void main(String s[]) {
        JFrame frame = new JFrame("ComboBox Example");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        final JComboBox cb = new MyComboBox();
        cb.addItem( "ComboBox Item 1");
        cb.addItem( "ComboBox Item 2");
        cb.addItem( "ComboBox Item 3");
        cb.setForeground( Color.blue);
        final JButton bt = new JButton ("disable");
        bt.addActionListener( new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            cb.setEnabled( !cb.isEnabled());
            if( !cb.isEnabled()) {
              cb.setForeground( Color.red);
              bt.setText( "enable");
            } else {
              cb.setForeground( Color.blue);
              bt.setText( "disable");
        frame.getContentPane().setLayout( new FlowLayout());
        frame.getContentPane().add( bt);
        frame.getContentPane().add( cb);
        frame.pack();
        frame.setVisible(true);
      class ColorCellRenderer implements ListCellRenderer {
        protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
        public Component getListCellRendererComponent(JList list, Object value,
            int index, boolean isSelected, boolean cellHasFocus) {
          JLabel label = (JLabel) defaultRenderer
              .getListCellRendererComponent(list, value, index,
                  isSelected, cellHasFocus);
          JPanel wrapper = new JPanel();
          wrapper.setLayout( new BorderLayout());
          wrapper.add( label, BorderLayout.CENTER);
          return wrapper;
    }if anyone knows a way to remove the dropdown button of a disabled combobox without leaving a blank space when you simply hide the button, feel free to extend this :-)
    Edited by: Lofi on Mar 20, 2010 10:46 PM

    i thought i'd share what i've found. the solution seems to be quite simple: wrap the combobox label in a panel.Brilliant! I'm sure this will be useful to others who find this solution here.
    Your code does have some unnecessary overheads though, like constructing a new JPanel in every call to getListCellRendererComponent, and holding a separate renderer as a field. I've attempted to clean it up for brevity and efficiency.import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultListCellRenderer;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class DisabledForegroundListCellRenderer extends DefaultListCellRenderer {
      private final JPanel wrapper = new JPanel(new BorderLayout());
      public DisabledForegroundListCellRenderer() {
        wrapper.add(this);
      @Override
      public Component getListCellRendererComponent(JList list, Object value,
              int index, boolean isSelected, boolean cellHasFocus) {
        super.getListCellRendererComponent(list, value,
                index, isSelected, cellHasFocus);
        return wrapper;
      // Test rig
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new DisabledForegroundListCellRenderer().makeUI();
      public void makeUI() {
        String[] data = {"One", "Two", "Three"};
        final JComboBox combo = new JComboBox(data);
        combo.setRenderer(new DisabledForegroundListCellRenderer());
        final JCheckBox check = new JCheckBox("Combo enabled");
        check.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            boolean selected = check.isSelected();
            combo.setForeground(selected ? Color.BLUE : Color.RED);
            combo.setEnabled(selected);
        check.doClick();
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setLocationRelativeTo(null);
        frame.add(check, BorderLayout.NORTH);
        frame.add(combo, BorderLayout.SOUTH);
        frame.pack();
        frame.setVisible(true);
    }I've also changed the class name, as to me "ColorCellRenderer" would rather imply something that renders either the foreground or the background (or both) on the basis of the value parameter.
    if anyone knows a way to remove the dropdown button of a disabled combobox without leaving a blank space when you simply hide the buttonThat would require a custom UI delegate, not a custom renderer. And really, I wouldn't bother -- I would just use a JComboBox and a disabled (or maybe uneditable) JTextField, held in a CardLayout, and swap them instead of disabling the combo.
    Shall take a look at how the combo UIs reserve space for the button though :)
    luck, db
    Edited by: DarrylBurke -- changed wrapper to private final, it shouldn't be static

  • How to set disabled foreground color of JCheckBox?

    How do I set the disabled foreground color of JCheckBox? To clarify, I want to choose the color that is used to paint the component's foreground when it is disabled.
    thanks.

    Check out this thread:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=122112

  • Changing Color of seekBar component

    hi,
    i m creating a video player, in which i m using control of
    play, pause, seekbar etc.
    i want to chnage the color of prograss of seekbar at runtime
    as user select different color from colorPicker component.
    and i know how to apply the color at runtime using colot
    transfor class.
    The problem is i m unable to refer the movieclip of seekbar
    which contain the shape of pregrass.
    and if entered the reference then it throug error.
    i m using AS3.0 version. so please help me to how can i refer
    the prograss shape inside of seekBar component to change the color
    at runtime.
    Thanks in Advance.

    Once you drag it to the stage, look for it in your library.
    When you open it from the library you can edit the appearance to be
    whatever you want.

  • Load XML Videos data on tilelist(component) click

    Is this possible to load XML Videos data on tilelist(component) click..?

    yes. works for me:
    import fl.video.FLVPlayback;
    var flv_pb1:FLVPlayback = new FLVPlayback();
    var flv_pb2:FLVPlayback = new FLVPlayback();
    var flv_pb3:FLVPlayback = new FLVPlayback();
    flv_pb1.source="z_flvs/water.flv";
    flv_pb2.source="z_flvs/sample.mp4";
    flv_pb3.source="z_flvs/water.flv";
    tl.addItem({alt:"v 1", src: flv_pb1});
    tl.addItem({alt:"v 2", src: flv_pb2});
    tl.addItem({alt:"v 3", src: flv_pb3});
    tl.labelField = "alt";
    tl.sourceField = "src";
    tl.columnWidth = 400;
    tl.rowHeight = 600;
    tl.columnCount = tl.length;
    tl.rowCount = 1;
    tl.move(10, 10);

  • Hi. I've added a new page to my iWeb '08 version 2.0.4 website but can't seem to select the top menu pages to make a rollover color change. I can select them on the original pages. What am I doing wrong?

    Hi. I've added a new page to my iWeb '08 version 2.0.4 website, but can't seem to select the top menu items to make a rollover color change. I can select them on the original pages. What am I forgetting to do?

    Old Toad has a tutorial about changing the colors in the iWeb default menu...
    http://oldtoadstutorials.net/No.24.html
    If you want your website to be found by search engines you would be better to follow Ethmoid's suggestion of creating your own navigation...
    http://www.iwebformusicians.com/iWeb/Navigation.html

  • Alter css stylesheet to change rollover colors

    I know how to change the rollover colors for links that I've created myself using the inspector, than links/format tabs. But I'm customizing a blog using the notebook template, mostly because I liked the font that it used more than the other blogs. I'm not a big fan of the colors for the text and so I'd like to change the rollover text colors to #1f1a15 (normal) and 87595d (rollover). Is there come sort of stylesheet that I can alter so that the headline text for each entry on the blog home page (and in the archive) and the add a comment link at the end of each entry will match my color scheme?
    PS - I'd give you a link to the blog, but I can't publish it right now for some reason and I can't figure out what it is

    I don't think you can do it for blog pages and they don't take kindly to post publishing editing. I don't have a blog but all of the questions I've seen about modifying blogs were answered by those in the know as "No". You will lose your comments.
    Not if it's a new blog with no comments as yet you might be able to do it but if you had to ever make any changes to it via iWeb those rollover changes would be lost. I'd wait till one of those with experience with blog pages and changing css files respond to either confirm my post or shoot it down.
    OT

  • Changing the disabled foreground color of a disabled JList

    I am using a JList inside JScrollPane. If the list is disabled the foreground color of list changes to grey. How can I change this disabled foreground color.
    regards,
    nirvan.

    Well, a JList uses a JLabel as the default renderer. So you can try using the UIManager to set the "Label.disabledForeground" color to whatever you want. Of course this will also affect disabled labels.
    Or, you can create a custom renderer for the list and control the disabled color in the renderer.

  • Rollover color?

    I have a flash menu that isn't made with buttons, but with one tween and it has a glow effect on rollover, it also expands. Is there any way to change the color of the text when it's rolled over (like it expands and glows). Here's the code for the rollover:
    import flash.filters.GlowFilter;
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    // Creates a variable with info about the Filter settings
    var myGlowFilter = new GlowFilter (0xFFFFFF, 2, 15, 15, 6, 100, false, false);
    this.onRollOver = function()
        this.filters = [myGlowFilter];
        this.gotoAndPlay(2)
    this.onRollOut = function()
        this.filters = null
        this.gotoAndPlay(11)
    this.onRelease = function()
        //Action code
    Thank

    I guess I should have put that I am relatively new to flash and this basic menu was made by someone else. I don't know how to write a textformat instance.  Can you tell me how?
    Actually, from what I'm discovering, this menu was made in a very weird way, it wasn't done with individual mc buttons, but all in one tween.
    the script in frame 1 reads as this:
    btn1.btnName = "name1"
    btn2.btnName = "name2"
    btn3.btnName = "name3"
    btn4.btnName = "name4"
    btn5.btnName = "name5"
    btn6.btnName = "name6"
    btn7.btnName = "name7"
    btn8.btnName = "name8"
    btn9.btnName = "name9"
    and only 1 mc and one tween.
    So HOW...do I get these buttons to act independently from one another without having to re-create the whole menu? This is done in AS2.  I basically want to have the rollover color change and I'd also like to make it so that the image stays enlarged when the user clicks on it and the page changes....but the way I have it right now is embedded on each page....should this menu be put into the css and all pulled from the same source?
    Thanks a bunch!

  • How do I disable printer color management so I can get clear photos using adobe?

    My printer is an Office Jet Pro 8500A Plus. My operating system is Windows 7 Pro 64 bit. I get excellent photos if I print from Windows Media. When I print from Photoshop Elements 10 all images are blurred and dark. Photoshop says to disable printer color management in printer preferences but there is no link.

    I have researched the matter a lot and I, 
    along with many others, still have problems with this complicated 
    subject.
    Color management is as simple in theory as Honoring a Source Profile and CONVERTING it to a Target Profile (monitor or printer) for Proofing.
    But yes, we work at the mercy of the rocket scientists who try to dumb an extremely complicated process down so regular folks (like me) can make it work — trouble is I think their approach needs a bit more distilling and common sense sometimes...but it is very doable once you put in the time to figure it out, just follow the CHAIN in your workflow if you're still having problems.
    If you want a "simple button" try staying in sRGB and printing out of Apple Preview app using OEM standard papers matched to your printer and OEM ink set.

  • My iWeb links don't reflect the correct 'rollover' color once published.

    On one of my sites (I have several 'practice' ones that I use before publishing the real one), the hyperlinks don't show the formatted 'rollover' color or underline as I set them in the Inspector. The setting is exactly the same as my other pages, but on this site the rollover works fine in the editing phase, but upon publishing the pages, the links work, but the color doesn't change nor does the underline appear. Any ideas?

    Recheck the formatting by selecting only a part of the hyperlink instead of the whole word. I had that problem once and it took me a while to figure out that my formating while applied to the whole link I had somehow not selected the whole text. I know this does not seem to make sense but try to select it differently and look at your formating window to see if it makes a difference.
    Mireille

  • How to disable some color when printing separations in Ai CS6-CC (JS)

    Hello Everyone!
    Configuration: Win 7 Pro x64, Illustrator CS6x64-CCx64, default printer PDF.
    When printing separations from Illustrator CS4 following script prints all colors except Cyan (as was intended).
    But when printing from CS6-SS disable the color is not possible - all colors are printed without exception.
    var adoc = activeDocument;
    var o = new PrintOptions();
    o.colorSeparationOptions = new PrintColorSeparationOptions();
    o.colorSeparationOptions.colorSeparationMode = PrintColorSeparationMode.HOSTBASEDSEPARATION;
    o.colorSeparationOptions.inkList = adoc.inkList;
    for (var i = 0; i < o.colorSeparationOptions.inkList.length; i++) {
    if (o.colorSeparationOptions.inkList[i].name == 'Process Cyan') {
      o.colorSeparationOptions.inkList[i].inkInfo.printingStatus = InkPrintStatus.DISABLEINK;
    adoc.print(o);
    If you check, you have inkInfo.printingStatus Cyan changed to "InkPrintStatus.DISABLEINK".
    Why it is printed and how to disable?
    Thanks!

    Hi saaiful,
    Thank you for posting your question. window. will print header and footer.
    Here are some solutions I found after researching your issue:
    *[http://forums.mozillazine.org/viewtopic.php?f=12&t=216810]
    *[http://stackoverflow.com/questions/8228088/remove-header-and-footer-from-window-print]
    *[http://www.dreamincode.net/forums/topic/22598-using-windowprint-without-printing-header-and-footer/]
    *take a screenshot and create a page that is printable [http://www.webdeveloper.com/forum/showthread.php?210947-Using-window-print-without-printing-header-and-footer]
    *Target to another window then print: [http://www.liferay.com/community/forums/-/message_boards/view_message/3401817]
    Hope this helps.

Maybe you are looking for

  • Error -48, please help!!

    I HAVE UPDATED TO THE LATEST VERSION OF IPOD 60G AND WINDOWS XP. IGET THE FOLLOWING ERRORS "Itunes.exe corrupt file \Photos\Thumbs\F1019_1.ithumb is corrupt and unreadable Please run the CHKDSK utility" I have run CHKDSK to no avail. " The Ipod (Ipod

  • Problems with External Monitor In XP

    Ok, I've got a huge problem with XP on Bootcamp. I've recently got a Samsung TV which I can use as an external monitor. This works absolutely fine when I'm using OSX, recognizes the TV and can use it as a second screen. When I try to use the same mon

  • Capturing Data Problems

    I'm TRYING to capture DVCpro 50 (24p) from a SD93p deck (not SD930) into FCP 5 on my G5. The computer sees the deck, and I can run it through the FCP capture window, but every time I actually try to capture any clips, it errors out saying that the co

  • I can't view the pdf files from outside without open them

    i had the adobe acrobat 7.0 version 7 installed on my pc when i upgraded it to version 9.0 , I can no longer see the cover of pdf files how i can view the pdf files from outside without open them please notice the divergence between these picture bef

  • X220, UltraBase Series 3 and DVD Multi IV, series problem

    Hi, I have these combination: ThinkPad X220, 4286-CTO i7/USB3.0 model ThinkPad UltraBase Series 3 P/N: 0A33932 Serial UltraBay Slim DVD MULTI IV P/N: 45N7451 (HL-GU10N) I have encountered this problem: When the DVD writer is in the Ultrabay and I ini