Examples of Menu


Examples of abstraction.components.Menu

    Button aButton = aFactory.createButton();
    aButton.setCaption("Push a");
    aButton.paint();
    System.out.println("\nUsing factory " + aFactory
        + " to construct aMenu");
    Menu aMenu = aFactory.createMenu();
    aMenu.setCaption("Menu a");
    aMenu.display();

    GUIFactory2 bFactory = GUIFactoryChoice2.getFactory();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bButton");
    Button bButton = bFactory.createButton();
    bButton.setCaption("Push b");
    bButton.paint();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bMenu");
    Menu bMenu = bFactory.createMenu();
    bMenu.setCaption("Menu b");
    bMenu.display();
   
    GUIFactory3 cFactory = GUIFactoryChoice3.getFactory();
    System.out.println("\nUsing factory " + cFactory
        + " to construct bButton");
    Button cButton = cFactory.createButton();
    cButton.setCaption("Push b");
    cButton.paint();
    System.out.println("\nUsing factory " + cFactory
        + " to construct bMenu");
    Menu cMenu = cFactory.createMenu();
    cMenu.setCaption("Menu b");
    cMenu.display();
  }
View Full Code Here

Examples of ae.java.awt.Menu

    void addToComponent(Component c) {
        c.add(delegate);
    }

    Object createSubmenu(String label) {
        return new Menu(label);
    }
View Full Code Here

Examples of annotation.Menu

       
        Method[] m = c.getDeclaredMethods();
        for(int j=0; j<m.length ; j++)
        {
          System.out.println("Methode : "+m[j].getName());
          Menu menu = m[j].getAnnotation(Menu.class);
          if(menu != null)
          {
            JMenuItem item;
            if(menu.libelle() == null)
            {
              item = new JMenuItem(m[j].getName());
            }
            else
            {
              item = new JMenuItem(menu.libelle());
            }
            plugin.add(item);
            item.addActionListener(new ActionListener() {
             
              @Override
View Full Code Here

Examples of at.riemers.zero.base.model.Menu

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        setMenu(request, session, view, menuAction);

        if (menuAction.equals("")) {
            Menu menu = (Menu) session.getAttribute(ZeroConstants.MENU_KEY);           
            menuAction = menu.getSelected().getAction();
        }

        String mainUrl = "index.do";
        if (session.getAttribute(MAIN_URL) != null) {
            mainUrl = (String) session.getAttribute(MAIN_URL);
View Full Code Here

Examples of bm.ui.Menu

            final String    title,
            final String[]  options,
            final String    ticker
    )
    {
        final Menu menu = new Menu( this );
        menu.setTitle( title );
        menu.setMode( Menu.LIST );
        final int size = options.length;
        for( int i = 0; i < size; i ++ )
        {
            menu.addItem( options[i], 0, 0, i, null );
        }
        if( ticker != null )
        {
            final Ticker t = new Ticker( ticker );
            menu.setTicker( t );
        }
        this.menu = menu;
        display = Application.getManager().getDisplay();
    }
View Full Code Here

Examples of client.views.swing.menu.Menu

    public MenuView MainView = null;
    private Play play = null; // Model in MVC Architecture

    public MenuController(Play play) {
        this.play = play;
        MainView = new Menu(this);
        addListenersToModel();
    }
View Full Code Here

Examples of com.Menu

import com.animal.Duck; //nama folder selalu huruf kecil, nama class selalu huruf pertama kapital
import com.animal.PAnimal;

public class Cooker {
    public void cook(Duck duck) {
        Menu menu1 = new Menu(1, "bebek", MenuType.FRIED); // pake enum sebagai parameter
        Menu menu2 = new Menu(2, "bebek", MenuType.ROASTED);
        Menu menu3 = new Menu(3, "bebek biasa"); // ini mirip yg kmrn

        menu1.process(duck);
        menu2.process(duck);
        menu3.process(duck);
    }
View Full Code Here

Examples of com.agifans.picedit.gui.menu.Menu

        centerSplitPane.setDividerLocation(175);
       
        this.getContentPane().add(centerSplitPane, BorderLayout.CENTER);
       
        // Create the menu and register the menu event listeners.
        this.menu = new Menu(this);
       
        // Start a timer to preform regular screen repaints.
        startRepaintTimer();
    }
View Full Code Here

Examples of com.alibaba.dubbo.container.page.Menu

    public Page handle(URL url) {
        List<List<String>> rows = new ArrayList<List<String>>();
        for (PageHandler handler : PageServlet.getInstance().getMenus()) {
            String uri = ExtensionLoader.getExtensionLoader(PageHandler.class).getExtensionName(handler);
            Menu menu = handler.getClass().getAnnotation(Menu.class);
            List<String> row = new ArrayList<String>();
            row.add("<a href=\"" + uri + ".html\">" + menu.name() + "</a>");
            row.add(menu.desc());
            rows.add(row);
        }
        return new Page("Home", "Menus"new String[] {"Menu Name", "Menu Desc"}, rows);
    }
View Full Code Here

Examples of com.castronu.joomlajavaapi.domain.Menu

        List<Menu> menuWithThisPath = getMenuWithThisPath(path);
        if (menuWithThisPath.size()!=0) {
            throw new GenericErrorException("There is already a menu with this path " + path);
        }
        int parentId = computeParentId(path);
        Menu menu = MenuBuilder.aMenuCategory(title, alias, path, categoryId, parentId);
        getHibernateTemplate().save(menu);
        LOGGER.info("Menu "+ path + " created");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.