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
Represents the sort by value field.
-
Constructor Summary
ConstructorsConstructorDescriptionValueSortField(IRange key) Specifies the normal construct method.ValueSortField(IRange key, SortOrder order) Specifies the normal construct method.ValueSortField(IRange key, String customValues) Specifies the custom sort construct method. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringSpecifies the custom sort list string.final SortDataOptionSpecifies the data option of the sort field.final SortOrdergetOrder()Specifies the sort order.final voidsetCustomValues(String value) Sets the custom value list, such as:3,2,5,1.final voidsetDataOption(SortDataOption value) Sets the data option of the sort field.final voidSets the sort order.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
Specifies the normal construct method.- Parameters:
key- The column index.
-
ValueSortField
Specifies the normal construct method.- Parameters:
key- The column index.order- The sort order.
-
ValueSortField
Specifies the custom sort construct method.- Parameters:
key- the column indexcustomValues- custom list string
-
-
Method Details
-
getDataOption
Specifies the data option of the sort field.- Specified by:
getDataOptionin interfaceIValueSortField
-
setDataOption
Sets the data option of the sort field.- Specified by:
setDataOptionin interfaceIValueSortField
-
getOrder
Specifies the sort order.- Specified by:
getOrderin interfaceIValueSortField
-
setOrder
Sets the sort order.- Specified by:
setOrderin interfaceIValueSortField
-
getCustomValues
Specifies the custom sort list string.- Specified by:
getCustomValuesin interfaceIValueSortField
-
setCustomValues
Sets the custom value list, such as:3,2,5,1.- Specified by:
setCustomValuesin interfaceIValueSortField
-