Package org.waveprotocol.wave.client.widget.toolbar.buttons

Examples of org.waveprotocol.wave.client.widget.toolbar.buttons.ToolbarClickButton


    e.setInnerText("Heading " + level);
    return e;
  }

  private void createIndentButton(ToolbarView toolbar) {
    ToolbarClickButton b = toolbar.addClickButton();
    new ToolbarButtonViewBuilder()
        .setIcon(css.indent())
        .applyTo(b, new ParagraphTraversalController(editor, Paragraph.INDENTER));
  }
View Full Code Here


        .setIcon(css.indent())
        .applyTo(b, new ParagraphTraversalController(editor, Paragraph.INDENTER));
  }

  private void createOutdentButton(ToolbarView toolbar) {
    ToolbarClickButton b = toolbar.addClickButton();
    new ToolbarButtonViewBuilder()
        .setIcon(css.outdent())
        .applyTo(b, new ParagraphTraversalController(editor, Paragraph.OUTDENTER));
  }
View Full Code Here

  // For vanilla ToolbarView
  //

  @Override
  public ToolbarClickButton addClickButton() {
    ToolbarClickButton button = insertClickButton(items.size());
    showDividerIfNotFirst(button);
    return button;
  }
View Full Code Here

  //

  @Override
  public ToolbarClickButton insertClickButton(int beforeIndex) {
    Item item = insertItem(beforeIndex);
    ToolbarClickButton button = new ToolbarClickButton(item.proxy);
    item.asAbstractButton = button;
    return button;
  }
View Full Code Here

    this.listener = listener;
  }

  @Override
  public ToolbarClickButton addClickButton() {
    ToolbarClickButton button = insertClickButton(items.size());
    showDividerIfNotFirst(button);
    return button;
  }
View Full Code Here

  // For GroupingToolbar.View
  //

  @Override
  public ToolbarClickButton insertClickButton(int beforeIndex) {
    ToolbarClickButton button = new ToolbarClickButton(new VerticalToolbarButtonWidget());
    insertAbstractButton(button, beforeIndex);
    return button;
  }
View Full Code Here

    this.stubItem = stubItem;
  }

  @Override
  public ToolbarClickButton addClickButton() {
    ToolbarClickButton button = toolbar.insertClickButton(getAndIncrementNextIndex());
    showDividerIfSingleton(button);
    return button;
  }
View Full Code Here

    SubmenuToolbarView submenu = toolbar.addSubmenu();
    new ToolbarButtonViewBuilder()
        .setIcon(css.heading())
        .applyTo(submenu, null);
    submenu.setShowDropdownArrow(false); // Icon already has dropdown arrow.
    ToolbarClickButton defaultButton = submenu.addClickButton();
    new ToolbarButtonViewBuilder()
        .setText("Default")
        .applyTo(defaultButton, createClearHeadingsListener());
    ToolbarView group = submenu.addGroup();
    for (int level : asArray(1, 2, 3, 4)) {
View Full Code Here

    e.setInnerText("Heading " + level);
    return e;
  }

  private void createIndentButton(ToolbarView toolbar) {
    ToolbarClickButton b = toolbar.addClickButton();
    new ToolbarButtonViewBuilder()
        .setIcon(css.indent())
        .applyTo(b, new ParagraphTraversalController(editor, Paragraph.INDENTER));
  }
View Full Code Here

        .setIcon(css.indent())
        .applyTo(b, new ParagraphTraversalController(editor, Paragraph.INDENTER));
  }

  private void createOutdentButton(ToolbarView toolbar) {
    ToolbarClickButton b = toolbar.addClickButton();
    new ToolbarButtonViewBuilder()
        .setIcon(css.outdent())
        .applyTo(b, new ParagraphTraversalController(editor, Paragraph.OUTDENTER));
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.widget.toolbar.buttons.ToolbarClickButton

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.