Examples of MenuBar


Examples of org.onemind.swingweb.client.gwt.widget.MenuBar

            {
                MenuItem item = (MenuItem) childCom;
                menu.addItem(item);
            } else if (childCom instanceof MenuBar)
            {
                MenuBar mb = (MenuBar) childCom;
                menu.addItem(mb.getTitle(), mb);
            }
        }
    }
View Full Code Here

Examples of org.onemind.swingweb.client.gwt.widget.MenuBar

     */
    public Object updateUI(Object com, DomNode element)
    {
        if (com instanceof MenuBar)
        {
            MenuBar bar = (MenuBar) com;
            handleChildrenMenu(getClient(), bar, element);
            String label = element.getAttribute("label");
            bar.setTitle(label);
        }
        return super.updateUI(com, element);
    }
View Full Code Here

Examples of org.openide.awt.MenuBar

                JRootPane pane = frame.getRootPane();
                JLayeredPane layered = pane.getLayeredPane();
                Object[] comps = layered.getComponents();
                for (int i = 0; i < comps.length; i++) {
                    if (comps[i] instanceof MenuBar) {
                        MenuBar bar = (MenuBar) comps[i];
                        bar.waitFinished();
                        int num = bar.getMenuCount();
                        for (int j = 0; j < num; j++) {
                            Object o = bar.getMenu(j);
                            if (o != null) {
                                JMenu menu = (JMenu) o;
                                menu.addMenuListener(new MenuListener() {

                                    public void menuSelected(MenuEvent e) {
View Full Code Here

Examples of org.rendersnake.site.components.MenuBar

        html
            .body()
            .div(id("main"))   
                .div(id("header"))
                .render(new Logo())
                .render(new MenuBar(uri))
                .render(new InspectThis())
                ._div() // header
            .div(id("content_header"))._div()
           
            .div(id("site_content"))
View Full Code Here

Examples of org.rendersnake.site.components.MenuBar

       
            html.render(new Inspector(new Logo()));
            html.hr();
            html.render(new Inspector(new InspectThis()));
            html.hr();
            html.render(new Inspector(new MenuBar("here")));
            html.hr();
            html.render(new Inspector(new Sidebar()));
            html.hr();
            html.render(new Inspector(new GotoTop()));
            html.hr();
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.widgets.MenuBar

    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    composite.setBackgroundMode(SWT.INHERIT_DEFAULT);

    menubar = new MenuBar(composite, SWT.NONE);
    gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.exclude = true;
    menubar.getControl().setLayoutData(gd);

    separator = new Separator(composite, SWT.HORIZONTAL | SWT.SHADOW_IN);
View Full Code Here

Examples of org.zkoss.zul.Menubar

    final North north = bl.getNorth();
    north.setHeight(north.getHeight() + "px");

    final Div div = (Div) north.getFellow("divDropDownMenu");

    final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
    menuBar.setVisible(true);

    // generate the menu from the menuXMLFile
    getDropDownMenuFactory().addMenu(menuBar);

    final Menuitem changeToTreeMenu = new Menuitem();
    changeToTreeMenu.setLabel(Labels.getLabel("menu_Item_backToTree"));
    changeToTreeMenu.setImage("/images/icons/refresh2_yellow_16x16.gif");
    changeToTreeMenu.setParent(menuBar);
    changeToTreeMenu.addEventListener("onClick", new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        // get an instance of the borderlayout defined in the
        // index.zul-file
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        // get an instance of the searched west layout area
        final West west = bl.getWest();
        west.setVisible(true);

        final North north = bl.getNorth();

        final Div div = (Div) north.getFellow("divDropDownMenu");

        final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
        menuBar.getChildren().clear();
        menuBar.setVisible(false);

        // set the MenuOffset for correct calculating content height.
        final Checkbox cb = (Checkbox) Path.getComponent("/outerIndexWindow/CBtreeMenu");
        cb.setChecked(true);
        UserWorkspace.getInstance().setTreeMenu(true);
View Full Code Here

Examples of pivot.wtk.MenuBar

        // No-op
    }

    public void paint(Graphics2D graphics) {
        MenuBar.Item menuBarItem = (MenuBar.Item)getComponent();
        MenuBar menuBar = menuBarItem.getMenuBar();

        int width = getWidth();
        int height = getHeight();

        boolean highlight = menuPopup.isOpen();

        // Paint highlight state
        if (highlight) {
            Color highlightBackgroundColor = (Color)menuBar.getStyles().get("highlightBackgroundColor");
            graphics.setColor(highlightBackgroundColor);
            graphics.fillRect(0, 0, width, height);
        }

        // Paint the content
View Full Code Here

Examples of ringdb.ui.menu.MenuBar

   
  public MainWindow() {
      super("RingDB");
      setExtendedState(JFrame.MAXIMIZED_BOTH);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      setJMenuBar(new MenuBar(this));
     
      m_Desktop = new JDesktopPane();
      setContentPane(m_Desktop);
    }
View Full Code Here

Examples of views.MenuBar

   * @param args
   */
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    JFrame jf=new JFrame("...");
    jf.add(new MenuBar());
    jf.pack();
    jf.setVisible(true);
  }
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.