Tree component - can I declaratively hide the disclosure icon

I have just started working with the tree component. Within the data model that I am working with, I've got branches that may or may not contain children. The child nodes are lazily fetched (which is good, for performance), but this results in the tree not knowing if children exist until the disclosure icon (the arrow) is clicked. This means that when the branch contains no children, the user has to click the arrow, and the arrow just disappears without anything on the tree changing. Because of the nature of the legacy data model that I am working with, I actually have an attribute that indicates if children exist (and I could have created a formula based attribute if no such indicator existed in the data model). I would like to be able to check this attribute (via EL or some other method) and suppress the disclosure icon if no children exist, but I have not found a way of doing it. Is this possible?

I was able to get this to work using the following disclosure listener:
  public void testDisclosureListener(RowDisclosureEvent rowDisclosureEvent) {
    Object rowKey = null;
    FacesCtrlHierNodeBinding rowData = null;
    RichTree tree = (RichTree)rowDisclosureEvent.getSource();
    RowKeySet rks = rowDisclosureEvent.getAddedSet();
    if (rks != null && rks.size() == 1) {
       rowKey = rks.iterator().next();
       tree.setRowKey(rowKey);
       rowData = (FacesCtrlHierNodeBinding)tree.getRowData();
       if ( rowData != null && rowData.getChildren() != null ) {
         // Iterate through the children of the expanded node and check if they have children
         for ( Object child : rowData.getChildren() ) {
           FacesCtrlHierNodeBinding childNode = (FacesCtrlHierNodeBinding)child;
           if ( childNode.getChildren() == null || childNode.getChildren().size() == 0 ) {
             // Child node is a leaf.  Add it to the disclosed rows, to that the ADF tree will not display a disclosure icon
             tree.getDisclosedRowKeys().add(childNode.getKeyPath());            
  }

Similar Messages

  • How can we disable/Hide the buttons at items tab in header level Gen tab?

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

  • How can i disable/hide the calling form from fnd_function.execute

    Hi,
    How can i disable/hide the calling form from fnd_function.execute.If so can any one give the syntax.
    thanks

    Hi Francesco,
    Are you talking about that ??? )) It will explain you about to get the name of the web page when you are executing an abap function for determining the values of variables...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20make%20a%20variable%20even%20more%20flexible%20in%20bw-bps.pdf">How to make a variable even more flexible in BW-BPS?</a>
    This is weird: I wrote that document a few weeks ago, it is theorically published on SDN but this is not possible to find it by using the research tool... Maybe because it applies only to BPS in 3.5. I did not have enough time to migrate that solution to BI-IP 7.0.
    Regards
    Laurent

  • Can i remove/hide the right hand side browserlab panel ?

    Can i remove/hide the right hand side browserlab panel ?
    Thanks for help

    Hi,
    you could try this (screenshot from my German DW) here (look at the little green arrows):
    to get this for example:
    Hans-Günter

  • Can we hide the arrow icon in the hide/show link ?

    well
    i need to hide the arrow icon in the hide/show link because this icon makes the printer prints many page for only one page print request
    so if anybody have any idea about this please inform ...
    thanks in advance

    i alreay use printable page and when i print the page prints many pages the first one with the page itself while the others blank white papers but have only the arrow of hide and show links
    ???

  • Hide the expansion icon on a jtree.

    I need to hide the expansion icon (the "+") on a jtree.
    I tried to use DefaultTreeCellRenderer and the L&F options, but they hide all of the "+" icons of the tree. I need to hide the icons depending if the node has no-leaf icons.
    Thanx.
    pmadridb

    hi,
    you can change the property of common section view attribute. which is default in month. if u use input date component , i think you can overcome your problem..

  • Hide the help icon in sharepoint 2010

    Hi ,
                How to hide the help icon in through out the site collection in Sharepoint 2010
    Regards,
    Bharani
    bharani

    Hey,
    As Balamurugan said,that is also a way to do this.
    But jquery increses overhead for just small thing.
    So put something like this in your <head> section of master page
    <style>
    .s4-help {
        display: none !important;
    </style>
    This is the easiest way to do this :)
    Let me know if you have any queries :)
    "The Only Way To Get Smarter Is By Playing A Smarter Opponent"

  • I hid the Taskbar Icon now How do I get it back?

    I hid the Taskbar Icon now How do I get it back?

    That is set in the remote control policy under the general tab. There is a
    check box to check if you want the icon showing or not.
    Remember that if you have policies set to users AND workstations, that the
    policies may conflict. It will all depend on how you have them scheduled.
    Jared H.
    <[email protected]> wrote in message
    news:KCj3c.2712$[email protected]..
    > I hid the Taskbar Icon now How do I get it back?

  • Why can't I see the airplay icon in the music app or control centre on my Iphone 4 running ios7? I can see it in the movie app

    Why can't I see the airplay icon in the music app or control centre on my Iphone 4 running ios7? I can see it in the movie app

    I've seen something yesterday that says Airplay in control centre is only for Iphone 4S and onwards. It's frustrating when they take something away without any obvious reason. I'm going to change back to IOS6 until it's sorted out.
    I also tried connecting to bluetooth and only once I'm connected does an icon show up in control centre. There's no direct way to connect to a device from control centre on the Iphone 4 from the looks of it.

  • Re colouring lables... can this apply to the folder icon itself

    re coloring lables... can this somehow change the folder icon itself or only the lettering underneath?

    That only changes the text label color. You can change icons yourself if you want...

  • Can I disable/hide the brush tilt animation window?

    Adobe instituted the dynamic brushes in CS5 and I'm fine with that. What I'm not fine with is not being able to hide that pop window that's supposed to aid you with knowing how the stylus is positioned in space. It's annoying. I want to hide it, or at least make it smaller. It takes takes up way too much space and I don't know if ANYONE spends their time looking at it while drawing. I do like the brush icon at the tip though and how it changes shape based on angle. Maybe this should be in feature request?

    If you hover the mouse/pen over the top of the window you can press the X to close the window or go to View>Show and uncheck Brush Preview.
    You can also move the window or click on the double arrow to make the window smaller.

  • In Quicktime 10.3, why can't I hide the playback controls? It is most annoying when giving a presentation to a large group to see the control panel appear. I just want them to see the movie. Thanks!

    How to hide playback controls?

    The problem is I don't want my audience to EVER see the playback controls, just like I don't want to see a TV station's playback controls onscreen when watching TV. Same in a movie theater. The movie should just appear and play.
    And not moving the mouse is not an option when going between a slide program and a movie program, which our presentations often if not always do.
    Is there a way to do what I want in my computer using Quicktime?
    There are no user preferences for any current version of QT X. If you must use "Full" screen mode, then start player playback before entering the "Full" screen mode and exit the "Full" screen mode before again moving the mouse to avoid seeing the controls when you do manipulate the mouse. Only other option might be to use a non-mirroring workflow strategy.
    Does Quicktime Pro have that ability?
    Yes and no. The QT 7 media player window normally displays the controls at all times. However, when keyed for "Pro" use, you can go to the "Properties" window and change the "Presentation" movie controller type to the "None Movie Controller" setting. In this setting all playing modes other than "Full" screen mode display the player with title bar above the viewing area but without side frame or controls under the display. If you are using the "Full" screen mode for your presentation, then you can open the "Preferences" window to the "Full Screen" tab and deselect display of the "full-screen controls." In both cases you will have to either use menu options to start/stop playback or double-click the display screen to start playback and single-click the display screen to stop playback manually. (NOTE: In the first instance the property setting is/can be saved to the file itself while in the second the setting is saved as a QT 7 Player preference to the player itself.)

  • How can I auto-hide the TOC

    I'm using RoboHelp 8 and have a WebHelp project in which I'd like the output to auto-hide the TOC, allowing the user to click to open it if needed. There doesn't appear to be an option for that. Instead, the user can currently choose to close it, but it defaults to Open. Any ideas on how I might accomplish this?
    Thanks in advance for your help!

    Hi there
    You might also check out my Skinny on Skins file. (freely available at the link below)
    Click here to view
    There are some ways outlined in it.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Xperia T - Is there any app which can hide the menu icons at the bottom screen

    I use the Tab for handwriting notes.  However, it is impossible not to touch the bottom icons with your wrist.  When you do, you are returned to the home page.  This is terribly frustrating when you are unable to complete a note without constantly switching beck to the home page.
    The manual shows the three icons on the left of the screen which would help to solve the problem.  How can I get my icons to move to the left? (or somewhere else - or disabled).  I don't want to root the tablet just to achieve this!
    Thanks

    I guess you mean Xperia tablet Z and not Xperia T? 
    In an earlier Android version (4.1) the soft keys where located in the left corner. In Android 4.2 the soft keys are located in the middle instead. 
    It is not possible to hide the soft keys as standard in Tablet Z and I'm not aware of any app with that functionality. 
    What are your thoughts about this forum? Let us know by doing this short survey.

  • Can we show / hide the minor grid in a graph programatically?

    I know how to do it statically and I know how to show / hide the major grid programatically. I am using labview 6.0.
    thanks

    thierry_d,
    This feature is not available in LabVIEW 6.0.x, but there is a minor grid color property in LabVIEW 6.1. If you really need this property, then I would suggest upgrading to LabVIEW 6.1.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • How do I transfer content in Dashboard Stickies from one Mac to another?

    I've got a new MacBook Air and because the hard drive on it is smaller than the hard drive on the MacBook Pro I had before, I've opted not to use Migration Assistant. But I have a good bit of content in Dashboard Stickies. Does anyone know how I can

  • Cant uninstall old bonjour

    trying to install new version of itunes.  Get message" unable to remove old version of bonjour"  Help

  • Opening photo goes blank

    After I imported my photos, I changed the name of the folder in my finder and now I cannot open the photos, it opens blank. I guess this happened when I changed the name and now iphoto cannot find the source, how do I fix this problem?

  • Changing the Database characterset

    Hi, My oracle 9i database characterset is AL32UTF8. I wanted to change this to UTF8 for some testing purpose... After few days i need to reset this characterset back to AL32UTF8. how should i proceed on this? Plz adivice..... Regards, Ashok Kumar.G

  • Incorrect user and admin accounts showing when trying to apply patches

    Hi folks, I have completed a (rather painful) install of the "main" component of BPC version 7 on my clients' server, with a domain user as the System Admin, and local accounts for the Admin and User accounts. This is a single-server install. Now, wh