Make graphics in a datagrid "clickable."

Can you place a clickable graphic along side text in a datagrid?  Each graphic does something different (runs a function to load a selected swf)If so, what might be a good approach?
It would look something like this:
DataGrid
1.  Some Text with a graphic on the right   
2.  Some Text with a graphic on the right   
3.  Some Text with a graphic on the right   
Any help is appreciated.
Thanks,
Doug

obviously yu would use itemrenderer, and pass the url of the swf that you would like to load on click of the image in each OBject of the array collection which is the data provider to the list.
Since you wwant the whole thing to be loosely couple you would create a custom event which pases this url when ever the user clicks on the graphic in the itemrenderer. The parent classwhere the DG is located should be responsible to catch this event and load the swf mentioned in the url.

Similar Messages

  • How to make the fields of table clickable?

    Hi Experts,
    I have created one RFC based WD program. We are displaying data in a table. Now I have to make some of the fields of table clickable.
    When the user will click on some of the fields, another RFC should be called.
    How I can do so?
    Regards,
    Gary

    hi
    when you try to select the attributes of the table that has to be  populated
    you may have  to right click on the rootuicontainer and select apply template and select table
    and select the attributes from the node that has to be populated in the table and click next
      and you can find the attributes name and textview which is by default that would be shown inthe table
      instead you can  change the textview and select from the dropdown select the linktoaction and linktourl
      and or you can go other way as add a new column to the table and select buttons to the table .
      and for each each row and on click of the button you can call the RFC .
    Thanks

  • How can I make my java program double clickable?

    I want to make a shortcut on desktop for my java program, in other words, i want to make it double clickable.
    Can someone please give me a step by step instruction on how to do this?
    Thank you very much.

    [Creating executable jar files|http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html]
    [create a batch file |http://forums.sun.com/thread.jspa?threadID=5190624&messageID=9978734]

  • How to make graphics in Applet not to repaint after I click "refresh"

    Hi, pals
    I have some interactive graphics inside an Applet. User can drag and
    move the graphic objects. The problem is when user click "Refresh"
    button of the web browser, those objects return to their original
    positions. What I hope is to make those objects still lie on the new
    position that user has moved them to after they click "refresh" or
    "back" and "forward" button to return to the applet page.
    do I need to write some thread control?
    Think when you type new URL in the browser showing the applet and go to the new web page. The system will call
    Applet.stop() and destory() to destroy the applet resource used by the
    Applet webpage. When you go back to the applet page, the system will
    call Applet.init() and start() to recreate it. All previous object
    positions and states manipulated by user will return to original.
    For example, there's a circle centered at (50,50), you move it to
    center (100,100). Then you go to another webpage in the same web
    browser frame. When you use "Back" button to return to the Applet, the
    circle will be redraw at center (50,50). (why? because the browser call applet.init() and do all process as first time the applet download to your computer) What I hope is the circle still keeps
    at its last center (100,100) . This seems impossible to me
    since the applet has lost its memory about the center position
    (100,100) last time when you go to another page and the system call
    destory() to delete the applet.
    Any suggestion?

    I think you can disable page refreshing with javascript, but how, I do not know.
    I wish this is helpfull.
    Ahmad Elsafty

  • How to make Graphics a separate thread.

    Hi all!
    I am performing dense 2D Delaunay triangulation on the Java Graphics context. I don't want to add any "sleeps" there in my code, so my app eats about 95-98% of CPU resources. I am becoming unable to normally use any components (i.e. buttons, combos etc) in my app because they are stuck and will responde after 10 secs or more. I tried to get out and did the things specified below.
    Assuming I have the following code:
    import javax.swing.*;
    import java.awt.*;
    public class Test extends JPanel {
    int count = 0;
    int loop = 100;
    Graphics g0 = null;
    Thread thr = null;
    public void paint(Graphics g)
         super.paint(g);
         g0 = g;     
          thr = new Thread(new Runnable() {
              public void run() {
               while (loop < 600) {
                    * Really I am doing a lot of things here,
                    * so there is no problem with such a blind loop causing 100%CPU usage
                    * or "too much threads" errors
                   g0.drawString(""+(count++), loop, 200);
                   if(count>9)count=1;
                    * Uncomment this after one try.
                    * Your JVM will crash instantly or a little later
                    * depending on the sleep value below.
                   //g0.drawLine(loop-10,100, loop-10, 200);
                   /*Uncomment this for test and manipulate with the sleep time in range 1..500*/
                   //try {Thread.sleep(500);}catch (InterruptedException ex) {}
                   loop+=10;               
                   repaint();               
               loop = 100;
          thr.setPriority(Thread.MAX_PRIORITY);
          thr.start();
    public static void main(String[] args) {
         JFrame fr = new JFrame();
         Test test1 = new Test();
         test1.setDoubleBuffered(true);
         fr.setSize(700,500);
         fr.getContentPane().add(test1);     
         fr.setLocation(70,70);
         fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         fr.show();     
    }After the crash my JVM(1.4.2_01-b06 on WinXP) says me "good bye" with this message or a similar long one with the whole dll list:
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x02eb7516
    SIGNAL = -1073741819
    FUNCTION NAME = Java_sun_print_Win32PrintJob_endPrintRawData
    OFFSET = 0x13E2
    LIBRARY NAME = C:\JBuilderX\jdk1.4\jre\bin\awt.dll
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x2EB7516
    Function=Java_sun_print_Win32PrintJob_endPrintRawData+0x13E2
    Library=C:\JBuilderX\jdk1.4\jre\bin\awt.dll
    Current Java thread:
    at sun.awt.windows.Win32DDRenderer.doDrawLineDD(Native Method)
    at sun.awt.windows.Win32DDRenderer.clipAndDrawLine(Win32DDRenderer.java:76)
    at sun.awt.windows.Win32DDRenderer.drawLine(Win32DDRenderer.java:126)
    As I described, the crash happens only when I use drawLine()/draw()/drawRect() or another standard method of Graphics/Graphics2D context except drawString() method.
    Did you try to solve a problem like mine is? Can you provide a RIGHT(I know that mine is simple, wrong and dummy ) alternative for separation of Graphics thread from the main one?
    Thank you guys for at least reading my post
    Waiting for a shameful reply to this message!
    Goodbye!

    Don't draw the graphics in the AWT event queue thread.
    Draw them in the main thread and repaint the
    component that displays them as they become
    available. The basics of a component like that are
    shown in message 15 this thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=55
    795&start=15&range=15&hilite=false&q=
    In the same thread under the reply #19 u wrote:
    The problem with drawing in the paintComponent() method is that it executes in the GUI thread and this >slows down the rest of the GUI. Many of my GUI apps involve mathematical transformations to images >which take too long to run inside paintComponent().I have the same problem though I am overriding the paint() method, i.e. my GUI thread is being hung even I use the paint() method. Forget about the code above, so there is no thread spawning, no MAX_PRIORITY and no paint()/repaint() recursivity. Did you fixed that problem by such a double buffering like action you specified in the reply #15?
    Thx!

  • How  to make graphics in pdf link to real size gifs/png

    This must be an old question, but when we were going to online help form Frame documents, we chose RoboHelp because we had a perl script
    that would swap back the old (96ppi) screen captures in the html, and so the user would see the large GUIs clearly.
    We are looking to go to an html front end that points to within the pdf documents, but the  screenshots are still unclear, is there a way to have
    a tooltip over each image in the pdf to click to enlarge and then the user would double-click and the original gif/png would appear? The original GUI images would be in a directory with the online help.
    Thanks

    That makes sense. So I guess it looks like I have 2 options.
    1. Put the JS short code in and have it open the link in a new window if the user opens it in adobe. If a google chrome user opens it in the default viewer, they wont be able to use the link at all.
    2. Leave the link how it is, and it will be usable in both viewers, but will not open it in a new window.
    I am sureprised that opening the link in a new window isn't just an option in Acrobat Pro. I wouldn't think you'd have to make a workaround like this.
    Is there an alternative way to have a page link on the form so that people can go to another .pdf whil keeping the main one open?

  • How to make graphics move fluidly around screen?

    hi,
    I'm making a simple space invaders game using JPanel and have so far made the ship and aliens move around the screen (the aliens move automatically, the ship requires key presses).
    The ship and aliens are currently simple java 2D shapes and I've used AffineTransform to move them. The problem is the movements aren't fluid. Can someone give me some pointers (possibly some simple code) to make the various objects move fluidly.
    Thanks

    Don't transform them just move them

  • How to Make Graphic Work on the Web?

    Hi all
    I am very new to Illustrator. I am trying to create a banner for one of those Do It Yourself websites. I created my artwork, and saved it for web and devices. However when I upload it, it the image is really tiny. If I stretch it out, it loses quality and goes jaggy.
    What can I do about this? I've tried various things in Illustrator, have done a search on the web, but mainly come up with optimizing graphics, which I am doing already.
    PS the space in which my graphic goes is pre-determined. I cannot change the size of it, but  I want my graphic to fill that space.
    all advice welcome,
    thank you
    cheers
    Mettaphorica

    Mettaphorica,
    You have to set the size in pixels by pixels in the Image Size window; unless you create it in the desired pixel by pixel size.
    The banner should be created in a document with File>Document Color Mode>RGB Mode, and you may as well set the File>Document Setup to the unit Points or Pixels (which is the same to Illy, she is rather tolerant), and work in the actual pixel size.

  • Xinerama makes graphic libraries crash

    So I was updating my system a little more than a week ago, and now I have a problem starting X, kdm, and most graphical environements.
    I think it might be the latest nvidia drivers that are responsible? or the nvidia-libgl libraries?
    I get the following errors in dmesg attempting to start kde and subtle respectively:
    drkonqi[371]: segfault at 18 ip 00007fca6c8173dc sp 00007fffab071c80 error 4 in libQtGui.so.4.8.4
    xterm[459]: segfault at 8 ip 00007ff121ef1080 sp 00007fff6d1efad8 error 4 in libX11.so.6.3.0
    the following link suggested that disabling xinerama evades the problem, but for me it is not a solution.
    I downgraded a bunch of packages in an attempt to pin-point the responsible one, but there are so many interdependencies it was a mess. so im back at the faulty stage with xinerama disabled.
    Any ideas on who's responsible for the crash and solutions?
    thanks

    I downgraded some packages on the fresh install, and indeed with nvidia-313.30 I have no problems with Xinerama enabled.
    So it seems the problem is introduced with nvidia driver 319.17.
    My test system is running fine with:
    - linux-3.8.11-1-x86_64.pkg.tar.xz
    - nvidia-313.30-5-x86_64.pkg.tar.xz
    - nvidia-utils-313.30-2-x86_64.pkg.tar.xz
    - nvidia-libgl-313.30-2-x86_64.pkg.tar.xz
    For further debugging note that a downgrade of nvidia-libgl-319 was not explicitly forced, and that X was successfully started, not complaining with any of the above mentioned errors. It did complain, unsurprisingly, about a missing library file, so downgrade to 313 resolved this.
    So I would say that the 'bug' is likely in the nvidia and nvidia-utils package, with the former being the most likely.
    I'm not sure how I should proceed, and if I should file a bug with nvidia??
    I wonder how exactly I should do that.
    Last edited by jarshvor (2013-06-18 10:14:54)

  • How Do I Make Bitmap, Graphic, or Movie Clip into a clickable link??

    I am designing a website entirely in flash (macromedia flash) but I cannot get the bitmap, graphics, or movie clips clickable links, although when hovered over turns into a hand.  Any suggestions? I have also tried the following script;
    on (release){
    getURL("http://www.google.com/", "_blank")
    Obviously I didnt use google, but still no go.
    I'm hot linking the raw fla file below.  I bought this template online and have modified it alot (all cosmetic) but I cant get the tabs to be links!?  I used action script (the one posted above) in every layer and the text inside the tabs.  But still doesnt work Does anybody know whats wrong?
    Sorry, but I dont know much in action script, I'm a c++ and web designer, this is my first time working in only flash.
    http://www.hotlinkfiles.com/files/2449178_iizru/_menu2_fv8.fla
    Here is my modded template in my website:  http://9karim.com/adminI only need to modify the menu bar

    I wouldn't say you're screwed, you just have some work ahead of you to find out what are actually the buttons in that thing.  If you look at the file on stage you'll see a large turquoise shape (an invisible button) that when you select it shows it has an instance name of "menu"... I still couldn't figure out what it has to do with those animated tabs, but it may lead to further discoveries.
    There's a lot of stuff woven into that file, and with the frame by frame animation, it's hard to isolate just about anything.  Based on what I see in the library as far as object naming goes, and your not knowing what's where, I'd conclude that this is an "acquired" design that has been decompiled into the fla you are trying to figure out.  While I haven't any experience with decompiled files, it wouldn't surprise me if there is an increased level of complexity as a result of how the decompiler rebuilt the file.

  • How to make the datagrid data organised

    I am not sure what code that can make the data in datagrid in position like regid,regname,,address,email,phone,company rather than every time I go in,it will refresh and be in random position and it is not organised.
    Please help and please tell me where to put the code.
    package {
      import flash.display.MovieClip;
      import fl.events.*;
      import flash.events.*;
      import flash.net.NetConnection;
      import flash.net.Responder;
      import RecordSetDP;
      public class RegistrationAdmin extends MovieClip {
      private var gateway: String = "http://localhost:8088/amfphp/gateway.php";
      private var connection: NetConnection;
      private var refreshResponder: Responder;
      private var updateResponder: Responder;
      private var regid: int;
      public function RegistrationAdmin () {
      viewBtn.addEventListener (MouseEvent.CLICK, viewRegistrants);
      updateBtn.addEventListener (MouseEvent.CLICK, updateRegistrant);
      deleteBtn.addEventListener (MouseEvent.CLICK, deleteRegistrant);
      addBtn.addEventListener (MouseEvent.CLICK, addRegistrant);
      updateResponder = new Responder (refreshData, onFault);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      registrantsDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      public function viewRegistrants (e: MouseEvent): void {
      refreshData (true);
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("RegistrantService.viewRegistrants", refreshResponder);
      private function refreshSuccess (result: Object): void {
      registrantsDG.dataProvider = RecordSetDP.toDataProvider (result);
      private function onFault (fault: Object): void {
      trace (String (fault.description));
      private function gridItemSelected (e: Event): void {
      regid = e.target.selectedItem.regid;
      regnameTxt.text = e.target.selectedItem.regname;
      addressTxt.text = e.target.selectedItem.address;
      phoneTxt.text = e.target.selectedItem.phone;
      emailTxt.text = e.target.selectedItem.email;
      companyTxt.text = e.target.selectedItem.company;
      private function getParams () {
      var param: Object = new Object ();
      param.regid = regid;
      param.regname = regnameTxt.text;
      param.address = addressTxt.text;
      param.phone = phoneTxt.text;
      param.email = emailTxt.text;
      param.company = companyTxt.text;
      return param;
      private function updateRegistrant (e: MouseEvent): void {
      var param: Object = getParams ();
      connection.call ("RegistrantService.updateRegistrant", updateResponder, param.regid, param.regname, param.address, param.phone, param.email, param.company);
      private function deleteRegistrant (e: MouseEvent): void {
      var param: Object = getParams ();
      connection.call ("RegistrantService.deleteRegistrant", updateResponder, param.regid);
      private function addRegistrant (e: MouseEvent): void {
      var param: Object = getParams ();
      connection.call ("RegistrantService.addRegistrant", updateResponder, param.regname, param.address, param.phone, param.email, param.company);

    the datagrid has sortItems and sortItemsOn methods you can use.

  • Improving quality of a graphic that you make smaller

    I'm slowly learning Photoshop as I go along.
    Right now I'm habing trouble with pixilated images. I work at a tv station where everything has to be created BIG for TV and then made smaller for the web.
    For example, the logo is really big. I'm open it in Photoshop to resize it. I do the "unsharp mask" and it's still pixilated.  I know the image is going to lose some quality, but that much? The guy before me used to make graphics smaller and he was able to "clean" them up to make them look good.
    Can someone explain to me what I need to do to "clean up" a graphic? Sometimes, if possible, I just recreate it smaller. But in some cases, such as the logo, I can't recreate it.
    Thanks.

    Open Image as smart objects.
    When you adjust the image size select Bicubic Sharper (best for reductions) interpolation.
    If your picture looks good at the full size you should not really need to use the unsharp mask for when you reduce the image size.

  • Is there a way to make a video clickable?

    I've had a few clients ask me this and I just wanted to verify it. Is there a way in Premiere to make part of a video "clickable", where the viewer can click on the video and it goes to a web site? I know this is possible with custom players, Flash, etc., but is it possible to do this just with the video?

    There was a way in which you could embed chapter markers in the timeline.  The web coder would use these markers to fire up more/different html content.
    For example, a markered video is embedded into an html web page.  Within that page are other embedded elements, such as a jpeg panel or hyperlink box.  When a certain marker is reached in the video, it would trigger the jpeg box to display a new image whilst a new hyperlink button would promt navigation to a new web page (whilst keeping the original video page open).
    It's been a long time since I've done it, but I seem to think that Microsoft Media Encoder was the free application that assisted!

  • Putting MovieClips in a Datagrid

    Hey all,
    I have seen pretty limited examples of using the
    cellRenderer to create custom cells in datagrids. Adobe has a
    couple examples of adding checkboxes and drop down lists, but I
    really want to drop a graphic in my datagrid. Has anyone out there
    had any success with this, or know of any resources where I could
    pull some info. I am usually pretty good at taking a demo and
    making it do what I want, but I just can't seem to do it. I think
    what is tripping me up is that the example from Adobe uses a
    "CreateObject" to make the new item in the list and I just want to
    attach a clip from the library. Oh well, let me know any thoughts,
    as I would really appreciate it...

    "nickname118" <[email protected]> wrote in
    message
    news:gh6k5p$m8o$[email protected]..
    > OK, I have two dataproviders for the inner grids. Just
    two array
    > collections, I
    > don't need to go into what the data is. Let's say they
    are just strings or
    > numbers for now.
    >
    > var dataprovider1:ArrayCollection = new ArrayCollection(
    > [{ data: 1, data2: 2, etc..}]);
    > var dataprovider2:ArrayCollection = new ArrayCollection(
    > [{ data: 3, data2: 4, etc..}]);
    >
    > var grid1:DataGrid = new DataGrid();
    > grid1.dataProvider = dataprovider1;
    >
    > var grid2:DataGrid = new DataGrid();
    > grid2.dataProvider = dataprovider2;
    >
    >
    > var outerDataProvider:ArrayCollection = new
    ArrayCollection(
    > [{grid1: grid1, grid2:grid2}]);
    >
    > var outterGrid:DataGrid = new DataGrid();
    > outterGrid.dataProvider = outerDataProvider;
    >
    >
    > I'm not sure what you mean by "information at that level
    of the structure
    > to
    > feed them". I have assigned the data providers, and they
    have data in
    > them...
    > So what do you mean?
    Typically, an itemrenderer is, well, rendering an item. So if
    you have a
    need for a datagrid as an itemRenderer, that item should
    contain data that
    could serve as a dataProvider itself. This would be the case
    if, for
    instance, you had a nested ArrayCollection
    (HierarchicalData), or if you had
    hierarchical XML.
    > I left out the code, but for the collumns I reference
    the appropriate
    > names
    > from each arraycollection in the dataproviders.
    That doesn't even make any sense. To make thiswork, you're
    almost certainly
    going to have to make a custom itemRenderer. I don't think
    there's any way
    to specify a dataProvider for something _inside_ an
    itemRenderer from the
    column definition.
    > And for the outterGrid I assign
    > an itemrenderer of type DataGrid. I do this specifically
    with a
    > ClassFactory,
    > because the itemrenderer field is an IFactory object.
    I understand all the words you used, but they don't come
    together into any
    sort of sensible whole.

  • How to display data from local csv files (in a folder on my desktop) in my flex air application using a datagrid?

    Hello, I am very new to flex and don't have a programming background. I am trying to create an air app with flex that looks at a folder on the users desktop where csv files will be dropped by the user. In the air app the user will be able to browse and look for a specific csv file in a list container, once selected the information from that file should be displayed in a datagrid bellow. Finally i will be using Alive PDF to create a pdf from the information in this datagrid laid out in an invoice format. Bellow is the source code for my app as a visual refference, it only has the containers with no working code. I have also attached a sample csv file so you can see what i am working with. Can this be done? How do i do this? Please help.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="794" height="666">
        <mx:Label x="280" y="19" text="1. Select Purchase Order"/>
        <mx:List y="45" width="232" horizontalCenter="0"></mx:List>
        <mx:Label x="158" y="242" text="2. Verify Information"/>
        <mx:DataGrid y="268" height="297" horizontalCenter="0" width="476">
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
                <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
            </mx:columns>
        </mx:DataGrid>
        <mx:Label x="355" y="606" text="3. Generated PDF"/>
        <mx:Button label="Click Here" horizontalCenter="0" verticalCenter="311"/>
    </mx:WindowedApplication>

    Open the file, parse it, populate an ArrayCollection or XMLListCollection, and make the collection the DataGrid dataProvider:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_08.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_01.ht ml
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/XMLListCollection.html
    If this post answered your question or helped, please mark it as such.

Maybe you are looking for