Examples of SystemToggleLatexToolbarCommand


Examples of org.latexlab.docs.client.commands.SystemToggleLatexToolbarCommand

 
  protected LatexCommandToolbar(final String title) {
  super(title, "200px", null);
    addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          CommandEvent.fire(new SystemToggleLatexToolbarCommand(title));
      }
  });
  }
View Full Code Here

Examples of org.latexlab.docs.client.commands.SystemToggleLatexToolbarCommand

    toolbarPanel.add(buildButton(Icons.editorIcons.AlignRight(), "Align Right", false, new SystemPasteCommand("\\begin{flushright} <text here> \\end{flushright}")));
    toolbarPanel.add(buildSeparator());
    toolbarPanel.add(buildButton(Icons.editorIcons.UnorderedList(), "Insert List", false, new SystemPasteCommand("\\begin{itemize}\n  \\item \n\\end{itemize}")));
    //toolbarPanel.add(buildButton(Icons.editorIcons.Hyperlink(), "Insert Link", true, new SystemPasteCommand("\\url{ <text here> }")));
    toolbarPanel.add(buildSeparator());
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.AboveAndBelow(), SetAboveAndBelow.TITLE, true, new SystemToggleLatexToolbarCommand(SetAboveAndBelow.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Accents(), SetAccents.TITLE, true, new SystemToggleLatexToolbarCommand(SetAccents.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Arrows(), SetArrows.TITLE, true, new SystemToggleLatexToolbarCommand(SetArrows.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.ArrowsWithCaptions()/*Icon327*/, SetArrowsWithCaptions.TITLE, true, new SystemToggleLatexToolbarCommand(SetArrowsWithCaptions.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.BinaryOperators(), SetBinaryOperators.TITLE, true, new SystemToggleLatexToolbarCommand(SetBinaryOperators.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Boundaries(), SetBoundaries.TITLE, true, new SystemToggleLatexToolbarCommand(SetBoundaries.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Comparison(), SetComparison.TITLE, true, new SystemToggleLatexToolbarCommand(SetComparison.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.DiverseSymbols(), SetDiverseSymbols.TITLE, true, new SystemToggleLatexToolbarCommand(SetDiverseSymbols.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Formatting(), SetFormatting.TITLE, true, new SystemToggleLatexToolbarCommand(SetFormatting.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.GreekLowercaseLetters(), SetGreekLowercase.TITLE, true, new SystemToggleLatexToolbarCommand(SetGreekLowercase.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.GreekUppercaseLetters(), SetGreekUppercase.TITLE, true, new SystemToggleLatexToolbarCommand(SetGreekUppercase.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Logical(), SetLogical.TITLE, true, new SystemToggleLatexToolbarCommand(SetLogical.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Mathematical(), SetConstructs.TITLE, true, new SystemToggleLatexToolbarCommand(SetConstructs.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Operators(), SetBigOperators.TITLE, true, new SystemToggleLatexToolbarCommand(SetBigOperators.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.Sets(), SetSets.TITLE, true, new SystemToggleLatexToolbarCommand(SetSets.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.SubscriptAndSuperscript(), SetSubscriptAndSuperscript.TITLE, true, new SystemToggleLatexToolbarCommand(SetSubscriptAndSuperscript.TITLE)));
    toolbarPanel.add(buildButton(Icons.latexGroupsIcons.WhiteSpacesAndDots(), SetWhiteSpacesAndDots.TITLE, true, new SystemToggleLatexToolbarCommand(SetWhiteSpacesAndDots.TITLE)));
    return toolbarPanel;
  }
View Full Code Here

Examples of org.latexlab.docs.client.commands.SystemToggleLatexToolbarCommand

        callback.onFailure(reason);
    }
    @Override
    public void onSuccess() {
      callback.onSuccess(new ExtendedMenuItem[] {
      new ExtendedMenuItem(Icons.latexGroupsIcons.AboveAndBelow(), SetAboveAndBelow.TITLE, new SystemToggleLatexToolbarCommand(SetAboveAndBelow.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Accents(), SetAccents.TITLE, new SystemToggleLatexToolbarCommand(SetAccents.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Arrows(), SetArrows.TITLE, new SystemToggleLatexToolbarCommand(SetArrows.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.ArrowsWithCaptions()/*Icon327*/, SetArrowsWithCaptions.TITLE, new SystemToggleLatexToolbarCommand(SetArrowsWithCaptions.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.BinaryOperators(), SetBinaryOperators.TITLE, new SystemToggleLatexToolbarCommand(SetBinaryOperators.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Boundaries(), SetBoundaries.TITLE, new SystemToggleLatexToolbarCommand(SetBoundaries.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Comparison(), SetComparison.TITLE, new SystemToggleLatexToolbarCommand(SetComparison.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.DiverseSymbols(), SetDiverseSymbols.TITLE, new SystemToggleLatexToolbarCommand(SetDiverseSymbols.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Formatting(), SetFormatting.TITLE, new SystemToggleLatexToolbarCommand(SetFormatting.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.GreekLowercaseLetters(), SetGreekLowercase.TITLE, new SystemToggleLatexToolbarCommand(SetGreekLowercase.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.GreekUppercaseLetters(), SetGreekUppercase.TITLE, new SystemToggleLatexToolbarCommand(SetGreekUppercase.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Logical(), SetLogical.TITLE, new SystemToggleLatexToolbarCommand(SetLogical.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Mathematical(), SetConstructs.TITLE, new SystemToggleLatexToolbarCommand(SetConstructs.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Operators(), SetBigOperators.TITLE, new SystemToggleLatexToolbarCommand(SetBigOperators.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.Sets(), SetSets.TITLE, new SystemToggleLatexToolbarCommand(SetSets.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.SubscriptAndSuperscript(), SetSubscriptAndSuperscript.TITLE, new SystemToggleLatexToolbarCommand(SetSubscriptAndSuperscript.TITLE)),
      new ExtendedMenuItem(Icons.latexGroupsIcons.WhiteSpacesAndDots(), SetWhiteSpacesAndDots.TITLE, new SystemToggleLatexToolbarCommand(SetWhiteSpacesAndDots.TITLE))
      });
    }
    });
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.