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

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


  /**
   * Agrega la bara de botones
   * @return
   */
  private void addToolBar() {
    ToolBar toolBar = new ToolBar();
    toolBar.add(new SaveButton(this));
    toolBar.add(new CancelButton(this));
    add(toolBar);
  }
View Full Code Here


  /**
   * Agrega la bara de botones
   * @return
   */
  private void addToolBar() {
    ToolBar toolBar = new ToolBar();
    toolBar.add(save);
    toolBar.add(cancel);
    add(toolBar);
  }
View Full Code Here

  /**
   * Agrega la bara de botones
   * @return
   */
  private void addToolBar() {
    ToolBar toolBar = new ToolBar();
    toolBar.add(new SaveButton(this));
    toolBar.add(new CancelButton(this));
    add(toolBar);
  }
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

  /**
   * Agrega la bara de botones
   * @return
   */
  private void addToolBar() {
    ToolBar toolBar = new ToolBar();
    toolBar.add(save);
    toolBar.add(cancel);
    add(toolBar);
  }
View Full Code Here

    w.setIcon(IconHelper.createStyle("accordion"));
    w.setHeading("Accordion Window");
    w.setWidth(200);
    w.setHeight(350);

    ToolBar toolBar = new ToolBar();
    Button item = new Button();
    item.setIcon(IconHelper.createStyle("icon-connect"));
    toolBar.add(item);

    toolBar.add(new SeparatorToolItem());
    w.setTopComponent(toolBar);

    item = new Button();
    item.setIcon(IconHelper.createStyle("icon-user-add"));
    toolBar.add(item);

    item = new Button();
    item.setIcon(IconHelper.createStyle("icon-user-delete"));
    toolBar.add(item);

    w.setLayout(new AccordionLayout());

    ContentPanel cp = new ContentPanel();
    cp.setAnimCollapse(false);
View Full Code Here

    BorderLayoutData data = new BorderLayoutData(LayoutRegion.WEST, 220, 150, 320);
    data.setMargins(new Margins(5, 5, 5, 5));
    data.setCollapsible(true);
    westPanel = new ContentPanel();

    ToolBar toolBar = new ToolBar();
    westPanel.setTopComponent(toolBar);

    viewport.add(westPanel, data);
    Registry.register(WEST_PANEL, westPanel);
  }
View Full Code Here

    grid.setAutoExpandColumn("name");
    grid.setBorders(true);
    grid.addPlugin(checkColumn);
    cp.add(grid);

    ToolBar toolBar = new ToolBar();
    Button add = new Button("Add Plant");
    add.addSelectionListener(new SelectionListener<ButtonEvent>() {

      @Override
      public void componentSelected(ButtonEvent ce) {

        grid.stopEditing();
        store.insert(createPlant(), 0);
        grid.startEditing(0, 0);

      }

    });
    toolBar.add(add);
    cp.setTopComponent(toolBar);
    cp.setButtonAlign(HorizontalAlignment.CENTER);
    cp.addButton(new Button("Reset", new SelectionListener<ButtonEvent>() {

      @Override
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.