public class Sorter
extends java.lang.Object
DefaultTableModel
and ArrayList of the type OntologySingleClassSlotDescription.OntologySingleClassSlotDescription| Constructor and Description |
|---|
Sorter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sortSlotDescriptionArray(java.util.ArrayList<OntologySingleClassSlotDescription> array2Sort)
Sorts a ArrayList of the Type ArrayList
|
static void |
sortSlotDescriptionArray(java.util.ArrayList<OntologySingleClassSlotDescription> array2Sort,
boolean ascending)
Sorts a ArrayList of the Type ArrayList
|
static void |
sortTableModel(javax.swing.table.DefaultTableModel currentModel,
int sortByColumn)
Method for sorting a DefaultTableModel at a specified colum index and in
ascending direction.
|
static void |
sortTableModel(javax.swing.table.DefaultTableModel currentModel,
int sortByColumn,
boolean ascending)
Method for sorting a DefaultTableModel at a specified column index and in
a specified direction.
|
public static void sortTableModel(javax.swing.table.DefaultTableModel currentModel,
int sortByColumn)
currentModel - the current modelsortByColumn - the sort by columnpublic static void sortTableModel(javax.swing.table.DefaultTableModel currentModel,
int sortByColumn,
boolean ascending)
currentModel - the current modelsortByColumn - the sort by columnascending - the ascendingpublic static void sortSlotDescriptionArray(java.util.ArrayList<OntologySingleClassSlotDescription> array2Sort)
array2Sort - the array2 sortpublic static void sortSlotDescriptionArray(java.util.ArrayList<OntologySingleClassSlotDescription> array2Sort, boolean ascending)
array2Sort - the array2 sortascending - the ascending