Package org.latexlab.docs.client.widgets

Examples of org.latexlab.docs.client.widgets.ExtendedMenuBar


   * Builds the main menu bar.
   *
   * @return the main menu bar
   */
  private ExtendedMenuBar buildMenu() {
    menu = new ExtendedMenuBar(false);
    this.menu.addItem("File", DynamicFileMenu.get());
    this.menu.addItem("Edit", DynamicEditMenu.get());
    this.menu.addItem("View", DynamicViewMenu.get());
    this.menu.addItem("Insert", DynamicInsertMenu.get());
    this.menu.addItem("Math", DynamicMathMenu.get());
View Full Code Here


   *
   * @param path the title path of the menu item which to retrieve
   * @return the menu item with the specified title
   */
  public ExtendedMenuItem getMenuItem(String[] path) {
  ExtendedMenuBar curMenu = menu;
  int l = path.length - 1;
  for (int i=0; i<path.length; i++) {
    String title = path[i];
    ExtendedMenuItem item = curMenu.getItem(title);
    if (i == l || item == null) {
    return item;
    } else {
    if (item.getSubMenu() != null) {
      curMenu = (ExtendedMenuBar) item.getSubMenu();
View Full Code Here

TOP

Related Classes of org.latexlab.docs.client.widgets.ExtendedMenuBar

Copyright © 2018 www.massapicom. 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.