Tree like menu

Hello frds,
I am have to develop Tree like menu in Midlet.. can any one have idea abt . plz share sample code fo rit if posible
looking for early response
Ashish

You can make a Branch class, stored in an array. The branches each store other branches or menu items, a boolean flag could be used to indicate the difference.
Class Branch {
   Branch subbranch[];
   String menuItems[];
   boolean ItemOrTree;
   void click(int idx) {
      if (ItemOrTree) {
          /// item
          doMenuItem(menuItem[idx]);
      else {
         subbranch[idx].open();
}

Similar Messages

  • Outlook like menu in apex

    Hi,
    How could i make an outlook like menu in apex i.e. buttons/images as the main menu selections and onclick a tree
    is populated. (Can the tree be visible when i click, say on first button and invisible for the other buttons while a new
    tree is created/displayed when i click on another button )
    Best Regards,
    /costas

    Hi,
    You would have to ask Denes for access to see behind the scenes as it's his site.
    One thing you could look at would be the Issue Tracker or Online Store sample applications: http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html
    These looks fairly similar to what you want to do and you can download them and install them locally or onto your own OTN workspace to see how they are designed.
    Andy

  • Access rights in case of a tree-like structure, with inheritance

    Hello,
    the project I've just started to work on should include an easy way (from the user's point of view) to grant/revoke access rights on a tree-like structure with inheritance.
    Basically we are working for several international companies who want to use our application to watch/manage some of their web projects - each project belongs to one company and consisting of several 'campaigns' in several countries (there can be several campaigns per country, but each campaign belongs to exactly one country).
    From our point of view this is a tree-like structure, with a 'root' node at the top level, 'companies' at the first level, 'countries' at the second level, 'campaigns' at the third level, and modules of our application (for example a module to display overall stats of the campaing, and so on) at the fourth level. There could be (and probably will be) some more levels, but that's not important at this point - it will always be a tree-like structure.
    The customer's reqirements are natural - the administrators should be able to grant/revoke access to 'subtrees' of this structure. For example the top managers should be able to see all the data related to their company, the local managers should be able to see all the data related to their company in the country they work in, etc. On the other hand the relular employees should not see some of the modules (with details about clients of the company).
    I wonder whether this can be solved using JAAS in an elegant and flexible manner - from the documents / whitepapers / tutorials I've seen till now it seems to me it seems to me not too suitable.
    All the data will be stored in relational database (Oracle, and in some cases PostgreSQL), and it would be nice to have the access rights stored in the same way (but it's not required). We have some ideas how to solve that using a single table containing paths in the tree, but at this point it's only an idea (not a single line of code written).
    We are sure somebody has already to solve such a problem - maybe using JAAS, maybe some other technology - and we don't want to reinvent a wheel. Do you have an idea how to solve this (using JAAS or something else)?

    Well, I forgot to explain what the 'inheritance' means ...
    We do not want to set the access right on each node of the tree - we prefer (as well as the users) to set/store only as much information as needed. We'd like the nodes to inherit the access rights from their parent nodes. For example we'd like granting access to particular project to mean granting access to all campaigns in all countries (related to the project), without the need to set and store these rights for each of the campaigns/countries.

  • Generation of tree like GUI

    Hey guys,
    I need to create a GUI which looks something like the left side content section of this webpage. If I click on the + sign I can see more topics that are there in that items.
    http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac00490_.htm
    Can anybody tell me which java API library should I use in order to create that tree like structure.
    Thanks.

    You can do that in Swing with JTree

  • Best way to implement tree like subcategory chooser in GUI on iphone

    I need to let user choose subcategory, from a tree like structure, 3-4 level deep.
    and the list is veeeery long. I was wondering what would be the best way to show it to user, and let him choose one.
    ideas ?

    The right solution here is probably a set of UITableViewController subclasses inside a UINavigationController that your application presents modally. If the lists are long even within a level, sort and group them alphabetically and present an index list along the side, the way Contacts does. You should be able to do all this with just a few UITableViewDelegate/DataSource methods.

  • Tree Like structures

    Dear All,
    I am working on some tree like structures querys.
    I am strucked up with one tricky concept.
    My Data is like as given below
    EMPNO MGR
    1
    2 1
    3 1
    4 2
    5 4
    Now my requirement states that I should display the date as given below
    1
    1 2
    1 2 4
    1 2 4 5
    Can anyone help me in designing a query.
    Appreciate your help on this.
    Thanks,
    Madhu K.

    If more levels are there then it should populate under different columns like col5 ..... That's fine, that's how it will work.
    There are only 4 levels above because that's just how the sample data is.
    1 2 3 4You'd think people could give suggestions that get you over the hard bit and then you do some work for anything that's not exactly right.
    SQL> ed
    Wrote file afiedt.buf
      1  WITH DATA AS(
      2   SELECT 1 a,0 b FROM dual UNION
      3   SELECT 2,1 FROM dual UNION
      4   SELECT 3,1 FROM dual UNION
      5   SELECT 4,2 FROM dual UNION
      6   SELECT 5,4 FROM dual UNION
      7   SELECT 6,5 FROM dual
      8  )
      9  SELECT SUBSTR(SYS_CONNECT_BY_PATH (a,' '),2) scbp
    10  FROM DATA
    11  CONNECT BY PRIOR a=b
    12  START WITH a=1
    13* ORDER BY 1
    SQL> /
    SCBP
    1
    1 2
    1 2 4
    1 2 4 5
    1 2 4 5 6
    1 3
    6 rows selected.
    SQL>

  • Tree-like representation of interdependent hierarchy elements?

    Hi all,
    I'd like to know if anyone has experience/ideas in how to represent/report for instance the operational readiness of a plant and it's production lines as a 'dynamic hierarchy'?
    By dynamic hierarchy I mean that the operational status of the upper nodes, e.g. a plant, would be affected by the lower level nodes statuses i.e. depending on the criticality of a production lines operational status for the plant it self, a operational status
    of lets say 25%(production line or machine) would turn the status of the upper level node(plant) to red or yellow.
    This tree-like representation would look like something similar to this Value Driver Tree with a top-down representation and color coding for each nodes operational status, be it inherited or not:
    http://help.sap.com/saphelp_sem60/helpdata/en/df/a18539826a7333e10000000a114084/content.htm
    Style:
    http://www.businessobjects.com/global/images/products/performance_manager/performance_manager_strategy_maps.jpg
    Could this be accomplished easiest with VDT(?), the usual reporting tools or perhaps Visual Composer?
    This might be easier in xApps(xMII etc) but any help on how to do this with 2004 or 2004s would be much appreciated.
    Best regards,
    Janne

    Yes there is a problem writing tags to the JSP.
    JSPs/Servlets are meant to generate HTML.
    Generating JSP tags at runtime will just print them out as part of the HTML stream - it won't evaluate them.
    Remember that a JSP page gets compiled into a servlet. This process translates the JSP tags into java code. Generating JSP tags at runtime is something that will just not work, because the translation process is already complete.
    Only way to do it (nasty hack) is as you said, is to write the code to a jsp file, and then let the container translate/compile and execute that jsp as a jsp:include in your original one. Not very nice.
    Best solution would be to see if you could modify/adapt your custom tags to java objects.
    good luck,
    evnafets

  • How to display grouped tracks tree-like?

    I imported lots of classical CDs and I grouped some works using the 'Grouping' field of the song information dialog. The grouping I added appears in the column 'Grouping' , but however, I'd like to have the groupings displayed in a tree-like structure. I know iTunes can do that, because I have seen it in the music store (on some classical CDs).
    Unfortunately, the help files and FAQs don't tell a lot about grouping.
    How can I enable the tree-like display of groupings in my library?
    FYI: I am using iTunes 6.0.1 on Mac OS X 10.0.3
    Thanks for any help
    Michael

    I'd like to have the groupings displayed in a tree-like structure. I know iTunes can do that, because I have seen it in the music store (on some classical CDs).
    Ohh! That would be Folder Structure then. A useful feature in other circumstances of running tracks together while in Party Shuffle or Shuffling a list. iTMS can obviously do it, but apparently not iTunes.
    Suggest you log a request at http://www.apple.com/feedback/itunes.html
    Grouping seems another way of making a regular or smart playlist, but would not affect how those songs get displayed in viewing the library. The word "grouping" gives the impression of doing somethiing more I think.

  • Looking for tree like left navigation

    Has anyone implemented a navigation that would be like the windows file explorer folder tree.
    I want my navigation to be collapsable, indented and tree like
    Example
    Community 1Community 2 page 1 page 2 sub community 1 sub community 2 sub page 1 sub page 2Community 3...

    Thanks Yoav - FYI - we've been working on putting together a full function demo version (with time expiry) of the explorer (and suite)- so, starting from early next week we should have a version that you can install in your own environment and have a play with without having to fork out the dollars!
    Let me know if you'd like a copy.
    On the other hand - it sounds like the question is actually about a nav, rather than a portlet?
    Regards
    Steve HayrCollaborative Technologies+61 2 9409 [email protected]

  • Zip a tree like file structure in memory

    Hi all guys...
    How can I create a tree like file structure in memory (without using the disk at all) and than zip it send it out as an http servlet response?
    I think its easier if I break it down to 2 separated problems: file structure in memory and zipping those bytes.
    thanks

    You can use a ByteArrayOutputStream but it will scale very very badly. What will happen if you get 100 concurrent users all wanting to allocate memory for the Zip file?

  • Tree like report

    I have a view which returns holding data in a parent-child hierarchy.
    holding
    instrument_id
    parent_instrument id
    level
    I looked at creating hierarchy and go through “Connect By” example from the Admin manual, but it seems like I already have parent/child structure returned from my DB View.
    How can I create a tree like report? Is it possible?
    Deepak

    Hi,
    If you have the tree level in your report you can create a tree like report by using the LPAD function to add spaces in front of your data. eg.
    LPAD('   ', '   ', (level-1)*3)||instrument_idHope that helps,
    Rod West

  • Tree like structure ??????????? pls help

    Hello
    I want to get the tree like structure
    My requirement is that when I write any jsp and put it in webapps's any
    folder I should get tree like structure of the folders in which I am putting my jsp.
    Foe example I have structure like
    webapps
    --rakesh_folder1
    --rakesh_folder2
    --rakesh_folder3
    ---rakesh_subfolder1
    ---rakesh_subfolder2
    ----(Here goes my jsp which would make to get sructure)
    ----my_other_file_1
    ----my_other_file_2
    When I type http://localhost:8080/rakesh_folder3/rakesh_subfolder2/jspname
    I want output as
    --rakesh_folder3
    ---rakesh_subfolder2
    ----my_other_file_1 (size of file) (time stamp)
    ----my_other_file_2 (size of file) (time stamp)
    How should I proceed ????????????????????
    Tx in advance
    Rakesh

    rakesh,
    see if you have tree structure like this
    C:\
    Vivek
    Rakesh
    then C:\ is the root from where you are starting.
    so just
    <html>
    <body>
    C:\
    &ampnbsp;&ampnbsp;&ampnbsp;Vivek
    &ampnbsp;&ampnbsp;&ampnbsp;Rakesh
    </body>
    </html>

  • Tree Like  that of windows (Desktop-- explorer)

    Hi,
    I have to implement a tree like that of windows in(Desktop-->explorer)
    do I proceed programmaticly.
    Please telle me how.
    Thanks

    What about maximizing your frame programatically and getting its size? I think it will return what you want.

  • Creating Tree-Like Hierarchy in Flash CS5 using layers

    Hey folks.
    I'll try to be concise.
    I'm building a mp3 player which initially has 3 layers. In each ofthese 3 layers, there is a lot of visual content. I currently desire the following:
    I click on a particular icon and a completely new page pops up (I know how to do the animation & removing assets off the stage and what not), but what I am trying to achieve is that in Flash, where all of my art resides, I was wondering if I can create a tree-like hierarchy whereas if I clicked my icon symbol, I would see all the symbols inside the icon symbol, and when I click back I'm not able to see these new symbols anymore. For ex. I click on an icon with a music symbol, I click it and a bunch of tracks show up in row format. When I click back, I don't see all the tracks anymore, I only see the music icon.
    I tried creating a mask inside the music icon containing the several tracks (its one symbol). When I click back I'm able to only view the music icon, which is what I desire, and I'm only able to view the tracks when I go inside (double click) the music icon but the issue is that for some reason I canot access the bunch of tracks symbol via actionscript, my code resides in Flex 4 or otherwise known as Flash Builder 4. Any help would be appreciated.Thank you.
    - Sakib I.

    I suggest you read some XML tutorials. Functionality you desire is one of the easiest to implement once you get a light grasp on XML.
    Here is one of the possible approaches:
    var xml:XML;
    init();
    search("Dog");
    function init():void
         xml =   <data>
                   <Items>
                        <Query>Rip</Query>
                        <answer>to copy files from a disc onto a computer</answer>
                   </Items>
                   <Items>
                        <Query>Dog</Query>
                        <answer>Animal that barks</answer>
                   </Items>
                   <Items>
                        <Query>Watermelon</Query>
                        <answer>Diuretic</answer>
                   </Items>
              </data>;
    function search(searchString:String):void
         for each (var node:XML in xml.Items)
              if (node.Query.toString() == searchString)
                   trace(node.Query.toString(), "is", node.answer);
                   break;

  • I like to create tabs like menu bar tool bar in my safari , google

    I like to create tabs like menu bar,tool bar, task bar in my safari -google browser

    Is this what you are looking for
    Settings>Safari>Always Show Bookmarks Bar

Maybe you are looking for

  • Blue TODAY banner on monthly iCal calendar doesn't indicate current date

    Why doesn't the blue TODAY banner on monthly iCal calendar on iPad indicate current day?  (I.e., today is Wednesday Feb 8 but the blue TODAY banner is still on Tues Feb 7) .  I'm syncing to my other devices with iCloud. This problem only happens on t

  • Spa2102 fax

                       I would anybody to help me set up the spa2102 for sending faxes, when I try to send one fax it dial and i can hear the beggining of the fax tone the it stops and reports connection failed. I have cable modem box RCA  dcm425 an netw

  • How to make mandatory field in custom form

    Hi, we have oracle ebs R12.1.3 and oracle DB 11.2.0.3. In a new developed custom form, we want to make a field mandatory. It should be displayed as yellow at the time of running the form. Can anyone guide me. regards Sanjay

  • How to open a lightroom tif in photoshop?

    I have a document in lightroom that I want to edit in photoshop. Do I export? what is a dng?

  • Adobe Flash Player plugin: missing

    Adobe Flash Player plugin successfully installed (several times). But every page display: Click here to download plugin. MSW7, Firefox, notebook