File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Flex and the fly likes How to make an image visible and invisible on click in itemrender? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Flex
Reply Bookmark "How to make an image visible and invisible on click in itemrender?" Watch "How to make an image visible and invisible on click in itemrender?" New topic
Author

How to make an image visible and invisible on click in itemrender?

aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
I have an itemrenderer which is inside an MDataGrid. Now when user logs in for the first time there will be a "new" image on all the columns. When user clicks/ double clicks any column, the image should get removed from that particular column. I am not able to achieve this. I tried invalidateDisplayList, invalidateList, nothing is working.Please help.


Thanks in advance,
Aman


Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3598

Have you tried invalidateProperties? I suggest posting some code so we can understand exactly what you are trying to do.


My Blog: Down Home Country Coding with Scott Selikoff
Ruchira Ghosh
Greenhorn

Joined: Nov 25, 2010
Posts: 13
Try using addChild and removeChild methods of mx.Core.UIComponent.

removeChild(DisplayObject(linkButton: LinkButton)
addChildDisplayObject(linkButton: LinkButton)


Thanks & Regards,
Ruchira

 
 
subject: How to make an image visible and invisible on click in itemrender?
 
Threads others viewed
Append a String to an ImageIcon
Disabling image
java.lang.NumberFormatException when sorting table column
right click on the browser
Scale the image
IntelliJ Java IDE