Hide disclosure icon for some nodes

Hi,
For some nodes with children, I would like hide the
disclosure icon; for some not.
How can I do that?
I tried disclosure._visible = false in the function
setValue(node, state) of my custom TreeRow Renderer extended from
mx.controls.treeclasses.TreeRow. It did not work though.
For other embedded moviclip in a tree, it seems I can
control, i.e. nodeIcon, cell.
Thx,
Guangming

Thanks, a case of missing the obvious
Extending HierarchicalData and overriding canHaveChildren and hasChildren worked.

Similar Messages

  • AdvancedDataGrid: display disclosure icon for empty nodes

    Hi,
    I have an AdvancedDataGrid with HierarchicalData that will be loaded lazily. Initialy, the tree displays only the parent nodes. Since the nodes' children are not loaded yet, no disclosure icons are rendered. Is there a way to force the tree to also render the disclosure icon for empty nodes, so that I can load a node's children when it is expanded?
    I have tried looking at TreeDataDescriptors, but AdvancedDataGrid or HierarchicalData don't seem to support this.
    I also looked into extending AdvancedDataGridGroupItemRenderer, but fail to see where I can put logic to render the disclosure icon.
    Any help would be much appreciated.
    Glenn

    Thanks, a case of missing the obvious
    Extending HierarchicalData and overriding canHaveChildren and hasChildren worked.

  • Hide settings icon for specific users

    Hi
    In share point 2013 we have settings icon at top right corner.
    Is there any way, I can hide this icon for specific users.
    Please help in this regard.
    Thanks,
    Anil

    Hi Kumar,
    Its possible.
    1.Open the .master page in some textpad/SP Designer.
    2.Look for below tag. This is the holder for SITE ACTIONS
    <SharePoint:SiteActions
    3.Look for the Menu item templates. These will clearly give you an idea on wht they will hold.
    <SharePoint:MenuItemTemplate
    4.There will be 2 attributes for each menu item called
    PermissionsString & PermissionMode.
    In the permission string give the required permission to the user to be shown or hide.
    http://sharepoint.stackexchange.com/questions/66628/edit-settings-gear-icon
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to hide edit link for  some rows in report? (according to value of col)

    Helo,
    How to hide edit link for some rows in report? (according to value of column)
    regards
    siyavuş

    Hi siyavuş
    You can do this by taking the edit link off the report and putting it into your report SQL.
    Use something like Select CASE WHEN (condition)  THEN
    'Put your edit link in here as an html Anchor like<a href="(target)">Edit</a>'
    ELSE
    tt.value
    END edit_link
    FROM test_table tthope it helps,
    Gus..
    You can reward this reply (and those of other helpers) by marking it as either Helpful or Correct.
    This allows forum users to quickly find the correct answer.
    ;-)

  • How to display different icon, for different node of jtree

    Hi All,
    How to display different icon, for different node of jtree

    you haven't responded to my last post here: [http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676|http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676]

  • How can I hide my cam for some applications like messenger, skype, etc.

    Hi,
    How could I hide my cam for some applications?
    Thanks in advance!

    There's a support file in the System/Library/QuickTime folder that you can move elsewhere temporarily: QuickTimeUSBVDCDigitizer.component. Don't delete it, just move it. Any apps you open from that point will not have access to the camera. Move the file back to re-activate it (you may need to reboot).
    There is also an AppleScript to do the same thing, but I can't guarantee it works for 10.8.
    http://techslaves.org/isight-disabler/
    Matt

  • ADF TreeTable - How to hide Disclose/Expand icon for leaf node

    We are using ADF Tree Table in our application.
    Whenever a node is expanded - all the child nodes have the disclose/expand icon along with it.
    But, we don't want to show the disclose/expand icon if it is a leaf node.
    How can this be done?
    JDeveloper Version: JDeveloper 11.1.1.3
    Thanks,
    Navaneeth

    I have a hierarchical tree based on single POJO based class exposed as data control.
    (i.e) a node can have many levels.
    Can you specify how we can use the folder icon for this - Can you please provide some detailed information?
    Thanks in advance,
    Navaneeth

  • HGrid hide the Action icon for Root Node

    Hi,
    I have a Hgrid developed. It contains a column called "Action" against all the nodes. I need to hide this icon only for the Root Node. Can anyone please suggest a solution?
    Thanks in Advance!
    Cheers.,
    Hem

    You can use a switcher (Icon and messageStyledText) or SPEL (rendered true or false) to resolve this issue. You can add a additional attribute in your VO which controls the SPEL rendered property of the icon or provides a case value for the switcher.

  • Using animation as icon for JTree node

    Hi,
    I am using a custom tree cell renderer. I have a label in the renderer, the label have gif Image Icon, but the problem is it is not getting animated. But when I use a JLabel with gif icon some where else it is working fine, but it is not working for tree node.
    package com.gopi.utilities.gui;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.GridBagConstraints;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.TreeCellRenderer;
    import com.gopi.remfilebrowser.gui.GUIUtil;
    import com.gopi.remfilebrowser.util.FileBrowserConstants;
    public class CustomTreeCellRenderer implements TreeCellRenderer
         private JPanel panel;
         private JLabel label;
         private TreeCellRenderer defaultRenderer;
         public CustomTreeCellRenderer()
              super();
              panel = GUIUtil.createGridBagPanel();
              label = new JLabel();
              label.setHorizontalAlignment(JLabel.LEFT);
              System.out.println("New");
              GridBagConstraints gc = new GridBagConstraints();
              GUIUtil.fillComponent(panel,label);
              defaultRenderer = new DefaultTreeCellRenderer();
         public Component getTreeCellRendererComponent(JTree tree, Object value,
                     boolean sel,
                     boolean expanded,
                     boolean leaf, int row,
                     boolean hasFocus)
              if(value instanceof NewAbstractTreeNode)
                   NewAbstractTreeNode node = (NewAbstractTreeNode) value;
                   System.out.println("dr");
                   label.setText(value.toString());
                   label.setIcon(ImageLoader.getInstance().getIcon(node.getIconKey()));
                   if(hasFocus && sel)
                        panel.setBackground(FileBrowserConstants.TREE_NODE_SELECTED_COLOR);
                   else if(sel)
                        panel.setBackground(FileBrowserConstants.TREE_NODE_UNSELECTED_COLOR);
                   else
                        panel.setBackground(Color.white);
                   return panel;
              return defaultRenderer.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);
    }

    JLabels using ImageIcons are designed to display the icon as is, including animation and all.
    A CellRenderer only paints the Icon once, when the cell is painted. Much ike a rubber stamp of the JComponent. Hence, its not designed to do the animation and all.
    If you really want it, you can probably use MediaTracker and a Timer to do your animation scheduling. Might not be very pretty code though
    ICE

  • Change the default icon for unsatisfied node

    Is it possible to change the default icon for the unsatisfied node (unsatisfied indicator). I have checked the UI content element with the same name, but it does not have the source file setting in it, so I guess it is hard coded. I tried to change the source file with the name unsatisfied_status.gif to a different image and it works, but this will be a system wide change. I want to do this as a model specific change. Has anyone done this before? Thanks in advance.
    Cheers,
    Biju.
    [My Oracle Blog|http://oraclewithbiju.blogspot.com]

    Did you try changing image name in UI edit page?
    UI edit page lists few images which can be changed for each UI, like unsatisfied indicator, logic status icons etc.

  • Custom icon for tree node

    Hi,
    Can anyone tell me how to change the icon for a particular node in a JTree?
    I know how to change all the leafs for example by using the DefaultTreeCellRenderer.setLeafIcon()method. But do you know how to set just one node to a particular icon?
    Cheers,
    Jim

    MyTreeCellRenderer extends DefaulTreeCellRenderer{
      public Component getTreeCellRendererComponent(
        JTree tree,
        Object value,
        boolean sel,
        boolean expanded,
        boolean leaf,
        int row,
        boolean hasFocus) {
        super.getTreeCellRendererComponent(
          tree, value, sel,
          expanded, leaf, row,
          hasFocus);
        //Do your condition on your value
        if( value ....){
         setIcon(myIcon);
        return this;
    }

  • Blank icons for some programs on dock

    A few days ago, one of the programs I run frequently (World of Warcraft) began appearing as a blank icon on the dock. By "blank icon" I mean there is nothing there but an empty space, through which you can see the background image. There is the little lit circle underneath it, of course, to indicate a running program. I do not keep in icon for this game on the dock.
    Today, it started happening to some other programs. As with World of Warcraft, this is only happening (so far) to programs I do not keep on the dock when they're not running. It's happening to Firefox, and just recently, it happened for System Preferences. However, it does not happen for all programs that aren't kept on the dock. I tried running two other programs, one that came with OS X (Chess) and one that did not (some game like Windows' Minesweeper), and it didn't happen for either of them.
    What should I do to fix this?

    Open Terminal application in your Utilities folder. At the prompt enter:
    killall Dock
    Press RETURN. The "D" in Dock must be capitalized.
    See if that helps. You can also try deleting the /Home/Library/Preferences/com.apple.dock.plist file.

  • Disable Drag & Drop in Tree for some nodes

    It is very easy to enable Drag and Drop on Tree controls. How
    do I disable some Nodes from being dragged? I do not need all nodes
    to be draggable.

    The trick is not to use the tree drag* properties of the
    control and instead use the DragManager to do custom drag and drop.
    This allows to listen to mouse down events and evaluate
    whether to useDragManager.doDrag() to initiate a drag.

  • How to hide default tooltip for tree nodes?

    I have an af:tree.
    When a node contains a long string, the tree automatically creates a horizontal scroll bar to accomodate it.
    But when I hover my mouse on top of the node, a tooltip is coming showing the complete text of the node.
    Because of this I cannot drag and drop this node.
    Is there anyway to hide this?

    Still can't get rid of the tooltip the layout is:
    <af:panelStretchLayout>
        <f:facet name="center">
            <af:panelSplitter>
                <f:facet name="first">
                   <af:panelAccordion>
                       <af:showDetailItem stretchChildren="first">
                           <af:tree>
                           </af:tree>
                       </af:showDetailItem>
                   </af:panelAccordion>
                </f:facet>
            </af:panelSplitter>
        </f:facet>
    </af:panelStretchlayout>Which should be pretty fine in terms of geometry management.
    If I move the splitter too much to the left the whole label can not be displayed => a tooptip pops, which prevents the node from being clicked.
    Maybe the lables have to wrap in some way instead of stay 'under' the splitter.
    Same behaviour with or without af:panelCollection wrapping the af:tree.

  • RAW files show icons for some folders, thumbs for others

    I have CS3, on OS 10.5, and use a Nikon D90. I've taken lots of pics in RAW format and all have shown a thumbnail in Bridge. Until the most recent set of pics I saved to my HD....they only show the RAW icon. What is going on with that? How can I make it show thumbs? Thanks

    Is there a setting on my camera (Nikon D90) or in Bridge I may have tripped up
    that
    doesn't save a thumbnail?
    Can't think of such a setting.
    Could you specify if you have done some updates recently. There are a lot of
    issues with Bridge CS3 and CS4 and CS5 are a lot better and much much more
    stable.
    However it seems to me that it is ACR related. Could you look at the specs
    for this. In Photoshop go to the menu Photoshop/about plug in and choose
    Camera Raw. Inhere there should only be one Camera Raw and it should say
    version 4.6.
    Could you report back on that?
    And can you also check if you can see thumbs from Tiff, PSD or Jpeg files?

Maybe you are looking for

  • Subsequent Credit - Unplanned Delivery Charges

    Hello, We have a return purchase order (ERS based) say for e.g.100 EA with a total value of $500. We complete creating the delivery, picking and goods receipt (Mvt type 161). Since this is an ERS based PO, we execute MRRL to create the credit memo an

  • Site-2-Site IPSEC VPN tunnel will not come up.

    Hello Experts, Just wondering if I can get some help on setting up a IPSEC VPN tunnel between a Cisco 2921 and ASA 550x. Below is the config show run | s crypto crypto pki token default removal timeout 0 crypto isakmp policy 1 encr aes authentication

  • CS6 problems on Macbook Pro with retina display

    I just bought a Macbook Pro with retina display and Adobe CS6. After installing CS6, I noticed everything is pixelated. Any popup or lettering or words are pixelated and so are the brushed. I am not just talking about the fonts, but any word in the p

  • [partiallySOLVED] changing window name of running urxvt

    Hi, Is it possible to change the window name of an running urxvt-terminal via external script (as in: not running in the urxvt-terminal itself)? I have no idea how i could do that ... is it even possible at all? EDIT: Why? To change the name/title of

  • How do you move collections from Photoshop Elements 5.0 to Photoshop Elements 13?

    I have an old laptop with Photoshop elements 5.0 and wanted to move that program to my newer PC but the program was too old so I bought and loaded Photoshop Elements 13 on my PC.  To import my photos from the 5.0 I did a full backup on a flash drive