Package com.extjs.gxt.ui.client.widget.toolbar

Examples of com.extjs.gxt.ui.client.widget.toolbar.ToolBar


      content.setScrollMode(Scroll.AUTO);
//    content.setHeading("Properties");
    content.setButtonAlign(HorizontalAlignment.RIGHT);

    //da toolbar
    ToolBar toolbar = new ToolBar();
    TextToolItem save = new TextToolItem("Save", "icon-save");
    toolbar.add(save);
    toolbar.add(new SeparatorToolItem());
    content.setTopComponent(toolbar);

    tabFolder = new TabPanel();
    tabFolder.setTabScroll(true);
View Full Code Here


      content.setScrollMode(Scroll.AUTO);
//    content.setHeading("Properties");
    content.setButtonAlign(HorizontalAlignment.RIGHT);

    //da toolbar
    ToolBar toolbar = new ToolBar();
    TextToolItem save = new TextToolItem("Save", "icon-save");
    toolbar.add(save);
    toolbar.add(new SeparatorToolItem());
    content.setTopComponent(toolbar);

    tabFolder = new TabPanel();
    tabFolder.setTabScroll(true);
View Full Code Here

        Dispatcher.get().dispatch(WPaloEvent.EXPANDED_ADMIN_SECTION);
      }
    });

    //da toolbar
    ToolBar toolbar = new ToolBar();
    fill(toolbar);
    navigator.setTopComponent(toolbar);

    //create the tree which displays the data:
    treeLoader = new BaseTreeLoader<TreeNode>(new TreeLoaderProxy()){
View Full Code Here

      public void handleEvent(ComponentEvent be) {
        Dispatcher.get().dispatch(WPaloEvent.EXPANDED_SERVER_SECTION);
      }
    });

    ToolBar toolbar = new ToolBar();
    TextToolItem addDatabase = new TextToolItem("", "icon-db");
    toolbar.add(addDatabase);
    TextToolItem addCube = new TextToolItem("", "icon-cube");
    toolbar.add(addCube);
    TextToolItem addDimension = new TextToolItem("", "icon-dim");
    toolbar.add(addDimension);
    toolbar.add(new SeparatorToolItem());
    TextToolItem del = new TextToolItem("", "icon-delete");
    toolbar.add(del);
    navigator.setTopComponent(toolbar);
   
    //create the tree which displays the data:
    treeLoader = new BaseTreeLoader<TreeNode>(new TreeLoaderProxy()){
      public boolean hasChildren(TreeNode data) {
View Full Code Here

      content.setScrollMode(Scroll.AUTO);
//    content.setHeading("Properties");
    content.setButtonAlign(HorizontalAlignment.RIGHT);

    //da toolbar
    ToolBar toolbar = new ToolBar();
    saveBtn = new TextToolItem("", "icon-save");
    saveBtn.setToolTip(constants.save());
    saveBtn.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public final void componentSelected(ComponentEvent ce) {
      }
      public final void handleEvent(ComponentEvent be) {
        doSave(null);
      }
    });
    toolbar.add(saveBtn);
    toolbar.add(new SeparatorToolItem());
    content.setTopComponent(toolbar);

    tabFolder = new TabPanel();
    tabFolder.setTabScroll(true);
View Full Code Here

      return;
    }
    Component c = (Component) findNextWidget(component);
    if (c != null && c.getData("gxt-overflow") != null) {
      pe.stopEvent();
      ToolBar bar = (ToolBar) component.getParent();
      ToolBarLayout layout = bar.getLayout();
      Button more = layout.getMoreButton();
      more.focus();
      return;
    }
View Full Code Here

  @Override
  public void onLeft(Component component, PreviewEvent pe) {
    if (component.getParent() instanceof PagingToolBar) {
      return;
    }
    ToolBar bar = (ToolBar)component.getParent();
    ToolBarLayout layout = bar.getLayout();
    Button more = layout.getMoreButton();
    if (component == more) {
      for (int i = bar.getItemCount() - 1; i >= 0; i--) {
        Component c = bar.getItem(i);
        if (!isIgnore(c) && c.getData("gxt-overflow") == null) {
          focusWidget(c, false);
          return;
        }
      }
View Full Code Here

      };

      HtmlEditorImages g = getImages();
      HtmlEditorMessages m = getMessages();

      tb = new ToolBar();
      tb.addListener(Events.OnClick, new Listener<ComponentEvent>() {
        public void handleEvent(ComponentEvent be) {
          if (fly(be.getTarget()).findParent(".x-toolbar-cell", 10) != null) {
            be.cancelBubble();
          }
View Full Code Here

    /**
     * Builds the top menu
     */
    private void buildMenu() {
     // configure menu
     ToolBar topMenuBar = new ToolBar();
     topMenuBar.setWidth("100%");
 
     // build select section
     final Button selectSection = new Button("Select Section");
     selectSection.setEnabled(false);
     selectSection.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce) {
        Commands.getInstance().showSelectSection( new TableOfContentsPanelItemSelectedListener(){
          public void tocp_itemSelected(TableOfContentsEntry entry) {
               // call server
               Commands.getInstance().selectSection(ClientState.workFile, entry, new CommandCallback<Section>(){
                  public void cc_callback(Section section) {
                    // display section in master panel
                    Outline.getInstance().updateMasterPanel(section);
                  }
                 });
            }
             } 
        );
      }
     });
    
     // select document
     Button selectDocumentMenuHead = new Button("Select Document");
     Menu selectDocumentMenu = new Menu();
     selectDocumentMenuHead.setMenu(selectDocumentMenu);
     topMenuBar.add(selectDocumentMenuHead)
   
     final CheckMenuItem selectDoc1 = new CheckMenuItem(initialization.getFile1Name());
     selectDoc1.setGroup("docSelection");
       selectDoc1.addSelectionListener(new SelectionListener<MenuEvent>(){
      @Override
      public void componentSelected(MenuEvent ce) {
        selectDoc1.setChecked(true);
        ClientState.workFile = ClientUtils.FILE1;
        selectSection.setEnabled(true);
        clearMainPanel();
        Commands.getInstance().selectDocument(ClientUtils.FILE1);
      }
     });
       selectDocumentMenu.add(selectDoc1);
    
       final CheckMenuItem selectDoc2 = new CheckMenuItem(initialization.getFile2Name());
       selectDoc2.setGroup("docSelection");
       selectDoc2.addSelectionListener(new SelectionListener<MenuEvent>(){
      @Override
      public void componentSelected(MenuEvent ce) {
        selectDoc2.setChecked(true);
        ClientState.workFile = ClientUtils.FILE2;
        selectSection.setEnabled(true);
        clearMainPanel();
        Commands.getInstance().selectDocument(ClientUtils.FILE2);
      }
     });
       selectDocumentMenu.add(selectDoc2)

       // add select section
     topMenuBar.add(selectSection);

     // about
     /*
     TextToolItem about = new TextToolItem("About");
     about.addSelectionListener(new SelectionListener<ComponentEvent>(){
      @Override
      public void componentSelected(ComponentEvent ce) {
         About.getInstance().execute();
      }
     });
     topMenuBar.add(about);
     */
    
    
     // add fill
     topMenuBar.add(new FillToolItem());
    
     // title
     Button title = new Button("TEI Comparator beta " + TEI_Comparator.VERSION);
     title.setEnabled(false);
     topMenuBar.add(title);
    
     // add menu to dock panel
     dockPanel.add(topMenuBar,DockPanel.NORTH);
    
     // adjust height
View Full Code Here

      contentPanel.setStyleName("tc-left-panel");
     
      contentSection = new TCSection(section, TCSection.MODE_LEFT_NORMAL);
     
      // create menu
    ToolBar mb = new ToolBar();
    mb.setWidth("100%");
   
    // Selected paragraph
    Button selectionMenuHead = new Button("Selected Paragraph");
    Menu selectiontMenu = new Menu();
    selectionMenuHead.setMenu(selectiontMenu);
    mb.add(selectionMenuHead);
   
   
    MenuItem getInformation = new MenuItem("More Information");
    getInformation.setIconStyle("icon-menu-information");
    getInformation.addSelectionListener(new SelectionListener<MenuEvent>(){
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.toolbar.ToolBar

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.