How to make a Selection Circular Bar Menu  with HAVi?

hi! I'm Suse...I'm trying to make a menu selection circular, with:
A static center focus --> F
Horizontal Bar Menu --> H (Categories)
Vertical Bar Menu --> V (Sub Categories)
......*V* Graphic
......*V*
......*V*
HH  F HHHH
......*V*
......*V*
When pressing Right Arrow... the F focus change to next(right) Item(*H*) and pressing Left Arrow change to the back(left) item(*H*)... where de F (focus) is static... if it pressing UP or Down Arrow is the same mechanism...in the Vertical Bar (*V*)....like the up Gaphic...
I started to make with HAVi but I don't know which objects and methods I could use...
I just use a Vector, HContainer, HListElement and HListGroup....
If somebody wanna share some notes or tips ... thank you!
import java.awt.Color;
import java.awt.Font;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.FocusEvent;
import java.util.Vector;
import org.havi.ui.HContainer;
import org.havi.ui.HListElement;
import org.havi.ui.HListGroup;
import org.havi.ui.HScene;
import org.havi.ui.HSceneFactory;
import org.havi.ui.HSceneTemplate;
import org.havi.ui.event.HActionListener;
import org.havi.ui.event.HFocusListener;
import org.havi.ui.event.HItemEvent;
import org.havi.ui.event.HItemListener;
public class HListGroupMenu extends HContainer implements HActionListener, HItemListener, HFocusListener{
     private static final long serialVersionUID = 1L;
     private static final Rectangle     SCREEN_BOUNDS = new Rectangle(0, 0, 640, 480);
     private static final Rectangle     LIST_GROUP_BOUNDS = new Rectangle(50, 105, 150, 169);
     private static final Color           LIST_GROUP_FOREGROUND = new Color(240, 240, 240); // for text and frame
     private static final Color           LIST_GROUP_BACKGROUND = new Color(78, 90, 20); // for text and frame     
     private static final Font           LIST_GROUP_FONT = new Font("tiresias", Font.BOLD, 14);
     private HScene                          m_scene; 
     private HListGroup                    m_listGroup;
     // list of text string to hold the result of ListGroup selection     
     private Vector     m_textList = new Vector();
     private static final String          LIST_GROUP_ITEMS[][] = {
          {"One", "Two","Three", "Four",     "Five",     "Six", "Seven "}
      * called from Xlet.HListGroupMenu() ..........Instance
*     public HListGroupMenu()*
*          m_scene = HSceneFactory.getInstance().getBestScene(new HSceneTemplate());*
*          m_scene.add(this);            *
*          setBounds(SCREEN_BOUNDS);     *
*//           Create List group*
*          m_listGroup = new HListGroup();*
*          m_listGroup.setBounds(LIST_GROUP_BOUNDS);*
*          m_listGroup.setForeground(LIST_GROUP_FOREGROUND);*
*          m_listGroup.setBackground(LIST_GROUP_BACKGROUND);*
*          m_listGroup.setFont(LIST_GROUP_FONT);*
*          m_listGroup.addItemListener(this);*
*          m_listGroup.addHFocusListener(this);*
*          m_listGroup.getHorizontalAlignment();*
*          m_listGroup.setName("List Group");*
*          // Add items to the List group*
*          for (int i=0; i<LIST_GROUP_ITEMS.length; ++i){*
*               for (int j=0; j<LIST_GROUP_ITEMS.length; ++j){*
*               m_listGroup.addItem(new HListElement(LIST_GROUP_ITEMS[i][j]), j);*
*          add( m_listGroup );*
     * called from Xlet.startXlet() ..... Instance
*     public void start()*
*          m_scene.show();*
*          m_listGroup.requestFocus();*
     * called from Xlet.pauseXlet() ...Instance
*     public void pause()*
*          m_scene.setVisible(false);*
     * called from Xlet.destroyXlet() ..........Instance
     public void destroy()
          m_listGroup.removeItemListener(this);
          m_listGroup.removeHFocusListener(this);
          m_scene.setVisible(false);
          m_scene.removeAll();
          HSceneFactory.getInstance().dispose(m_scene);
          m_scene = null;
     public void actionPerformed(ActionEvent e) {
          // TODO Auto-generated method stub
     public void selectionChanged(HItemEvent event) {
          // TODO Auto-generated method stub
          HListElement item = (HListElement) event.getItem();     
          if (item != null)
               if (event.getID() == HItemEvent.ITEM_SELECTED )
                    // an item was selected          & add it to the list
                    m_textList.addElement(new String(item.getLabel()));
               else if (event.getID() == HItemEvent.ITEM_CLEARED)
                    // an item was un-selected & remove it from the list
                    m_textList.removeElement(item.getLabel());     
     public void currentItemChanged(HItemEvent e) {
     public void focusGained(FocusEvent e) {
     public void focusLost(FocusEvent e) {
}Edited by: sesu on Jan 20, 2009 4:13 PM
Edited by: sesu on Jan 20, 2009 4:15 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

I'm not sure if I understand you. You want to make a menu that shows some movement? I think you mean static center focus is the place where the focused button will stay, and those who are focused move towards that point.
If is that, it can get a little more complicated that it seems. You want it more graphically or just a HListGroup that changes its options by pressing right and left buttons is enough?

Similar Messages

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • How to make row selection by checkbox in ADF table

    hello,
    using jdev11g TP4 , fusion web application
    when i drag my view object as ADF table into jsf page,
    i want to know how to make row selection by checkbox
    thanks
    greenApple
    Edited by: greenApple on Nov 10, 2008 11:33 AM

    Hi,
    the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
    Frank

  • How to make a SELECT LIST READONLY

    Hi,
    I have a form to update the existing values in a table. Primary column is based on a Select List.
    So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
    SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
    There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
    I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
    Thanks in advance...
    mc

    You define a function(this is based aorund jQuery selectors) in the page header like
    <script>
      var makereadonly = function(selector, makeReadonly) {
          $(selector).filter("select").each(function(i){
              var select = $(this);
              //remove any existing readonly handler
              if(this.readonlyFn) select.unbind("change", this.readonlyFn);
              if(this.readonlyIndex) this.readonlyIndex = null;
              if(makeReadonly) {
                  this.readonlyIndex = this.selectedIndex;
                  $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
                  this.readonlyFn = function(){
                      this.selectedIndex = this.readonlyIndex;
                  select.bind("change", this.readonlyFn);
          //For input items
          $(selector).filter("input,textarea").attr('readOnly','readOnly');
          $(selector).filter("input,textarea").css('background-color','#CDCDCD');
    </script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
      makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • How to make software select on UI

    May I know how to make software select. just click down the mouse and drag, then there will be a dot line square. After release the mouse,
    the things selected will change color to red.
    When move mouse over one object on UI, the mouse icon with change to the one with 4 arrow to 4 direction. If click down, the object will change to red color, other red
    color object will back to normal color.
    Any suggestion, thanks.

    As the attached vi, when in runtime, the selected 4 object need to change color. Or the click one need to change color. Thanks.
    Attachments:
    ss.JPG ‏67 KB

  • Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8

    Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8 as a control surface ?

    In YAMAHA01v96i:
    Go to DIO/SETUP select Generic DAW. Go to MIDI settings page and set the desired port (personally I use Number 1), Select the same audio frequency you use in your DAW (I use 44.1KhZ)...at this point You should save a scene in you 01V96i to avoid to repeat all the procedure again.
    Open studio manager, go to patch and set the input port from 17 to 32 respectively to USB1-USB16 (this will give you the return from you DAW to the 01v96i
    Save again the scene overwriting the old one.
    in LOGIC
    Click on preferences, select Audio then select 01v96i, then click on control surface and select Mackie design Baby HUI and in the midi session set the same port that you've been setting on the Yamaha 01V96i (Port 1 if you follow this example).
    That's more or less it.
    It worked for me...so far

  • How do i get passed choose a menue,I have finished editing rendering unable to go to Burn directly to disc, Help would be appreciated, thankyou Gordon

    How do i get passed choose a menue,I have finished editing rendering unable to go to Burn directly to disc, Help would be appreciated, thank you Gordon

    Gordon
    Thanks for the additional information.
    After you have your Timeline content ready for export with destination burn to disc, if you do not go to Tools Menu/Movie Menu to apply disc menus and you go instead directly to Publish+Share/Disc, you will get an automatic message for a Yes or No answer with regard to disc menus.
    If you do not want menus, then just click No and you should next see the following
    where you make your burn to choice.
    The Yes or No message should be for Publish+Share/Disc and not Publish+Share/Computer.
    You cannot export a file with menus to the hard drive.
    If you went Timeline content, Tools Menu/Movie Menu, and applied a menu, and then decided that you do not want a menu, the go to the top of the Movie Menu customization area and click on Reset, followed by Done. And, then go to Publish+Share/Computer and your choice for the export to file saved to the computer hard drive.
    Please review the above and let us know if you are OK with the above details.
    Thank you.
    ATR

  • How to make New Document and Upload Document to have same Content Type in Document Library in Sharepoint 2010

    Hi,
    How to make 'New Document' and 'Upload Document' to have same content type(Custom) in Document Library in Sharepoint2010.
    Note : I have created custom Content Type since I have custom columns along with upload column..
    Regards, Shreyas R S

    go to library settings 
    Change new button order and default content type
    set your custom content type to be #1
    when you upload new document it will automatically have your custom content type
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • How to make your iPad and iPhone commicate with each other

    How to make your iPad and iPhone commicate with each other

    this is very easy...
    firstly disconnect the DSL modem for the linksys..
    then connect the computer to the linksys router (port 1/2/3/4)..
    then access the linksys setup UI
    open ur web browser
    site: http://192.198.1.1/
    username: [blank]
    password: admin
    now hook up the westell modem.. and goto the status page ...
    check Internet IP.
    if then Internet IP is 192.168.1.* then,
    disconnect the westell from the router and goto the setup page.
    change the LOCAL IP address to 192.168.2.1 (notice the 2.1 and not 1.1)
    save settings....
    connect the westell and viola ur online...
    if the Internet IP is 0.0.0.0 then
    goto the setup page and change the 'Internet connection Type' to 'PPPoE'
    once done the page changes and give u a place to enter a username and a password.. this username and password is given by verizon..
    sud be something like '[email protected]'
    once done save settings...
    goto the status page and hit connect... give it a few moments... u shud get a Internet ip address... if u get one ur online if not then power cycle the entire network. and try check to see if u get an ip..
    hope this helps...
    cheers..
    Life is short... So get movin !!!
    DopeLorD

  • Hello, i would like to know how to make horizontal sites and it moves with the scroll

    Hello, i would like to know how to make horizontal sites and it moves with the scroll

    Hi
    You can refer to these videos :
    http://www.lynda.com/Muse-tutorials/basics-horizontal-scrolling-websites/108131/115685-4.h tml
    https://www.youtube.com/watch?v=gZI_K1TXqOM
    Thanks,
    Sanjit

  • How to Make Fonts Bigger in Safari Menu Bar and Tabs

    Hello,
    I just set up a new IMAC 27" for my mom and she cannot read the menu bars and tabs in Safari. I know how to make the text of the webpage itself bigger, but is there any way to make the text in the menu bars and tabs bigger.  Someone sugggested Opera browser. Would that be a better option?
    Thanks
    John

    Welcome!
    I had the same issue with my 27-inch--here's how I fixed it:
    1) Go to System Preferences > Displays and select the "Displays" tab
    2) For "Resolution" there are two buttons: "Best for Display" and "Scaled." Select "Scaled."
    3) Now you should see a list of resolutions. The default is probably 2560x1440. Change it to 1920x1080.
    I don't have great eyes but this setting makes it easy for me to see. It makes all menu bars including Safari about 3/10ths inch wide and the menu lettering close to 1/4-inch tall.

  • How to make the words of the menu bar on the top of the screen look bigger?

    I am considering changing my 15.4'' to 17'', so I went to Apple store and took a look at the 17'' MBP, this machine is awesome and the display is set at 1900 X 1200, I realized that the words are smaller every where. While I know how to adjust the words below the icons to make it bigger, but I really don't know how to make the words bigger in the menu bar, in the menu bar of safari, menu bar every where, does anyone here know how to do it?

    Yes, but it isn't here yet.
    Sometime next year, Apple is supposed to enable the resolution independent version of the UI which will mean you can get easily readable stuff even with the much higher resolution monitors that are coming.
    For now you have only two good choices: Use a lower resolution on the monitor or use the Zoom function of Universal Access (and pan the image around on the screen) to help with visibility.
    --Bob

  • How to make a return to main menu button

    I've only recently upgraded from iDVD (not sure how I worked with it for so long)
    I'm using DVD SP 3
    I have made a dvd with a title screen from where you can play the entire film or go to a second menu which contains four chapters.
    This seems very basic but i've searched the forum a lot and can't find the answer (maybe because it's so basic)...
    How do I make a button on the second/chapter menu screen that will return to the main menu? The kind that idvd places there automtically.
    Do I have to make a script (I haven't done this before) or is there some 'automatic' function or ?
    Ashley

    1) Create a button on the chapter menu with the text MAIN MENU (or whatever you want it to say).
    2) Select the chapter menu in either the graphical or outline view of your DVD.
    3) Click on the Connections tab.
    4) Select the MAIN MENU button in the source column.
    5) Select the main menu in the Targets column.
    6) Click the Connect button above the Targets column.
    After doing the above steps you should see the main menu in the Target column to the right of "MAIN MENU:Jump when activated" in the source column. Your MAIN MENU button will now take you back to the main menu.
    Message was edited by: John Link

Maybe you are looking for

  • If you are torn between a Lenovo W550s and a Dell M3800

    I am sharing my Lenovo W550s and Dell Precision M3800 experiences and testing results with you. My Laptop Configurations: Lenovo W550s with Intel dual core 17-5600 CPU @2.60GHz, 16 GB RAM, NVIDIA Quadro K620M, 1TB Samsung 850 Pro SATA SSD (user upgra

  • Problem with MS Office for Macs, can someone please help?

    I am using MS Office for Macs 2011 on my new MBA, and have encountered a pretty annoying issue when I transfered all my Excel, Word & PP documents from my old Sony PC.  When I open an Excel spreadsheet for example, the computer also opens every singl

  • DELETING RAW FILES IN PHOTOS OS X

    I shoot in JPEG plus RAW.  The files download to Photos and are stacked.  I do not need ALL the RAW files taking up space on my hard drive. Does anyone know how I delete all of the unwanted RAW files in ONE action rather than doing it photo by photo

  • Drive tray stuck open...where does the paperclip (manual eject) go?

    I've got the Sony drive which has stuck with the tray half out. I cannot remove the drive because the tray prevents any movement sideways. If I get any firmer with the tray or little metal door something will break... My only solution appears to be t

  • Quicktime inst error searching for old drive

    Please help, I am using win xp, trying to re-install itunes/qt 10, after replacing bad hard-drive. My old hard drive had 4 partitions on it d,e,f and g. I originally installed itunes/qt on drive g. My new drive only has one partition drive d. I have