Package com.grapecity.documents.excel
Class ValueSortField
java.lang.Object
com.grapecity.documents.excel.SortFieldBase
com.grapecity.documents.excel.ValueSortField
- All Implemented Interfaces:
ISortField,IValueSortField
表示按值排序的字段。
-
Constructor Summary
ConstructorsConstructorDescriptionValueSortField(IRange key) 指定正常的构造方法。ValueSortField(IRange key, SortOrder order) 指定正常的构造方法。ValueSortField(IRange key, String customValues) 指定自定义排序构建方法。 -
Method Summary
Modifier and TypeMethodDescriptionfinal String指定自定义排序列表字符串。final SortDataOption指定排序字段的数据选项。final SortOrdergetOrder()指定排序顺序。final voidsetCustomValues(String value) 设置自定义值列表,例如:3,2,5,1。final voidsetDataOption(SortDataOption value) 设置排序字段的数据选项。final void设置排序顺序。Methods inherited from class com.grapecity.documents.excel.SortFieldBase
getKey, getPriority, getSortOn, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.grapecity.documents.excel.ISortField
getKey, getPriority, getSortOn, setPriority
-
Constructor Details
-
ValueSortField
指定正常的构造方法。- Parameters:
key- 列索引。
-
ValueSortField
指定正常的构造方法。- Parameters:
key- 列索引。order- 排序顺序。
-
ValueSortField
指定自定义排序构建方法。- Parameters:
key- 列索引customValues- 自定义列表字符串
-
-
Method Details
-
getDataOption
指定排序字段的数据选项。- Specified by:
getDataOptionin interfaceIValueSortField
-
setDataOption
设置排序字段的数据选项。- Specified by:
setDataOptionin interfaceIValueSortField
-
getOrder
指定排序顺序。- Specified by:
getOrderin interfaceIValueSortField
-
setOrder
设置排序顺序。- Specified by:
setOrderin interfaceIValueSortField
-
getCustomValues
指定自定义排序列表字符串。- Specified by:
getCustomValuesin interfaceIValueSortField
-
setCustomValues
设置自定义值列表,例如:3,2,5,1。- Specified by:
setCustomValuesin interfaceIValueSortField
-