Examples of SortDirection


Examples of autotest.common.table.DataSource.SortDirection

            if (isWidgetColumn(cell)) {
                // ignore sorting on widget columns
                return;
            }
            String columnName = columns[cell][COL_NAME];
            SortDirection newSortDirection = SortDirection.ASCENDING;
            SortSpec firstSortSpec = getFirstSortSpec();
            // when clicking on the last sorted field, invert the sort
            if (firstSortSpec != null && columnName.equals(firstSortSpec.getField())) {
                newSortDirection = invertSortDirection(firstSortSpec.getDirection());
            }
View Full Code Here

Examples of com.dci.intellij.dbn.data.sorting.SortDirection

        List<SortingInstruction> sortingInstructions = sortingState.getSortingInstructions();
        if (sortingInstructions.size() > 0) {
            buffer.append(" order by ");
            boolean instructionAdded = false;
            for (SortingInstruction sortingInstruction : sortingInstructions) {
                SortDirection sortDirection = sortingInstruction.getDirection();
                DBColumn column = dataset.getColumn(sortingInstruction.getColumnName());
                if (column != null && !sortDirection.isIndefinite()) {
                    buffer.append(instructionAdded ? ", " : "");
                    buffer.append(column.getName());
                    buffer.append(" ");
                    buffer.append(sortDirection.getSqlToken());
                    instructionAdded = true;
                }
            }
        }
    }
View Full Code Here

Examples of com.dci.intellij.dbn.data.sorting.SortDirection

        this.form = form;
    }

    public void update(AnActionEvent e) {
        SortingInstruction sortingInstruction = form.getSortingInstruction();
        SortDirection direction = sortingInstruction.getDirection();
        Icon icon =
            direction == SortDirection.ASCENDING ? Icons.DATA_SORTING_ASC :
            direction == SortDirection.DESCENDING ? Icons.DATA_SORTING_DESC : null;
        e.getPresentation().setIcon(icon);
        e.getPresentation().setText("Change sorting direction");
View Full Code Here

Examples of com.google.appengine.api.datastore.Query.SortDirection

      }

      @Override
      public Find<T> sort(String field, Find.Sort direction)
      {
        SortDirection dir;

        switch (direction)
        {
          case Ascending :
            dir = SortDirection.ASCENDING;
View Full Code Here

Examples of com.google.appengine.api.datastore.Query.SortDirection

  }

  @Override
  public ListQueryResult getAll(String kind, String sortColumn, honeycrm.client.s.SortDirection sortDirection, int from, int to) {
    final Query q = new Query(kind);
    final SortDirection dir = sortDirection.equals(honeycrm.client.s.SortDirection.Ascending) ? SortDirection.ASCENDING : SortDirection.DESCENDING;
    q.addSort(sortColumn, dir);
    PreparedQuery pq = db.prepare(q);
    return copy.entitiesToDtoArray(kind, pq.countEntities(withDefaults()), pq.asIterable(withLimit(to - from + 1).offset(from)), false);
  }
View Full Code Here

Examples of com.google.appengine.api.datastore.Query.SortDirection

      boolean moreSort = direction.endsWith(",");
      if (moreSort) {
        direction = direction.substring(0, direction.length() - 1);
      }

      SortDirection sd = null;
      if (direction.equals("ASC")) {
        sd = SortDirection.ASCENDING;
      } else if (direction.equals("DESC")) {
        sd = SortDirection.DESCENDING;
      } else {
View Full Code Here

Examples of com.google.appengine.api.datastore.Query.SortDirection

  }

  /** Modifies the instance */
  void addOrder(String condition) {
    condition = condition.trim();
    SortDirection dir = SortDirection.ASCENDING;

    if (condition.startsWith("-")) {
      dir = SortDirection.DESCENDING;
      condition = condition.substring(1).trim();
    }
View Full Code Here

Examples of com.smartgwt.client.types.SortDirection

        }
        String[] sortFields = sortByString.split(",");
        SortSpecifier[] sortSpecifiers = new SortSpecifier[sortFields.length];
        for (int i = 0; i < sortFields.length; i++) {
            String sortField = sortFields[i];
            SortDirection sortDirection = SortDirection.ASCENDING;
            if(sortField.startsWith("-")) {
                sortDirection = SortDirection.DESCENDING;
                sortField = sortField.substring(1, sortField.length());
            }
            sortSpecifiers[i] = new SortSpecifier(sortField, sortDirection);
View Full Code Here

Examples of com.sun.faban.common.SortDirection

            } else {
                row[7] = "&nbsp;";
            }
        }

        SortDirection enumValForDirection = SortDirection.valueOf(sortDirection);
        table.sort(column, enumValForDirection);
        return table;
    }
View Full Code Here

Examples of com.sun.faban.common.SortDirection

            row[6] = target.red;
            row[7] = target.orange;
            row[8] = target.yellow;
        }

        SortDirection enumValForDirection = SortDirection.valueOf(sortDirection);
        table.sort(column, enumValForDirection);
        return table;
    }
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.