HyperView2.959 banner Documentation
 
public class HyperMenu

Constructor:

              View   Title  Items    flags
HyperMenu(HyperView,String,String[],int);


ie:  (fragment of main HyperView constructor)

<From MenuConstants.java. Define Menu item Strings>

Note: To see the end result see image below

final static String[] DEFAULT_MENU_STRINGS =
{
" Connect    ",
" Load       ",
" Save       ",
" NewCLI     ",
" Disconnect "
};
</From MenuConstants.java>


 
  // Set menuBase to reference DEFAULT_MENU_STRINGS
  // You could make any string array for you menu

String menuOpts[] = MenuConstants.DEFAULT_MENU_STRINGS;

menuBase =  new HyperMenu(this," HyperMenu() ",menuOpts,0);

   // The Menu item Dispatch.class array

 The menu is invoked by right clicking in the View
(Not on a Gadget.)  If you want something to happen
when the user selects a menu item, you must set the
Dispatch.class item for that menu item.



Methods:
    //  Menu item #, excluded BitMask
public void setExcludeBit(int,int);
      
    // Menu item text, item #                 
public void addMenuItem(String,int)
     
    // Remove a menu item, item #
public void deleteMenuItem(int)

                   // Menu item #, Bit Mask

public void setExcludeMask(int,int)
               

                  // Menu item #, Bit Mask

public void unSetExcludeMask(int,int)
 
    // Set the Dispatch Object for menu item #
    //              Dispatch   , Menu item #
public int setDispatch(Dispatch,int);


   // set the entire Dispatch Block from array
public void setDispatchBlock(Dispatch[]);



HyperPopMenu based on
DEFAULT_MENU_STRINGS

HyperPopMenu.class popped up