|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.viewers.ViewerComparator
org.eclipse.jface.viewers.ViewerSorter
org.eclipse.gmf.runtime.diagram.ui.dialogs.sortfilter.SortFilterViewerSorter
Provides a ViewerSorter which tracks the type
of sorting to ascending or descending orders.
| Field Summary | |
protected com.ibm.icu.text.Collator |
collator
The locale specific collator |
protected int |
criteria
The hint for the sorting. |
| Constructor Summary | |
SortFilterViewerSorter()
|
|
| Method Summary | |
protected int |
compareString(java.lang.String item1,
java.lang.String item2)
compares the passed elements based on the current SortingDirection
|
protected int |
compareVisible(java.lang.String item1,
java.lang.String item2)
compares the passed elements based on the current SortingDirection
|
int |
getCriteria()
|
SortingDirection |
getSortingDirection()
|
void |
setCriteria(int criteria)
|
void |
setSortingDirection(SortingDirection sortingDirection)
|
void |
toggleSortingDirection()
Toggles the sorting direction from its current state. |
| Methods inherited from class org.eclipse.jface.viewers.ViewerSorter |
getCollator, getComparator |
| Methods inherited from class org.eclipse.jface.viewers.ViewerComparator |
category, compare, isSorterProperty, sort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int criteria
protected com.ibm.icu.text.Collator collator
| Constructor Detail |
public SortFilterViewerSorter()
| Method Detail |
public void toggleSortingDirection()
public SortingDirection getSortingDirection()
public void setSortingDirection(SortingDirection sortingDirection)
sortingDirection - The sortingDirection to set.public int getCriteria()
public void setCriteria(int criteria)
criteria - The criteria to set.
protected int compareString(java.lang.String item1,
java.lang.String item2)
SortingDirection
item1 - first itemitem2 - second item
0 if the first element is
the same order as the second element; and a positive number if the first
element is after the second element
protected int compareVisible(java.lang.String item1,
java.lang.String item2)
SortingDirection
item1 - first itemitem2 - second item
0 if the first element is
the same order as the second element; and a positive number if the first
element is after the second element
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.