Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.MenuBar$MenuBarImages


  private final MenuBar menu;

  public PopupMenu() {
    super(true, false, "menuPopup");
    menu = new MenuBar(true) {
      @Override
      public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
        super.onPopupClosed(sender, autoClosed);

        // If the menu popup was not auto-closed, close popup menu..
View Full Code Here


public class DeploymentNewMenu {

    public static MenuBar getMenu(final NavigationItemBuilderOld manager) {

        MenuBar createNewMenu = new MenuBar( true );

        createNewMenu.addItem( Util.getHeader( DroolsGuvnorImages.INSTANCE.snapshotSmall(),
                               Constants.INSTANCE.NewDeploymentSnapshot() ).asString(),
                               true,
                               new Command() {
                                   public void execute() {
                                       SnapshotView.showNewSnapshot( new Command() {
                                           public void execute() {
                                               //we have to refresh the whole tree when a snapshot was added to previously empty package.
                                               manager.refreshTree();
                                           }
                                       } );
                                   }
                               } );

        createNewMenu.addItem( Util.getHeader( DroolsGuvnorImages.INSTANCE.refresh(),
                                               Constants.INSTANCE.RebuildAllSnapshotBinaries() ).asString(),
                               true,
                               new Command() {
                                   public void execute() {
                                       SnapshotView.rebuildBinaries();
                                   }
                               } );

        MenuBar rootMenuBar = new MenuBar( true );
        rootMenuBar.setAutoOpen( true );
        rootMenuBar.setAnimationEnabled( true );

        rootMenuBar.addItem( new MenuItem( Constants.INSTANCE.CreateNew(),
                                           createNewMenu ) );

        return rootMenuBar;
    }
View Full Code Here

*/
public class DefaultOryxMultiViewEditorMenuBarCreator implements MultiViewEditorMenuBarCreator {


    public MenuBar createMenuBar(final MultiViewEditor editor,final EventBus eventBus) {
        MenuBar toolbar = new MenuBar();

        toolbar.addItem(Constants.INSTANCE.SaveAllChanges(),
                new Command() {

                    public void execute() {
                        //before save command
                        Command cmd = getBeforeSaveCommand();
View Full Code Here

        this.afterSaveCommand = afterSaveCommand;
    }

    @Override
    public MenuBar createMenuBar(final MultiViewEditor editor, EventBus eventBus) {
        MenuBar toolbar = super.createMenuBar(editor, eventBus);
        toolbar.addItem(Constants.INSTANCE.Close(),this.closeCommand);
        return toolbar;
    }
View Full Code Here

   
   
    @Override
    public MenuBar createMenuBar(final MultiViewEditor editor, EventBus eventBus) {
        MenuBar toolbar = super.createMenuBar(editor, eventBus);
        toolbar.addItem(Constants.INSTANCE.Cancel(),this.cancelCommand);
        return toolbar;
    }
View Full Code Here

     * buttons just call doneCommand and cancelCommand respectively.
     * @param editor
     * @return
     */
    public MenuBar createMenuBar(final MultiViewEditor editor, EventBus eventBus) {
        MenuBar toolbar = new MenuBar();

        toolbar.addItem(Constants.INSTANCE.Done(), doneCommand);
        toolbar.addItem(Constants.INSTANCE.Cancel(), cancelCommand);

        return toolbar;
    }
View Full Code Here

        addNewEnumerationMenuItem();
        addNewTestScenarioMenuItem();
        addNewFileMenuItem();
        rebuildAllPackagesMenuItem();

        MenuBar rootMenuBar = new MenuBar( true );
        rootMenuBar.setAutoOpen( false );
        rootMenuBar.setAnimationEnabled( false );

        rootMenuBar.addItem( new MenuItem( Constants.INSTANCE.CreateNew(), createNewMenu ) );

        return rootMenuBar;
    }
View Full Code Here

  private boolean fontChooserButtonVisible = true;
  private boolean styleDialogButtonVisible = true;
  private boolean selectElementForCssEditButtonVisible = true;
 
  private StyleToolbar(){
    initWidget(new MenuBar(){
      public void onBrowserEvent(Event event) {
        MenuItem item = findItem(DOM.eventGetTarget(event));
            if (item != null && (item.getCommand() != null || item.getSubMenu() != null))
              super.onBrowserEvent(event);
      }
View Full Code Here

  }
  public static StyleToolbar getInstance(){
    return styleToolbar;
  }
  private void makeToolbar() {
    final MenuBar toolBar = (MenuBar) getWidget();
    toolBar.setStyleName("vkgwtdesigner-toolbar");
    toolBar.addItem(getBoldMenuItem());
    boldMenuItem.setVisible(boldButtonVisible);     
    toolBar.addItem(getItalicMenuItem());
    italicsMenuItem.setVisible(italicsButtonVisible);
    toolBar.addItem(getUnderLineMenuItem());
    underlineMenuItem.setVisible(underlineButtonVisible);
    toolBar.addItem(getBgColorPickerMenuItem());
    bgColorPickerMenuItem.setVisible(bgColorPickerButtonVisible);
    toolBar.addItem(getForeColorPickerMenuItem());
    foreColorPickerMenuItem.setVisible(foreColorPickerButtonVisible);
    toolBar.addItem(getBorderColorPickerMenuItem());
    borderColorPickerMenuItem.setVisible(borderColorPickerButtonVisible);
    toolBar.addItem(getBorderWidthPickerMenuItem());
    borderWidthPickerMenuItem.setVisible(borderWidthPickerButtonVisible);
    toolBar.addItem(getBorderEdgePickerMenuItem());
    borderEdgePickerMenuItem.setVisible(borderEdgePickerButtonVisible);
    toolBar.addItem(getTextAlignLeftMenuItem());
    textAlignLeftMenuItem.setVisible(textAlignLeftButtonVisible);
    toolBar.addItem(getTextAlignCenterMenuItem());
    textAlignCenterMenuItem.setVisible(textAlignCenterButtonVisible);
    toolBar.addItem(getTextAlignRightMenuItem());
    textAlignRightMenuItem.setVisible(textAlignRightButtonVisible);
    toolBar.addItem(getRightIndentMenuItem());
    rightIndentMenuItem.setVisible(rightIndentButtonVisible);
    toolBar.addItem(getLeftIndentMenuItem());
    leftIndentMenuItem.setVisible(leftIndentButtonVisible);
    toolBar.addItem(getTopIndentMenuItem());
    topIndentMenuItem.setVisible(topIndentButtonVisible);
    toolBar.addItem(getBottomIndentMenuItem());
    bottomIndentMenuItem.setVisible(bottomIndentButtonVisible);
    toolBar.addItem(getIncreaseFontSizeMenuItem());
    increaseFontSizeMenuItem.setVisible(increaseFontSizeButtonVisible);
    toolBar.addItem(getDecreaseFontSizeMenuItem());
    decreaseFontSizeMenuItem.setVisible(decreaseFontSizeButtonVisible);
    toolBar.addItem(getFontChooserMenuItem());
    fontChooserMenuItem.setVisible(fontChooserButtonVisible);
    StyleMenu.getInstance().refreshStylePanel(invokingElement);
    toolBar.addItem(getStyleDialogMenuItem(StyleMenu.getInstance()));
    styleDialogMenuItem.setVisible(styleDialogButtonVisible);
    toolBar.addItem(getSelectElementForCssEdit());
    selectElementForCssEdit.setVisible(selectElementForCssEditButtonVisible);
  }
View Full Code Here

        }, ClickEvent.getType());       
      }});
  }
  private MenuItem getFontChooserMenuItem() {
    if(fontChooserMenuItem == null) {
      MenuBar fontChooser = new MenuBar(true);
      fontChooserMenuItem = new MenuItem("Font", fontChooser);
      fontChooser.addItem("<span style='font-family:\"Arial\"'>Arial", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Arial, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Arial Black\"'>Arial Black", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Arial Black, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Arial Narrow\"'>Arial Narrow", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Arial Narrow, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Calibri\"'>Calibri", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Calibri, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Comic Sans MS\"'>Comic Sans MS", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Comic Sans MS, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Consolas\"'>Consolas", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Consolas, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Corsiva\"'>Corsiva", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Corsiva, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Courier New\"'>Courier New", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Courier New, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Droid Sans\"'>Droid Sans", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Droid Sans, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Droid Serif\"'>Droid Serif", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Droid Serif, serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Garamond\"'>Garamond", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Garamond, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Georgia\"'>Georgia", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Georgia, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Tahoma\"'>Tahoma", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Tahoma, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Times New Roman\"'>Times New Roman", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Times New Roman, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Trebuchet MS\"'>Trebuchet MS", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Trebuchet MS, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Ubuntu\"'>Ubuntu", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Ubuntu, sans-serif");
        }
      });
      fontChooser.addItem("<span style='font-family:\"Verdana\"'>Verdana", true, new Command(){
        @Override
        public void execute() {
          DOM.setStyleAttribute(invokingElement, "fontFamily", "Verdana, sans-serif");
        }
      });
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.MenuBar$MenuBarImages

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.