net.sourceforge.jsh3modtool.gui.imagetable.cellsorters
Class FilenameCellSorter

java.lang.Object
  extended by net.sourceforge.jsh3modtool.gui.imagetable.cellsorters.AbstractCellSorter
      extended by net.sourceforge.jsh3modtool.gui.imagetable.cellsorters.FilenameCellSorter
All Implemented Interfaces:
java.util.Comparator

public class FilenameCellSorter
extends AbstractCellSorter

A cell sorter that sorts the filenames of the cells.

Author:
erma

Constructor Summary
FilenameCellSorter()
          Creates a CellNameSorter that sorts the file list ascended.
FilenameCellSorter(boolean ascending)
          Creates a CellNameSorter that sorts the file list.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          
 
Methods inherited from class net.sourceforge.jsh3modtool.gui.imagetable.cellsorters.AbstractCellSorter
getFileName, isFolderCell, isImageCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FilenameCellSorter

public FilenameCellSorter()
Creates a CellNameSorter that sorts the file list ascended.


FilenameCellSorter

public FilenameCellSorter(boolean ascending)
Creates a CellNameSorter that sorts the file list.

Parameters:
ascending - if the list should be ascending or not.
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)



Copyright © 2005 sourceforge.net. All Rights Reserved.