Examples of IObservationFieldMatcher


Examples of org.aavso.tools.vstar.data.filter.IObservationFieldMatcher

    // Add all non-null (valid) matchers to the filter.
    boolean filterError = false;

    for (ObservationFilterPane filterPane : filterPanes) {
      try {
        IObservationFieldMatcher matcher = filterPane.getFieldMatcher();
        if (matcher != null) {
          filter.addMatcher(matcher);
        }
      } catch (IllegalArgumentException e) {
        filterError = true;
View Full Code Here

Examples of org.aavso.tools.vstar.data.filter.IObservationFieldMatcher

  private String createFilterRepresentation() {
    StringBuffer buf = new StringBuffer();

    int activeFilterCount = 0;
    for (ObservationFilterPane filterPane : filterPanes) {
      IObservationFieldMatcher matcher = filterPane.getFieldMatcher();

      if (matcher != null) {
        activeFilterCount++;
      }
    }

    for (ObservationFilterPane filterPane : filterPanes) {
      IObservationFieldMatcher matcher = filterPane.getFieldMatcher();

      if (matcher != null) {
        String desc = matcher.getParsableDescription();
        buf.append(desc);
        activeFilterCount--;
        if (activeFilterCount > 0) {
          buf.append(" AND\n");
        }
View Full Code Here

Examples of org.aavso.tools.vstar.data.filter.IObservationFieldMatcher

   * @throws IllegalArgumentException
   *             if the entered value does not match the type of the filter.
   */
  public IObservationFieldMatcher getFieldMatcher()
      throws IllegalArgumentException {
    IObservationFieldMatcher matcher = null;

    if (currFilter != null) {
      matcher = currFilter.create(valueField.getText().trim(), currOp);
      if (matcher == null) {
        String msg = "Invalid " + currFilter.getDisplayName()
View Full Code Here

Examples of org.aavso.tools.vstar.data.filter.IObservationFieldMatcher

        String name = (String) filterNamesList.getSelectedItem();

        if (NONE.equals(name)) {
          resetFilter();
        } else {
          IObservationFieldMatcher filter = ObservationFilter.MATCHERS
              .get(name);
          // Update operator list and current values if a different
          // matcher has been selected.
          if (filter != currFilter) {
            filterOpsList.removeAllItems();
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.