How make the visible context for nodes in the level menu gave treeTable?

Hello

I use JDeveloper 11 g 10.1.1.4

I have a TreeTable component with 4 different levels (Contry-branch-city-object).
I need to show the custom menu contextual (right-click the Muse) items only for lines with 'object '.
Now, I do it with the help of the "visible" property
            <af:commandMenuItem text="Open" id="cmi1" immediate="true"
                                visible="#{backingBeanScope.mbMObjectsRegistry.MObjectNode}"
                                actionListener="#{backingBeanScope.mbMObjectsRegistry.btOpenMObject}"/>
    public boolean isMObjectNode() {
        Object oldRowKey = treeTableMObjectsRegistry.getRowKey();
        try {
            AppViewRowImpl row =
                BindingUtils.getSelectedRowTreeTable(treeTableMObjectsRegistry);
            if (row == null || !isMOBjectRow(row)) {
                return false;
            }
            return isMOBjectRow(row);
        } finally {
            treeTableMObjectsRegistry.setRowKey(oldRowKey);
        }
    }

    private boolean isMOBjectRow(AppViewRowImpl row) {
        return (row != null) && (row instanceof MObjectsRegisterMORowImpl);
    }
It works, but the problem is that it works a little more slow, particularly if I have 5 or more menu items.
Each menu item called the isMObjectNode() metod 3 times by opening the menu.

The question is: maybe, there is a method to calculate the level of the selected node? Or there is another variant?

Anatolii

The following example allows you to develop your usecase.
Here, we would show the menu items only for the nodes of level 3.

You can also download all of the POJO from sample to
http://adfsampleapplications.googlecode.com/svn/trunk/TreeSampleApplication.zip

The code is self-explanatory.
Let know, if you have any specific questions.



selectionListener = "#{bindings.continents.treeModel.makeCurrent} '"
rowSelection = "single" id = "tt1" columnStretching = "last" >








**
**
*
* to = "#{pageFlowScope.CurrentDepth}" *.
* Type = "popupFetch" / >. *
**
*
* visible = "#{pageFlowScope.CurrentDepth == 2? true: false}" / > * "
*
* visible = "#{pageFlowScope.CurrentDepth == 2? true: false}" / > * "
*
*
*
*
*
*

Thank you
Nini

Tags: Java

Similar Questions

  • How can I make the start menu bigger?

    How can I make the start menu bigger? GO BROWNS!

    What do you mean largest? More Articles?

    If so, right click on the ORB start and select Properties.

    Click Customize, and then down, to increase the number of programs to display.

  • How make the USB auto-ouvrir its Nav Pane folder when I plug. Vista for this? __

    In the Navigation pane (what I call the directory root - no?), when I plug a USB key, I have to click on the folder "Computer" to open it, then the folder of USB stick to open that in order to be able to drag files from the hard drive to the files inside. The bookmarks bar is useless, it's just a subfolder in the "Favourites", just as boring the USB folder and is not yet open USB folder in the Nav pane. I can't find a way to make the USB auto-ouvrir its Nav Pane folder when I plug. Vista can do this?

    This is a Windows update that addresses the functionality of Autorun.  I don't know if it can solve your problem, but it can facilitate some of the following solutions or allow them to work if Vista is up to data: http://support.microsoft.com/kb/971029.

    Here's how to use Autorun with a USB Flash drive that can solve your problem (but it is a bit Advanced): http://www.samlogic.net/articles/autorun-usb-flash-drive.htm.

    Here is a free download which probably fix the AutoPlay in Vista and XP (when I insert my flash drive, a menu popss send me the optios including by studying the disk and when you click it it starts at the root of the drive, and I think that should happen with your USB key as well). http://www.mydigitallife.info/2008/01/15/cleanhandlers-free-download-autoplay-cleanup-utility-for-xp-and-vista/.  I don't know if this will help, but it may solve the problem.

    Here is another article with a procedure of activation autorum for USB drives.  I think you want to insert explorer.exe as filename to open Windows Explorer. http://www.pctipsbox.com/how-to-autorun-programs-from-usb-flash-drive/.

    Here's yet another article on how to set up automatic execution for a USB key: http://www.dailycupoftech.com/usb-drive-autoruninf-tweaking/.

    I hope that one or more of these items helps solve your problem and allow you to do what you want to do with the USB.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I make a visible folder for users of other computers

    I made a folder I want to keep some incoming e-mails, but it is not visible to the other users who can access the primary e-mail account. In addition, if changes are made to emails in the first account by a user, it does not affect other views of computer stations. by example, if I delete or move a file, it is only deleted or moved at my station. How can I get all the changes to be visible and synchronized, since we are all synchronized to RECEIVE e-mail to the primary e-mail address.

    Rita

    There must be a folder on the mail server and all associated items must have their set email client for IMAP for this account. Your email provider must support the IMAP protocol also.

  • How make the taskbar appear while I am in a browser?

    I love seeing the taskbar, while I am browsing in Firefox and it has always been there until a few days ago, he has simply disappeared.  It's there on the desk, and he said the toolbar is locked, but when I go in Firefox there is no taskbar at the bottom.  Flying over the bottom of the screen of my slider does nothing to pull up.  What should I do?

    Right-click on the taskbar and select Properties.

    Check that "as the taskbar above other windows " is checked.

    Microsoft® Security MVP, 2004-2009

  • With the help of first to make the DVD menu

    I've been tinkering with Premiere Pro CS4 to make some videos for my site web and who's who. Now, I would like to try my hand at creating a watchable DVD TV. First stupid question... What do I need to make a menu?

    My 'film' will be the three parts each part with many clips. I would like the user to be able to 'play together' or select one of the three categories, play fair (category) or open it and allow individual choices.  (my film will be a selection of old ~ 1960 ish converted 8mm film)

    That... any of the CS4 suite of programs can create such a menu or I need to get some more software? ... recommendations...?

    Thanks for your time

    Ralph

    Go to the forum still help again

    I also find it very helpful to read the Forum again. Most of the problems were settled there, already. At the same time (before the passage of the forum), I read every article in there. By the way, I got. Lots of good advice, "solutions and workarounds.

    Hunt

  • Qosmio X 70-A-K2S-how do to the BIOS menu?

    Hello!

    I have a Qosmio laptop X 70-A-K2S.
    I want to replace one of the hard drives on the SSD.

    How do the BIOS menu?
    Recommendations in the manual (reboot and release "F2" during 1 second) do not help.

    I can't do any menu of the BIOS or BOOT menu.
    But easily fall into recovery menu by pressing '0 '.

    > Do not help the recommendations in the manual (reboot and release "F2" during 1 second)
    Sure it's good is winning 8 preinstalled?

    This is probably the reason why you cannot access the BIOS.
    Windows 8 stop not Notepad by default but it run hybrid closed.
    This will start the laptop much faster, but as I said, it prevents access to the BIOS.

    Have a look here how to do closing down on 8 Windows preinstalled laptop:
    [Perform a complete shutdown in Windows 8 | http://aps2.toshiba-tro.de/kb0/TSB2B03EY0002R01.htm]

    Welcome them

  • Change the start menu of windows 7 to look like XP

    Hey there, can someone tell me how to make the start menu in windows 7 look and works as the XP menu start. He drives me crazy I'm not I could do it in Vista, but not 7

    Hi Boopgirl,

    If you are referring to the menu classic start, so here's an alternative of third parties who use a lot of people.

    Official site of CSMenu:
    http://www.csmenu.com/

    CSMenu is a small application that works like the classic Start menu. It is designed for Windows 7, which does not have a start menu classic. Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

    I just follow this suggestion qnd it is ACE, thank you very much. I really don't like restrictions on the Organization and navigation of the new start menu and it's true that I was disappointed 7 did not have the ability to switch to the classic, as they did with Vista.
    But this little app is great and it looks even better than the original with its background of transparency.

  • Wireless network is displayed with a cross and will not let me connect saying the settings for this network do not match the requirements of the networs and it is a hidden network how to make it visible again?

    hardware device

    my wireless network is displayed with a cross and will not let me connect saying settings for this network do not match the requirements of the networs and it is a hidden network how to make it visible again :(

    Hello

    What operating system installed on the computer?

    Note: Look for errors in the network card device manager.

    Method 1: Follow the article mentioned below, if you are using Windows 7 operating system.

    Using the troubleshooter from network in Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    Method 2:

    He looks at the IP address and other parameters are not set correctly, I suggest you contact your Internet service provider or provider router wireless to help on this.

    For more information, follow the below mentioned article:

    Set up a wireless router:

    http://Windows.Microsoft.com/en-us/Windows7/set-up-a-wireless-router

    Follow the below mentioned articles and see if they help you:

    Set up a wireless network:

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-wireless-network

    Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Wireless network card: frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows7/wireless-networking-frequently-asked-questions

  • How to make non-visible control on the Front Panel appear at Design time?

    I have a few controls on the front whose visibility is changed (on or off) at run time. The problem is that if I stop the Run time, the visibility of the control remains in the running in design mode state. So I am not able to see or find the control to make changes in design mode.

    How can I make all the visible front-panel controls, or find and make it visible to a control on the front whose visibility has False?

    Thank you.

    It is documented in the help of LabVIEW.

    Hidden front panel display


    Perform the following steps to display a hidden front control or indicator. You can also hide the indicators and controls on the front panel.

    1. Find the terminal block schema for the object. "If you have multiple devices with the same type of data, right click on the terminals and select visible elements" Label in the context menu. Find the object with the label that corresponds to the object hidden façade.

    2. Right-click in the Terminal, and then select Show Control context menu if the object is a control or indicator to show if the object is an indicator.

    You can also use the Visible property to display the controls and indicators by program.

    You can also view all hidden front panel controls and indicators.

    Path: Fundamentals-> build the façade-> how-to--> configure the objects-> display on front panel of the façade hidden object.

  • How to make the address book to be visible?

    The addresses appear in the emails when I type the name or part of it, as usual, so the address book must always be present in the program, but when I click on the button for the address book, it does not appear. An address book empty giving me the possibility to create a new contact or new address books is displayed instead. This happened on the last updated to 4.5.1 and I've just updated to 4.5.2 but no change. How can I make my visible address books?

    Thanks to those who have begun to offer assistance. I'm sorry that you were unable to complete the task. I discovered what it was! An add-on, I think it was: 'Change font size & theme 49.6', what people with disabilities allowed me to see the address books.

  • How can we make a visible element on the screen based on the selection of an existing menu in the same screen

    February 2015 release OPA

    How can we make a visible element on the screen based on the selection of an existing menu in the same screen.

    I have a list box and a text box in the same screen.

    I have a visibility rule on the text box saying that it is only available for one of the selection in the menu dropdown.

    problem is now unless I hit the button next to the screen and return to the original screen the text box does not appear.

    Is there a solution to more to come this problem.

    Please help me

    The feature you describe is called "dynamic visibility" (http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy%20Modeling%20User%20Guide/Interviews/Screens/Add_questions_to_screens.htm#Dynamic). It allows to control the visibility of another article on the same screen, without writing a separate rule of visibility and click on Submit.

    Using out-of-the-box functionality, you can have dynamic visibility based on Boolean values and value lists (but not regular drop-down lists).

    The example in the February 2015 User Guide based on a Boolean value on the same screen. See slide 27 of the bridge-features and benefits for an example of what it looks like to a list of value: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf

    If you are wondering what is a list of values, see here: http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy Modeling User Guide/Value_lists/What_is_a_value_list.htm

    See you soon,.

    Jasmine

  • How to make visible = true for an inputText on a lov

    Hi Experts,

    JDeveloper 11.1.1.4.0.

    I have 2 lovs and an inputtext. The lov is 2 separate vo as the inputtext don't based on all OV my requirement is that if lov2 is OTHER the inputText should be visible. I have this in the LOV2 valuechangeListener.

    But in a scenario, it fails. The lov 2 are distinct from the vo when I select the value of lov1, in the changelistener value, I will put the value of vo2 bindvariable lov2. But suppose that if the default value in some cases of lov2 is 'OTHER', in this scenario the valuechangelistener for lov2 does not fire and inputText is still visible = false. THEN please suggest how I can make as visible inputText = true.

    I already AutoSubmit = true for all components.

    Thank you

    Roy

    It is not a good practice, but it will work for you

    As long as your bean's request or endossage bean, it is a good practice. All you HAV to do is to read the values in the selection of the LOV each time in the Get accessor of the Boolean value

    as

    getter for the visible flag of inputtext

    public boolean isITVisable() {}

    Get ServlerContexct

    FacesContext ctx = FacesContext.getCurrentInstance (); ServletContext servletContext = ctx.getExternalContext () .getContext () (ServletContext);

    get the link container

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    get a definitions page ADF ADF attributevalue

    AttributeBinding attr = (AttributeBinding) bindings.getControlBinding ("Departments1");

    String val1 = (String) sttr.getInputValue ();

    AttributeBinding attr2 = (AttributeBinding) bindings.getControlBinding ("Departments2");

    String val2 = (String) attr2.getInputVlaue ();

    Boolean result = false;

    If ("OTHER".equals (val1) & "OTHER".equals (val2)) {}

    result = true;

    } else {}

    result = false;

    }

    return the result;

    }

    Timo

  • How to make a visible line in the background object?

    Hello

    I have a new for Adobe products, lately I've been experience the same problem with the visibility of the object.

    On the left, I used the line tool to draw an additional line to add features, I think it should be a better way to make objects of the visible background. On the right is how the subject looked before. What other ways to make the lines visible without drawing?

    Enjoy

    Screen Shot 2015-12-05 at 7.21.52 PM.png

    The top image is made with objects that have a fill and stroke. Filling blocks the features below. The bottom image is done with suddenly, then grouped objects (Cmd (Ctrl) g). The appearance panel shows the new filling added to group objects and settles below the content.

  • How to make the handles visible direct selection on the pasteboard?

    When I go to for transformation/resize images within frames using direct Selection, I don't see the handles of the image because they are white against a white cardboard.  I use InDesign CS5 (ver 7.0.4) on a Mac. I've been using InDesign for a few years and never noticed that it was a problem; all of a sudden, the handles seem invisble. I don't remember what the color scheme was before. (Maybe I'll lose my mind). The colors did not alter an update? There is an option in the preferences to choose the color of the pasteboard, but this does not seem to have any effect. In the meantime, I can't find the handles to resize/convert images. I can enter a percentage to scale, but it is sometimes useful. How to make the handles visible direct selection on the pasteboard?

    If you're talking about the color of a path and its handles, which is dependent on the color of the layer selection. Go to the layers panel. Double-click the currently selected schema and change the selection to something darker color.

Maybe you are looking for