Add a button after each node of my tree

Hi !
I would like to add a button after each node of my tree. I think I have to create a new TreeCelleRenderer but I really don't know how to make it. Can someone help me and give me an idea (or an example !) about the code.
When I click the button, I must know from which node the event comes.
thanks.
delph

Hi, how did you resolve the problem. Well it's long time from your posting, but maybe someone else can help me...
I'm creating similar JTree where's print and save buttons in some of the nodes. I created custom cell renderer which extends JPanel and holds images, text and the buttons inside it. Is it possible to link buttons' actionlisteners somehow to the nodes. I tried it customizing cell editor, but I can't get button events fired. I also tried to catch "button clicked" action using mouse listener in my tree and that worked somehow and can be used as quick and dirty solution. Still I want to do it better way.
-e

Similar Messages

  • Can I add Action button on each page of my pdf document

    I have created  many power point slides with an action button on each slide that allows the user to click to display a video clip.   I would like to create a pdf document of this and replace each of my action button in ppt with an action button that works in Acrobat.
    I noticed that action buttons can be added to forms, but I want to be able to add an Action Button on each of my ppt slides to start playing a video clip (each slide will have a different video).
    I would like to do this using any coding method (i.e. Javascript, VBA, C , etc).   I think acrobat uses Javascript.
    The reason, is that I want to display my power point slides on an IPad and they don't support hyperlink in power point.   I believe IPad does suppport the full acrobat capabilities.
    Can this be done ??  
    Any suggestions where to start ??
    Thank You,
    G

    NO problem creating the buttons and then playing this back in Acrobat. Works great.
    However, unfortunately, none of the PDF viewers for the iPad support playing movies.   So playing it there won't work :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sat, 28 Jan 2012 11:00:47 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Can I add Action button on each page of my pdf document
    Can I add Action button on each page of my pdf document
    created by gw70115<http://forums.adobe.com/people/gw70115> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4171109#4171109

  • Old operating systems allowed you to click on recipients when sending emails without adding a comma after each address. Now with the new and improved system, I have to stop and add a comma after each name. How can I avoid this?

    With the new OSX system, whenever I send an email with multiple recipients, I need to physically add a comma after each address. I never needed to do that with all the other older systems, it was done automatically. How can I fix this frustrating glitch?

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
    Below is the representation of how I need the page to look like.
    Col 1
    Col 2
    Col 3
    data 1
    data 21
    data 31
    Button 1
    Button 2
    data 2
    data 22
    data 32
    Button 1
    Button 2
    data 3
    data 23
    data 33
    Button 1
    Button 2
    data 4
    data 24
    data 34
    Button 1
    Button 2
    I should be able to access data 1, data21, data 31 from button 11 and button21 etc.

    select data1,
              data2,
              data3,
              null button1,
              null button2,
              rowid r_id
    from .....
    If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
    <input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
    You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
    You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
    --- This would be for data1 column
    <span id="D1-#R_ID#">#DATA1#</span>
    You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
    You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
    Hope that all makes sense.
    David
    Message was edited by: DLittle
    Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

  • Apex 4.0 how to add a button to each row of a report

    Hi Everyone
    I have to a requirement where i need to add a button or link to each row of report dynamically and when a user clicks on it region has to display a region below.
    For example displaying report in region 1 and when a user clicks the link or button the region 2 has to appear based on the condition.
    Report display details of employee , employeename, emp no, manager, depto, sal,feedback and if the feedback is filled then the link should not appear and if feedback is not filled and the link or button should appear beside that row and allow the user to click and when it is clicked it has to show region 2 .
    I am new to Apex, please help me out how to do this.
    Thanks in advance
    Regards
    Sandeep

    Step 1:
    Add a new item to set ID principal in report 2. ex. "P2000_ID" (maybe hidden item)
    Step 2:
    in report 1 section "report Attributes" section "Link Column"
    -> Link Column = Link to Custom Target
    -> Link Icon: Select some Icon link.
    -> Target: Page in this Application
    -> Page: same page ex. 2000.
    -> Item 1: "Name" = select Item created (step 1) "P200_ID" "Value" = #NAME_OF_ID_COLUMN_IN_REPORT_1#
    -> Apply Changes
    Step 3:
    Create query to report 2
    Ex.
    select *
    from
    TABLE2
    where
    ID=:P2000_ID
    -> In Report2 condition
    * Condition Type = Value of item in Expression 1 Is NOT NULL
    * Expression1 = P2000_ID

  • Add horizontal line after each record

    I have 10 records seperated by ID. I m using List in SSRS to show data on report. I need to add horizontal line after first record, then after second record till 10 th record. How do we add this line?
    Any help much appreciated.

    Hi SQL Insane,
    Per my understanding that you have add the tablix into the list and group on the "ID", now you want to add an horizontal line between each record which grouped by the ID like below, right?
    If so, please reference to the details information below:
    Select the entire rows and Right click to select the Insert row-Inside Group below to add an inside row group
    Select the new added inside row group and set properties as below to make sure there is only display the black solid line on the bottom just like to add an horizontal line:
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Add paragraph tags after each period

    Hi!
    I'm into a hidious task to add <p> </p> paragraph
    markers after each period (.) in a long set of text. Is there any
    way to automate this work?

    Andy Bay wrote:
    > I'm into a hidious task to add <p> </p>
    paragraph markers after each period (.) in a long set of text. Is
    there any way to automate this work?
    Start by making a backup, then use Find and Replace.
    Set the Search to Source Code. Search for ". " (without the
    quotes).
    Replace with ".</p><p>" (again, without the
    quotes). Click Replace All.
    You can finally tidy it up with Commands > Apply Source
    Formatting.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to know which leaf node i click and how to add a listener to each node?

    hi! hello to all members, i have a problem i know how to create a listener, but i dont know how to add a listener to each leaf node. here is the scenario i want to do, i have a JTree where theres a topic that you can select on each leaf node, so when the user click the specific topic it will open another JFrame,which i dont know how to do it also, that its! the next problem will be how do i know which leaf node i select, so that i can open a right topic before the JFrame will open?please, i am very need this to solve quickly as possible. thanks again to all members.

    What you have to do is to add a mouse listener on your JTree. Try something like this:
    tree.addMouseListener(new java.awt.event.MouseAdapter() {
             public void mouseReleased(MouseEvent e) {
                tree_mouseReleased(e);
    private void tree_mouseReleased(MouseEvent e) {
          TreePath selPath = tree.getSelectionPath();
          // Check If the click is the Right Click
          if (e.isPopupTrigger() == true) {
          // This is your right Click
           else {
                     // This is your Left Click
    }Your other problem: Set the userObject on nodes and on left click compare it with your object, if it matches, display the appropriate file. Alternatively, if your nodes are unique, you can match the names to open the file.
    Hope this Helps
    Regard
    Raheel

  • How can I add a pause after each photo to my flash file?

    How can I add a break to my sequence of photos on a flash file.
    I created a flash with different photos and I want each one to stay on the stay for about a minute before moving away.
    How do I do this? Please help

    //Timers are measured in milliseconds
    var minuteTimer:Timer = new Timer(60000);
    minuteTimer.addEventListener(TimerEvent.TIMER, exchangePhoto);
    function exchangePhoto(e:Event):void{
         //put your code of exchanging your photo here
    //you have to start the timer explicitly, when your app starts
    minuteTimer.start();

  • Add a button after a youtube video is complete

    Does anyone know how I can make a button visible once a youtube video is complete?
    Any help would be greatly appreciated.

    Hi, how did you resolve the problem. Well it's long time from your posting, but maybe someone else can help me...
    I'm creating similar JTree where's print and save buttons in some of the nodes. I created custom cell renderer which extends JPanel and holds images, text and the buttons inside it. Is it possible to link buttons' actionlisteners somehow to the nodes. I tried it customizing cell editor, but I can't get button events fired. I also tried to catch "button clicked" action using mouse listener in my tree and that worked somehow and can be used as quick and dirty solution. Still I want to do it better way.
    -e

  • ToolTip for each node of the Tree in JTreeTable?

    Hello! I have the problem that a ToolTip i have set in the TreeCellRenderer would not been displayed! Only one ToolTip will pop up over the JTreeTable with the ToolTipText that was set in the first CellRenderer. Does everybody have an idea?

    OK! Its done! The solution does not help exact, but it gives my the way! With the coordinates of the MouseEvent I can get the Value of the current table row and set the ToolTip text new. Teh ToolTipManager automatically repaints the ToolTip whit the new text and position.

  • How to add a comment for each row on the output of a report?

    I would like to add a comment (field) for each row on the output of report? This comment should to be saved as well. Is there a way i can do that?
    Regards,
    Ram

    Hi Dimitri,
    through the instead of trigger functionality i am able to update the view. This is view is based on different views which should be linked to a table (as you suggested) in which comments can be stored. Hower this table is empty and how to link this table with the view now? I face the following challenge.
    View consists the following columns, for example
    select name, sex, age from test_view
    name sex age
    John M 20
    Anton M 30
    Willy M 40
    shirley F 38
    sharon F 37
    The report has the following output, for example
    name     sex age
    John     M 20
    Anton     M 30
    Willy M 40
    Shirley F 38
    Sharon F 37
    Now i would like to add comment through a button.
    The report layout looks like
    name sex age
    John M 20 <add comment button>
    After submitting the <add comment button> you can enter text which deals with John
    text='John doesnot like me'
    Finally the report display the comment as well
    name sex age
    John M 20 'John doesnot like me' <update/delete comment button>
    Anton M 30 <add comment button>
    Willy M 40 <add comment button>
    Shirley F 38 <add comment button>
    Sharon F 37 <add comment button>
    After submitting the <update/delete button> you can change or delete the entered text.
    I hope this example clears things up.
    Regards,
    Ram

  • Add a button to the branch/root in a Flex Tree

    Can someone provide me code or  guide me how to  add a button to all nodes that has children/leaf( but not  to leaf). I tried from the example in this link
    http://www.remwebdevelopment.com/dev/a31/Flex-Checkbox-TreeItemRenderer.html , but I ma getting buttons for all the nodes(including leaf).
    i need to hav ethe button on the rideside corners horizontally to all branches/root.
    Please correct me where i am wrong or provide me correct code. Thanks in advance
    package  
    PKG{
    import mx.controls.Button;  
    import mx.controls.Tree;  
    import mx.controls.treeClasses.TreeItemRenderer;  
    import mx.controls.treeClasses.TreeListData;  
    public class TreeData extends TreeItemRenderer{
    private var bWidth:Number = 30;  
    private var bHeight:Number = 20;  
    public function TreeData(){
    super();}
    var btn:Button=new Button();  
    override protected function createChildren():void{
    //addChild(btn);
    super.createChildren();}
    override public function set data(value:Object):void{
    super.data = value;  
    // get the tree that owns us  
    var _tree:Tree = Tree(this.parent.parent);  
    // if the current node is a branch node  
    //for each(item:Object in  
    if(TreeListData(super.listData).depth=1)                             -or if(TreeListData(super.listData).hasChildren)   these are not working for me{
    btn.width = bWidth;
    btn.height= bHeight;
    btn.label=
    "Remove Attachment";btn.right=10;
    else{
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{ 
    super.updateDisplayList(unscaledWidth,unscaledHeight); 
    if(super.data){ 
    var tld:TreeListData = TreeListData(super.listData); 
    // if the current node is a branch node  
    if(TreeListData(super.listData).depth=1){
    this.btn.visible=true; 
    this.btn.x=200; 
    this.btn.y = super.label.y+4; 
    //super.label.x = this.btn.x +; 
    //this.btn.y = super.label.y+8; 
    else{
    this.btn.visible=false; 
    this.btn.includeInLayout=false;}

    Hi Albert.
    You need to do a few things for that :
    - Create your own GUI status by copying STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN.
    - Set your own PF-Status using the Exclude table because otherwise your exclude table would become meaningless.
    - define a subroutine to handle the user commands.
    Sample implementation :
    FORM pf_status USING extab TYPE slis_t_extab.
      extab = pf_exclude.   
      SET PF-STATUS 'STANDARD' EXCLUDING extab.       
    ENDFORM.                    "PF_STATUS
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'PF_STATUS'
          is_layout                = layout
          it_fieldcat              = fieldcat
          it_excluding             = pf_exclude
        TABLES
          t_outtab                 = itab
        EXCEPTIONS
          OTHERS                   = 0.
            FORM user_command  USING r_ucomm LIKE sy-ucomm
                                       rs_selfield TYPE slis_selfield.
    ENDFORM.
    Please reward points if found helpful.

  • How to create buttons for each slide in slideshow

    I currently have a slideshow working with prev and next buttons,
    but would like to add numbered buttons for each slide at bottom of images,
    with a static number for the active slide that has a colored circle around that number.
    I can create static number with colored circle in Photoshop and add that to a layer,
    but it's labor intensive to do that for all numbers.
    Is there a better way to create the highlighted numbers for active slide?
    For numbered buttons that link to non-active slides, I can create numbers in Photoshop and import images into Flash,
    then convert to symbols and assign actions for them,
    But that too is labor intensive to do for all the numbers.
    Is there a better way to create numbered buttons for non-active slides?
    I'd also like to have a hover function on the numbered buttons,
    that changes from plain image of number to number with colored circle like I want to use for active slide.
    How do I assign a hover function to button symbol, that will load another image or symbol?

    Try to think in terms of having reusable symbols.  Think it thru before you try it.
    Use a movieclip symbol instead of a button.  Have a dynamic textfield in that movieclip for the number, and set the textfield to not be selectable.  Have one frame of this movieclip where it displays as the highlighted (selected) one and have the movieclip go there where you are on that slide.
    Use the textfield for the number--assign it dynamically so that you don't have to import an image for it.  Use as many of these movieclips as you need to for all your buttons.
    Have functions that reset all the buttons at once so that when you move to a new slide, the previously selected one goes back to mormal... follow that with setting the newly selected one to be in its "selected" frame.

  • Extra buttons on each row of a report?

    Hi,
    I would like to add multiple buttons in front of each row in a report.
    When a button is pressed a Pl/SQL statement should run with access to the PK ID of that row.
    Also, it is important that I can add other buttons as well (edit, delete etc)
    What I want to accomplish, for example:
    I want to have an ‘add event’ button on each line of a ‘scheduled production run’, this should then branch to a new page on which first a hidden item (set to pk id) and visible item (pk info) is set to those of the row on which the button was pressed.
    I hope that makes sense.
    Please let me know how I can to do this,
    Thank you so much for any help!!!

    open the page, click the RPT link to the report column attributes of that region. choose the field you wish to alter (click the edit icon) then change under the "column link" section to an href. I have used a call to a javascript function in the URL box e.g. "javascript:show_the_page(#ADD#);" and included a javascript function within my app to handle this (read in PK and open a page in a new window with the PK as a variable)

Maybe you are looking for