net.sourceforge.jsh3modtool.gui.imagetable.cellsorters
Class AbstractCellSorter
java.lang.Object
net.sourceforge.jsh3modtool.gui.imagetable.cellsorters.AbstractCellSorter
- All Implemented Interfaces:
- java.util.Comparator
- Direct Known Subclasses:
- DateCellSorter, FilenameCellSorter, FoldersFirstCellSorter
public abstract class AbstractCellSorter
- extends java.lang.Object
- implements java.util.Comparator
A skeleton class for cell sorters to extend for easier sorting.
- Author:
- erma
Method Summary |
protected java.lang.String |
getFileName(java.lang.Object obj)
Returns the objects name. |
protected boolean |
isFolderCell(java.lang.Object obj)
Returns true if the object is a folder cell. |
protected boolean |
isImageCell(java.lang.Object obj)
Returns true if the object is an image cell. |
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 |
compare, equals |
AbstractCellSorter
public AbstractCellSorter()
getFileName
protected final java.lang.String getFileName(java.lang.Object obj)
- Returns the objects name.
- Parameters:
obj
- an AbstractCell.
- Returns:
- the name of the object. (filename)
isFolderCell
protected boolean isFolderCell(java.lang.Object obj)
- Returns true if the object is a folder cell.
- Parameters:
obj
- the object to test.
- Returns:
- true if the object is a folder cell; false otherwise.
isImageCell
protected boolean isImageCell(java.lang.Object obj)
- Returns true if the object is an image cell.
- Parameters:
obj
- the object to test.
- Returns:
- true if the object is an image cell; false otherwise.
Copyright © 2005 sourceforge.net. All Rights Reserved.