Examples of MWPaneBasicFormatter


Examples of org.wikipediacleaner.gui.swing.component.MWPaneBasicFormatter

    panel.add(textTitle, constraints);
    constraints.gridy++;

    // Original contents
    textOriginal = new MWPane(getWikipedia(), page, this);
    textOriginal.setFormatter(new MWPaneBasicFormatter());
    JScrollPane scrollOriginal = new JScrollPane(textOriginal);
    scrollOriginal.setMinimumSize(new Dimension(100, 100));
    scrollOriginal.setPreferredSize(new Dimension(1000, 500));
    scrollOriginal.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    constraints.fill = GridBagConstraints.BOTH;
    constraints.gridwidth = 2;
    constraints.gridx = 0;
    constraints.weighty = 1;
    constraints.weightx = 1;
    panel.add(scrollOriginal, constraints);
    constraints.gridy++;

    // Expanded contents
    if (showExpand) {
      textExpanded = new MWPane(getWikipedia(), page, this);
      textExpanded.setFormatter(new MWPaneBasicFormatter());
      textExpanded.setEditable(false);
      JScrollPane scrollExpanded = new JScrollPane(textExpanded);
      scrollExpanded.setMinimumSize(new Dimension(100, 100));
      scrollExpanded.setPreferredSize(new Dimension(1000, 500));
      scrollExpanded.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
View Full Code Here

Examples of org.wikipediacleaner.gui.swing.component.MWPaneBasicFormatter

   * Action called when an error is selected.
   */
  void actionSelectError() {
    CheckErrorPage errorSelected = getSelectedError();
    if (errorSelected == null) {
      textPage.setFormatter(new MWPaneBasicFormatter());
    } else {
      CheckErrorAlgorithm algorithm = errorSelected.getAlgorithm();
      MWPaneFormatter formatter = textPage.getFormatter();
      if (formatter instanceof MWPaneCheckWikiFormatter) {
        MWPaneCheckWikiFormatter cwFormatter =
View Full Code Here

Examples of org.wikipediacleaner.gui.swing.component.MWPaneBasicFormatter

    // Article contents
    if ((articleText != null) && (articleText.length() > 0)) {
      textArticle = new MWPane(getWikipedia(), articlePage, this);
      textArticle.setText(articleText);
      textArticle.setFormatter(new MWPaneBasicFormatter());
      textArticle.setEditable(false);
      textArticle.resetAttributes();
      JScrollPane scrollText = new JScrollPane(textArticle);
      scrollText.setMinimumSize(new Dimension(100, 100));
      scrollText.setPreferredSize(new Dimension(1000, 300));
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.