Coverflow hide children ?

Hello
I am using a coverflow, which has 26 panels inside of it. I set all 26 panels to visible=false, yet they still display.
I have looked at the "extended" code, and see where visibilty gets set, but if I change it, it does not affect the coverflow control. All 26 panels still display.
Does anyone have any experience with children controls in a coverflow and setting their visibility?
Any help is appreciated. This is such a cool control, so I am hoping I can get it to behave correctly

ok, I found a few interesting things with coverwheel control...
I was able to change the visibility in the main extended class, where it displays children. that did work, but I was getting some really crazy behaviour if I used all 26 panels. Like some panels would get stuck at the top, while others disappeared and would not reappear until you click in the missing area. It was bizarre.
Anyways, I got real frustrated and realized I could just move all 26 panels to a different container, so they would reside elsewhere. I removed them from layout (includeinlayout=false) and was able to reference them and add them to the coverwheel that way.
Doing that made it work much better, pretty much flawless now. In the coverwheel example, in the source code I downloaded from doug mccune, it had panels defined INSIDE the coverflow control. I could not set those to visible=false, without altering the extended code classes, so I simply moved the contained panels to a different container.
In doing some of this, I ran into a problem where you cannot find nested container children. Children references only go one level deep (as far as I understand, I could be wrong), but I had a hell of a time setting the values and properties of the UI controls inside my 26 panels.
Here is a function I found and altered to get all children inside a container (this is pretty slick):
            private function getChildByNameRecursive(name:String, container:DisplayObjectContainer):Object
                var child:Object = container.getChildByName(name);
                if (child)
                    return child as Object;
                for (var i:uint=0; i < container.numChildren; i++) {
                    if (container.getChildAt(i) is DisplayObjectContainer)
                        child = getChildByNameRecursive(name, container.getChildAt(i) as DisplayObjectContainer);
                        if (child)
                            return child as Object;
                return child as Object;
Using this I was able to get to the UI controls embedded deep inside the panels, inside the coverflow control, and set their values (amongst other things).
This has eliminated my need for using the Tab Navigator control, which sucks to work with by the way. This 3D coverflow is much nicer and really impressed everyone Ive shown I just thought I would share my solution, in case somebody one day could use some of it. Cheers.

Similar Messages

  • Movieclip's children disappear on color transform

    I have a movieclip where I create a child display object
    (another MovieClip) in the constructor and show it with
    addChild();. However, later on in the code I modify the tint of the
    parent MovieClip using colorTransform. The child object then
    vanishes. Even if I do a removeChild/addChild after the tinting, it
    does not show. I don't understand why this is happening.. tint
    should just modify the color of everything, not hide children,
    right? See attached code for the way I am showing the child and
    changing the tint.

    Thanks for the tip. Now I remember... applying a color to a
    movie clip doesn't apply it to the final composition of all the
    children but to each child individually. I fixed it by creating the
    objects I wanted to display outside of the movieclip and just
    displaying them on top of it so they were technically separate but
    appear visually together.

  • How to hide a node with no children in ADF Tree after Search

    Hi,
    I have a tree component with Search in my screen.
    I followed http://www.jobinesh.com/2010/01/search-by-child-attributes-on-tree.html to implement search.
    Search is performing on the childnodes, once the search is done I am expanding all the nodes and displaying only the filtered records.
    my code to expand all the nodes :
    public void expandAllTreeNodes() {
    UIXTree tree = getGroupTree();
    RowKeySet disclosedRowKeys = new RowKeySetTreeImpl(true);
    CollectionModel model = (CollectionModel)tree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = treeBinding.getRootNodeBinding();
    List<JUCtrlHierNodeBinding> childNodes = nodeBinding.getChildren();
    if (childNodes != null) {
    for (JUCtrlHierNodeBinding _node : childNodes) {
    disclosedRowKeys.add(_node.getKeyPath());
    disclosedRowKeys.remove(_node.getKeyPath());
    tree.setDisclosedRowKeys(disclosedRowKeys);
    Now I want to hide the nodes which does not have children after search.
    how can I hide the node if _node.getChildren() is null.
    Could any one provide some inputs on this.
    Thanks,
    Swathi

    AE Basics
    Keyframe the mask path.

  • How do I hide my photos from my children who are registered to my account

    How do I hide my photos from my children who are registered on my account

    I am not sure of any privacy settings for photo share.
    The only option would be to not use photo share, but instead to use iCloud photo share, that way you can choose to share or not.

  • Is it possible to resize the children of a viewstack(coverflow)

    I am using a coverflow component which extends a viewstack: http://dougmccune.com/blog/2007/11/03/coverflow-flex-component/
    I can add children (canvas with an image)  fine by explicity setting the width and height of the canvas. Then i can align the children in the centre of the canvas.
    However if i specify a different size of canvas when adding a new child all the previosuly added children become unaligned.
    So is there any way to resize the children of a viewstack? Or does anyone have any other solutions?
    here is my add child code:
    var tmpchild:Canvas = new Canvas();
    //These can't be changed without un aligning other children already present in the viewstack
    tmpchild.height=170;
    tmpchild.width=170;
    var tmpimage:Image = new Image();                         
    tmpimage.source=imageSource;
    tmpimage.horizontalCenter=0;
    tmpimage.verticalCenter=0;
    tmpchild.addChild(tmpimage);
    tmpchild.verticalCenter = 0;
    coverflow.addChild(tmpchild);
    Thanks

    I don't believe so. Changing the parent container will directly effect the children of that container.

  • Filteredtreemodel, how to hide parent nodes if no children

    hi. i have surfed and read a lot of posts and topics here regarding filteredtreemodel. some i found hard to understand so i chose to use NiceGuy1's code from long ago since it's the easiest to understand.
    package test;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import java.util.ArrayList;
    import java.util.Enumeration;
    public class FilteredTreeModel extends DefaultTreeModel {
        // this hashmap gets the list of pdf files and the filter status
        private String filterText;
        private DefaultMutableTreeNode orig_root;
        public FilteredTreeModel(DefaultMutableTreeNode root) {
            super(root);
            orig_root = root;
        public void setFilterText(String s) {
            this.filterText = s;
            reload();
        public String getFilterText() {
            return this.filterText;
        @Override
        public Object getChild(Object parent, int index) {
            return getFilteredChildren(parent).get(index);
        @Override
        public int getChildCount(Object parent) {
            return getFilteredChildCount(parent);
        @Override
        public int getIndexOfChild(Object parent, Object child) {
            return getFilteredChildren(parent).indexOf(child);
        private int getFilteredChildCount(Object parent) {
            return getFilteredChildren(parent).size();
        private ArrayList<TreeNode> getFilteredChildren(Object parent) {
            ArrayList<TreeNode> filteredChildren = new ArrayList<TreeNode>();
            DefaultMutableTreeNode parentNode = null;
            parentNode = (DefaultMutableTreeNode)parent;
            for (Enumeration e=parentNode.children(); e.hasMoreElements();) {
                DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode) e.nextElement();
                DefaultMutableTreeNode dummy = null;
                  if (nextNode.children().hasMoreElements()) {
                      filteredChildren.add(nextNode);
                } else {
                    // if node is leaf node
                    if (filterText == null ) {
                        // add right away if no filter
                        filteredChildren.add(nextNode);
                    } else {
                        // if filter matches this leaf node, add it. if not, how to check if
                        // parent nodes have empty children and remove it.
            return filteredChildren;
    }i havent had luck the whole day trying to make this work. it seemed that once the filteredChildren.add() is called, it gets rendered to the treecellrenreder right away so if i wnat to remove the parents (in case it has no children based on the filter),the parent nodes will stay put in the jtree. any workaround? or ideas? i dont want to use a different defaulttreemodel for this. i want to avoid that because i have lots of nodes in my jtree.

    Looks like you need this:
    for (Enumeration e=parentNode.getFilteredChildren(); e.hasMoreElements();) Edit: okay, that was just a quick guess. Actually you're going to get into trouble if you try to recursively suppress nodes with no children. First you suppress all the leaf nodes (because they naturally don't have any children). Then you suppress all of their parents, because now they don't have any unsuppressed children. Then you suppress all of the parents' parents, because now they don't have any unsuppressed children... and so on until you only have the root left. So you need to refine that requirement.
    But I get what you're saying. I had to do a similar thing, only I didn't use a FilteredTreeModel, I just built the TreeModel based on a selection from another tree. It's ridiculously hard to do when you don't get the nodes in order from the database, too, but that's a different problem.

  • Customize Explorer View to Hide Folders with no Children

    Hello,
    Could someone point me in the right direction on how I would customize the Explorer view in Siebel to hide folders dynamically? Currently, for each account, all 4 folders are displayed (Accounts, Upward Affiliations, Downward Affiliations, Contact Affiliations). This gets to be a little busy with complex account hierarchies and would be easier for the user for example if there were no affiliations for the account, then the Upward & Downward affiliations folders would not appear.
    I have read the applet toggle approach on metalink, but that seems to pertain more to form fields then the inner-workings of the explorer view. Where else in Tools can I find additional places to customize Explorer view?
    Thanks!

    Unfortunately not.  PSE wasn't really designed for relying on folders for organizing your photos, and it has a number of bugs and design infelicities:
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_Folder_Location_view

  • Can I de-activate "private browsing" so my children cannot hide their browsing sessions?

    I would like to remove "Start Private Browsing" as an option on my computer. I want to have the ability to see all browsing activity that my kids might have. I don't want them to have the option to "shut off" the history-gathering feature.

    And these from''' Xircal''' -
    https://support.mozilla.com/en-US/questions/828454

  • SSRS 2008 Hide (+)/ (-) sign for collapse/ expand

    Hi everyone,
    I have report based on a cube and I have 5 level hierarchy which is expandable/ collapsable. However in the resultset there is data like:
    hier1                                      
    hier1 hier2                   
    hier1 hier2 hier3 hier4    
    etc.
    This is causing the report to expand empty hierarchy name line and in this case I would like to hide the expand/ collapse sign. I have played around with toggle before and I can make a certain level expanded or collapsed - I can not hide the sign (+/-).
    Any help on this will be very much appreciated
    Thank you in advance,
    Mari

    Hi Maria,
    I wrote a solution for hide the (+)/ (-) sign if the group has no children data in Reporting Services 2005, and it also available for 2008. Create an additional column next to the group header, set toggled item to be the cell in new column not the group header. After that, hide the additional column conditional =iif(Fields!details.Value is nothing,true,false)”. In this way, if there is no children data, you cannot see the additional column then you cannot expand the details.
    For more information, see:
    http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/563e6d9e-c824-4719-933e-37306a3b652f
    Hope this helps.
    Raymond

  • Is there a way to Hide data from Users in Cubes?

    Hello All,
    Is there a way that I can easily hide data from users. For instance, in the XYZ cube we have data loaded through the year 2005. Is there a way for me to still keep the data in the cube; however, just hide 2005 so when users go in they do not see the year 2005. I know we can set filters and then apply "none" on select members. But the disadvantage with this is the data at the top level shows up as No access and it is only when the users drill down will they be able to see the data. So instead is it possible to hide data with everything else just normal?
    Thanks,
    Ted.

    Celvin Kattookaran wrote:
    With MetaRead Year will show up as "No Access"/Missing for users. http://docs.oracle.com/cd/E12825_01/epm.111/esb_techref/frameset.htm?maxl_meta_read.htm
    Thanks for the reply Celvin, So I understand from the link you posted that when using metaread the data of the ancestors is hidden. However in our case Years data is not getting hidden.:)
    I think this is because Under years we have CY, LY-1, LY-2, LY-3,LY-4,LY-5,LY-6,LY-7 as children. However Only CY Consolidates to Year. So I create a metaread to include CY, LY, LY-1,LY-2,LY-3,LY-4,LY-5,LY-6 members and not LY-7. As a result my Year still includes data as CY is included in the metaread filter.
    So this tells me(please please correct me if am wrong) it is not a must like indicated in the technical reference that data will be missing/No Access for ancestors of the metaread members. Data will be shown as No Access/Missing for an ancestor only if the members the ancestors consolidate from are not included in the metaread! Please let me know if this is right. I have verified it on my end but I would like to know what you think as Tech Reference sounds like "if metaread read filter is used, ancestor data will be hidden" which is not true.
    Thanks,
    Ted.

  • Parent not clipping children in certain cases

    I've run into 2 different cases where clipping doesn't work.
    One I can produce a test case that reproduces the problem where
    another I have a program that is demostrating the problem, but I
    don't know why. I've found a hack that causes clipping to get
    turned back on, but I wanted to know if anyone else has encountered
    these problems. I'm surprised because clipping is such a basic
    neccessity, and easy to implement I'm confused as to why Flex is so
    buggy. Here is one way of reproducing my first clipping problem.
    Create two canvases one as a child of the other, and set a bottom
    constraint on the child.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Canvas backgroundColor="black" x="10" y="10"
    width="313" height="218" horizontalScrollPolicy="off"
    verticalScrollPolicy="off">
    <mx:Canvas id="c1" backgroundColor="blue" right="0"
    height="166" left="0" y="149"/>
    </mx:Canvas>
    <mx:Canvas backgroundColor="black" x="367" y="10"
    width="313" height="218" horizontalScrollPolicy="off"
    verticalScrollPolicy="off">
    <mx:Canvas id="c2" backgroundColor="red" height="166"
    bottom="-97" width="313" x="0"/>
    </mx:Canvas>
    </mx:Application>
    The above mxml will show clipping work (in blue), and
    clipping failing (in red). Turn off the use of bottom constraints
    and it will start working. I've filled a bug on the above code. I'd
    like to file another bug on the second one I've found, but I can't
    seem to boil it to down to a simple test cases.
    The next one I'm not sure why it's not clipping. I have a
    series of images being displayed on a Canvas in CD Coverflow in
    iTunes/iPhone like UI. The images will spill outside the container
    when they get larger than the parent. However, if I put another
    child whose bounds also spill outside the parent, and set
    visible="false" then clipping will start working and all children
    will be clipped properly.
    Any ideas why clipping is so flaky? Are there cases where
    this is by design?
    Charlie

    d9tech,
    It's definitely a bug. We need simplified test case that
    exhibits the bug so we can submit it to JIRA. There are several
    works arounds that you can do to get it to work. Including the one
    Peter provided in the form. You can see others here:
    http://bugs.adobe.com/jira/browse/SDK-13584
    I don't think this problem is related to this bug though as
    I'm not using bottom or right constraints in doing my layout. What
    you describe sounds very similar to what I was doing as well. If
    you post your some of your code it might help in working out a test
    case that we can provide to JIRA so the Flex engineers can fix it.
    My program is not that trivial so I wasn't going to post it, but if
    you have one that's simpler then I'd be up for helping you work out
    a test case.
    Thanks
    Charlie

  • Determine number of rows from javascript so I can hide if zero

    Hi All,
    Found a great article which I adapted to use the link on a report to delete a row in db and remove from table (without a refresh).
    It works great except I want the region to not display when there are no rows left.
    Currently it shows "No Data Found" but because the page does not submit the region does not hide.
    Here is the Java code:
    function ackMsg(p_this, p_empno) {
    // get the table row on which the user clicked
    var tr = $(p_this).closest('tr');
    // perform an asynchronous HTTP AJAX request using jQuery
    $.ajax({
    type: "POST",
    url: "wwv_flow.show",
    data: {
    p_flow_id: $('#pFlowId').val(),
    p_flow_step_id: $('#pFlowStepId').val(),
    p_instance: $('#pInstance').val(),
    x01: p_empno, // assign p_empno to the g_x01 global variable
    p_request: "APPLICATION_PROCESS=ack_message" // refer to the application process
    beforeSend: // executes while the AJAX call is being processed
    function() {
    // delete following HTML classes from the table row element
    // could be possibly theme dependent
    tr.removeClass('even');
    tr.removeClass('odd');
    // use jQuery's animate function to give the table row, and its children, a red background
    tr.children().hover(function() {
    tr.children().animate({'backgroundColor': '#00cc00'}, 300);
    }, function() {
    tr.children().animate({'backgroundColor': '#00cc00'}, 300);
    tr.children().animate({'backgroundColor': '#00cc00'}, 300);
    success: // to be called if the request succeeds
    function() {
    jQuery(p_this).trigger('apexrefresh');
    // jQuery has difficulties animating inline elements
    // that's why we wrap them in a div, which is a block element
    tr.children().wrapInner('<div>').children().fadeOut(400, function() {
    tr.remove(); // visually remove the row from the report
    I did some Googling to add the line ' jQuery(p_this).trigger('apexrefresh');' which refreshes just that report.
    What I think I need to do is add a check for number of rows left after the refresh then if = 0 do full page refresh to allow the region condition to hide it.
    Unfortunately after hours on Google I can't find how to check how many rows are in the table.
    PS the function is called from the link in the report like this onclick="ackMsg(this, #ACK#)"
    Please help
    AT
    Edited by: user1678248 on May 13, 2013 9:39 PM
    Edited by: user1678248 on May 13, 2013 9:40 PM

    1)
    When you set a column to hidden in a classic report using the method I described, it creates hidden form elements for that column.
    <tt><input type="hidden" name="f01" value="" id="f01_0002"></tt>
    You should inspect the source to figure out the name value.
    Since this belongs to the wwv_flow form, we can therefore get this data with: wwv_flow.f01
    Alternatively, you could have used the apex_item API to achieve the same result, which probably gives a bit better control.
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CHDBFHGA
    select apex_item.hidden(1, col) || col col
    from table
    Set that column to a standard report column so it doesn't escape the html.
    You can also reference the data in these fields using PL/SQL using the apex_application API:
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_app.htm#CHDGJBAB
    2)
    As above, setting the column to hidden creates hidden elements on the page. It is simply f01 because that is the only hidden field I would have on my page. With four reports on the page, you would need to be careful not to do the same on the other reports, as you would get inaccurate data. For each report, setting columns to hidden always starts with f01. In that, you would be best to use the apex_item API.
    I actually initially ran into this issue when i had a tabular form on the same page as a report with hidden fields, which was causing conflicts in the page processes.
    Hope it helps.

  • How to hide a tree node from the GUI but still keep it in the tree model?

    Hi, All
    I used a JTree in my project in which I have a DefaultTreeModel to store all the tree structure and a JTree show it on the screen. But for some reason, I want to hide some of the nodes from the user, but I don't want to remove them from the tree model because later on I still need to use them.
    I searched on the web, some people suggested method to hide the root node, but that's not appliable to my project because I want to hide some non-root nodes; Some people also suggested to collapse the parent node when there are child to hide, it is not appliable to me either, because there still some other childnodes (sibling of the node to hide) I want to show.
    How can I hide some of the tree node from the user? Thanks for any information.
    Linda

    Here's an example using a derivation of DefaultTreeModel that shows (or does not show) two types of Sneech (appologies to the good Dr Zeus) by overiding two methods on the model.
    Now, there are many things wrong with this example (using instanceof, for example), but it's pretty tight and shows one way of doing what you want.
    Note: to make it useful, you''d have to change the implementation of setShowStarBelliedSneeches() to do something more sophisticated than simply firing a structure change event on the root node. You'd want to find all the star bellied sneech nodes and call fireTreeNodesRemoved(). That way the tree would stay expanded rather than collapse as it does now.
    import javax.swing.JTree;
    import javax.swing.JScrollPane;
    import javax.swing.JOptionPane;
    import javax.swing.JCheckBox;
    import javax.swing.JPanel;
    import javax.swing.tree.TreePath;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.DefaultMutableTreeNode;
    import java.awt.Dimension;
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Enumeration;
    class FilteredTree
         private class PlainBelliedSneech {
              public String toString() { return "Plain Bellied Sneech"; }
         private class StarBelliedSneech {
              public String toString() { return "Star Bellied Sneech"; }
         private class FilteredTreeModel
              extends DefaultTreeModel
              private boolean mShowStarBelliedSneeches= true;
              private DefaultMutableTreeNode mRoot;
              FilteredTreeModel(DefaultMutableTreeNode root)
                   super(root);
                   mRoot= root;
              public Object getChild(Object parent, int index)
                   DefaultMutableTreeNode node=
                        (DefaultMutableTreeNode) parent;
                   if (mShowStarBelliedSneeches)
                        return node.getChildAt(index);
                   int pos= 0;
                   for (int i= 0, cnt= 0; i< node.getChildCount(); i++) {
                        if (((DefaultMutableTreeNode) node.getChildAt(i)).getUserObject()
                                            instanceof PlainBelliedSneech)
                             if (cnt++ == index) {
                                  pos= i;
                                  break;
                   return node.getChildAt(pos);
              public int getChildCount(Object parent)
                   DefaultMutableTreeNode node=
                        (DefaultMutableTreeNode) parent;
                   if (mShowStarBelliedSneeches)
                        return node.getChildCount();
                   int childCount= 0;
                   Enumeration children= node.children();
                   while (children.hasMoreElements()) {
                        if (((DefaultMutableTreeNode) children.nextElement()).getUserObject()
                                            instanceof PlainBelliedSneech)
                             childCount++;
                   return childCount;
              public boolean getShowStarBelliedSneeches() {
                   return mShowStarBelliedSneeches;
              public void setShowStarBelliedSneeches(boolean showStarBelliedSneeches)
                   if (showStarBelliedSneeches != mShowStarBelliedSneeches) {
                        mShowStarBelliedSneeches= showStarBelliedSneeches;
                        Object[] path= { mRoot };
                        int[] childIndices= new int[root.getChildCount()];
                        Object[] children= new Object[root.getChildCount()];
                        for (int i= 0; i< root.getChildCount(); i++) {
                             childIndices= i;
                             children[i]= root.getChildAt(i);
                        fireTreeStructureChanged(this, path, childIndices, children);
         private FilteredTree()
              final DefaultMutableTreeNode root= new DefaultMutableTreeNode("Root");
              DefaultMutableTreeNode parent;
              DefaultMutableTreeNode child;
              for (int i= 0; i< 2; i++) {
                   parent= new DefaultMutableTreeNode(new PlainBelliedSneech());
                   root.add(parent);
                   for (int j= 0; j< 2; j++) {
                        child= new DefaultMutableTreeNode(new StarBelliedSneech());
                        parent.add(child);
                        for (int k= 0; k< 2; k++)
                             child.add(new DefaultMutableTreeNode(new PlainBelliedSneech()));
                   for (int j= 0; j< 2; j++)
                        parent.add(new DefaultMutableTreeNode(new PlainBelliedSneech()));
                   parent= new DefaultMutableTreeNode(new StarBelliedSneech());
                   root.add(parent);
                   for (int j= 0; j< 2; j++) {
                        child= new DefaultMutableTreeNode(new PlainBelliedSneech());
                        parent.add(child);
                        for (int k= 0; k< 2; k++)
                             child.add(new DefaultMutableTreeNode(new StarBelliedSneech()));
                   for (int j= 0; j< 2; j++)
                        parent.add(new DefaultMutableTreeNode(new StarBelliedSneech()));
              final FilteredTreeModel model= new FilteredTreeModel(root);
              JTree tree= new JTree(model);
    tree.setShowsRootHandles(true);
    tree.putClientProperty("JTree.lineStyle", "Angled");
              tree.setRootVisible(false);
              JScrollPane sp= new JScrollPane(tree);
              sp.setPreferredSize(new Dimension(200,400));
              final JCheckBox check= new JCheckBox("Show Star Bellied Sneeches");
              check.setSelected(model.getShowStarBelliedSneeches());
              check.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        model.setShowStarBelliedSneeches(check.isSelected());
              JPanel panel= new JPanel(new BorderLayout());
              panel.add(check, BorderLayout.NORTH);
              panel.add(sp, BorderLayout.CENTER);
              JOptionPane.showOptionDialog(
                   null, panel, "Sneeches on Beeches",
                   JOptionPane.DEFAULT_OPTION,
                   JOptionPane.PLAIN_MESSAGE,
                   null, new String[0], null
              System.exit(0);
         public static void main(String[] argv) {
              new FilteredTree();

  • How to Hide real path ??

    Hi
    Friends
    Sorry for duplication post. because in previous thread i can't edit it
    and code formatting is remains.
    sorry for that.
    see the following problem
    ====================
    I have make File Upload Successfully using
    dirName =servletContext.getRealPath("/uploads/");  
          File f = new File(dirName);
          if(!f.exists()){f.mkdirs();}
          out.println("<br>");
          saveTo = new File(dirName+"\\"+fileName);Since it is uploaded successfully.
    Now i navigate all uploaded files from perticular folder.
    and want to download that file.
    when i am using following code :
    // LISTING FILES IN DIR
            out.println("<br>");
            File dir = new File(dirName);
            String[] children = dir.list();
                 if (children == null)
            // Either dir does not exist or is not a directory
                 else
                    %>
                    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="68%" id="AutoNumber1">
                    <tr>
                        <td width="50%" align="center"><font face="Verdana">File</font></td>
                        <td width="50%" align="center"><font face="Verdana">Action</font></td>
                          </tr>   
                        <%
                        for (int i=0; i<children.length; i++)
                        // Get filename of file or directory
                        String filename = children;
    //out.println(filename);
    %>
    <tr>
    <td width="50%">
    <p align="center"><font face="Verdana"><%=filename %></font></td>
    <td width="50%">
    <p align="center"><font face="Verdana"><a href="<%=saveTo %>">View</a></font></td>
    </tr>
    <%
    out.println("<br>");
    %>
    it showing real path on link when i do mouseOver on it.
    So i want to hide the real path and want to download that file.
    since i am not using any database for this. it is just a prototype i m making.
    Can u help me to hide the actual path and we can download that file
    by clicking that perticular file.
    Thanks in advance.

    Hi, friend
    Might u not still understand me yet.
    actual problem is what i want to tell is :
    following is my structure :
    file1.pdf      view
    pic1.jpg      view
    pic3.jpg      view
    rom.pdf      viewwhen i mouseOver on view of pic1.jpg it displayed the
    link path in status bar : C:\name\JavaProg\webFUpload\build\web\uploads\pic1.jpg
    but i want it should be : \webFUpload\build\web\uploads\pic1.jpg
    and this is prototype only so i am not using any database.
    just to display files from folder. ( that is /uploads)
    2) second problem is :
    when i mouseOver on other link like view of rom.pdf
    it will display path of last uploaded file only that is
    file1.pdf
    and i m still unable to download it.
    please give me proper way to download file in JSP.
    Thanks

  • Hide the 'Show All' option in Region Selector

    Hi there,
    I just searched this forum and came to know that we can hide the show all option in region selector using jQuery as suggested by VC.
    $('ul[id$="_RDS"]').children('li').each(function(i, e){
    if ($(e).text()=='My Tab') {
    $(e).find('a').click();
    Any idea where this jQuery needs to be inserted?
    thanks.
    Sun

    Hi VC,
    <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%"><div class="apex-rds-container"><ul id="3388023453317532_RDS" class="apex-rds"><li class="apex-rds-first apex-rds-selected"><a href="#SHOW_ALL"><span>Show All</span></a></li><li><a href="#R3065313453780541"><span> MASTER DATA</span></a></li><li class="apex-rds-last"><a href="#R3375830763272358"><span>Edit  Data Dump</span></a></li></ul></div><div class="rounded-corner-region" id="R3065313453780541" >
      <div class="rc-gray-top"><div class="rc-gray-top-r">
        <div class="rc-title"> MASTER DATA<a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:374:132::::P374_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:30653,129,1');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></div>
      </div></div>
      <div class="rc-body"><div class="rc-body-r">
    <div class="rc-content-buttons"><button value="Reset" onclick="apex.submit('RESET');" class="button-default" type="button"  id="B3068426845780551">
      <span>Reset</span>Anything specific that you want me to paste? Lots of content in the actual HTML source.
    thanks,
    Sun
    Edited by: sun1977 on May 29, 2012 5:50 AM

Maybe you are looking for

  • ITunes could not copy ''file'' because the file could not be written

    Recently, I have been experiencing some problems with iTunes and my iPad 2. Whenever I try to sync movies into my iPad, I get the error message ''iTunes could not copy ''file'' because the file could not be written''. This message always appears when

  • Reg : Sequencing Microfocus RUMBA 9.1 using App-V 5.0

    I have sequenced Microfocus RUMBA 9.1 application using App-V 5.0. After installing the sequbneced package in the client machine , In one of the shortcut there is an option to configure TCP/IP server . when i click on configure i am getting an error

  • Create two identical idocs from one input file with BPM

    Hello all . My issue is the following. I have a scenario where an input file is mapped to an IDOC . The problem is that i need to create a second - almost identical - mapping to the same IDOC type and when the input file is receive both of them shoul

  • Missing Settings on 3GS

    Today i was asked by my girlfriends aunt to help restore and update her 3GS to 4.1. After doing so, i helped set up some settings and noticed that the battery percent option is not there! Also the option of putting wallpaper on Lock/home is also miss

  • Video changes after applying text track

    Has anyone here seen this problem. I work for education, so by federal law we must caption all video used by students. The problem I'm encountering is that when I apply a text track to a QT file, so that it is captioned, it changes the video track, s