Package org.wikipediacleaner.api.check

Examples of org.wikipediacleaner.api.check.CheckWikiDetection


      return buttons.get(value);
    }
    if ((value == null) || !(value instanceof CheckWikiDetection)) {
      return null;
    }
    CheckWikiDetection detection = (CheckWikiDetection) value;
    JButton button = new JButton(Utilities.getImageIcon(
        "gnome-edit-find.png", EnumImageSize.SMALL));
    button.setBorderPainted(false);
    button.setContentAreaFilled(false);
    button.setActionCommand(Integer.toString(detection.getLocation()));
    button.setEnabled(textPane != null);
    button.addActionListener(EventHandler.create(
        ActionListener.class, this, "goToDetection", "actionCommand"));
    buttons.put(value, button);
    return button;
View Full Code Here


   * @return Value at row and column.
   * @see javax.swing.table.TableModel#getValueAt(int, int)
   */
  public Object getValueAt(int rowIndex, int columnIndex) {
    if ((detections != null) && (rowIndex >= 0) && (rowIndex < detections.size())) {
      CheckWikiDetection detection = detections.get(rowIndex);
      switch (columnIndex) {
      case COLUMN_ERROR_NUMBER:
        return detection.getErrorNumber();
      case COLUMN_GOTO:
        return detection;
      case COLUMN_LOCATION:
        return detection.getLocation();
      case COLUMN_LOCATION_METHOD:
        return detection.getLocationMethod();
      case COLUMN_NOTICE:
        return detection.getDetection();
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.check.CheckWikiDetection

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.