⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sortrank.java

📁 OLAP 的客户端代码
💻 JAVA
字号:
/*
 * ====================================================================
 * This software is subject to the terms of the Common Public License
 * Agreement, available at the following URL:
 *   http://www.opensource.org/licenses/cpl.html .
 * Copyright (C) 2003-2004 TONBELLER AG.
 * All Rights Reserved.
 * You must accept the terms of that agreement to use this software.
 * ====================================================================
 *
 * 
 */
package com.tonbeller.jpivot.olap.navi;

import com.tonbeller.jpivot.core.Extension;
import com.tonbeller.jpivot.olap.model.Axis;
import com.tonbeller.jpivot.olap.model.ExpressionConstants;
import com.tonbeller.jpivot.olap.model.OlapException;
import com.tonbeller.jpivot.olap.model.Position;

/**
 * Allows sorting and ranking
 * @author av
 */
public interface SortRank extends Extension, ExpressionConstants {
  /**
   * name of the Extension for lookup
   */
  public static final String ID = "sortRank";
  

  /**
   * turns sorting on / off (off = natural sorting)
   */
  public boolean isSorting();
  public void setSorting(boolean enabled);
  
  /**
   * returns true if user may sort by the members. This will be the case when
   * one of the members is a measure. The GUI will paint a "sort button" for
   * one of the members
   */
  boolean isSortable(Position position);

  /**
   * return true if the result is sorted by the members of the position
   */
  boolean isCurrentSorting(Position position);
  
  int getSortMode();
  void setSortMode(int mode);
  
  /**
   * number of members for topcount and bottomcount
   */
  int getTopBottomCount();
  void setTopBottomCount(int topBottomCount);
  
  /**
   * changes current sorting. If <code>mode</code> is <code>TOPCOUNT</code>
   * or <code>BOTTOMCOUNT</code> the current value of <code>topBottomCount</code> will be
   * used.
   * @param membersToSort the axis to sort. Its one of the "other" axes, that do not
   * contain position
   * @param position the sort criteria
   */
  void sort(Axis membersToSort, Position position) throws OlapException;
  
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -