net.sf.ginp.browser
Class FolderManagerImpl

java.lang.Object
  extended by net.sf.ginp.browser.FolderManagerImpl
All Implemented Interfaces:
FolderManager

public class FolderManagerImpl
extends java.lang.Object
implements FolderManager

Author:
Justin Sher

Constructor Summary
FolderManagerImpl()
           
 
Method Summary
 java.lang.String getFolder(PicCollection collection, int count)
           
 java.lang.String[] getFoldersInDirectory(PicCollection collection, java.lang.String string)
           
 int getFoldersLength(PicCollection collection)
           
 java.lang.String getNextPictureName(java.lang.String picName, PicCollection collection)
           
 java.lang.String[] getPictures(PicCollection collection)
           
 java.lang.String[] getPicturesInDirectory(PicCollection collection, java.lang.String path)
           
 int getPicturesInDirectoryLength(PicCollection collection, java.lang.String selectedFolder)
           
 int getPicturesLength(PicCollection collection)
           
 int getPicturesLength(PicCollection collection, java.lang.String path)
           
 java.lang.String getPrevPictureName(java.lang.String picName, PicCollection collection)
           
 java.lang.String[] sortPictures(java.lang.String[] ary)
          Sort the arry of picture names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderManagerImpl

public FolderManagerImpl()
Method Detail

sortPictures

public java.lang.String[] sortPictures(java.lang.String[] ary)
Sort the arry of picture names.

Specified by:
sortPictures in interface FolderManager
Parameters:
ary - Array of unSorted Picture Names
Returns:
Sorted array based on current Sort criteria.

getFoldersLength

public int getFoldersLength(PicCollection collection)
Specified by:
getFoldersLength in interface FolderManager
Returns:

getPicturesInDirectoryLength

public int getPicturesInDirectoryLength(PicCollection collection,
                                        java.lang.String selectedFolder)
Specified by:
getPicturesInDirectoryLength in interface FolderManager
Returns:

getFoldersInDirectory

public java.lang.String[] getFoldersInDirectory(PicCollection collection,
                                                java.lang.String string)
Specified by:
getFoldersInDirectory in interface FolderManager
Returns:

getPicturesInDirectory

public java.lang.String[] getPicturesInDirectory(PicCollection collection,
                                                 java.lang.String path)
Specified by:
getPicturesInDirectory in interface FolderManager
Returns:

getPrevPictureName

public java.lang.String getPrevPictureName(java.lang.String picName,
                                           PicCollection collection)
Specified by:
getPrevPictureName in interface FolderManager

getNextPictureName

public java.lang.String getNextPictureName(java.lang.String picName,
                                           PicCollection collection)
Specified by:
getNextPictureName in interface FolderManager
Returns:

getPicturesLength

public int getPicturesLength(PicCollection collection,
                             java.lang.String path)
Specified by:
getPicturesLength in interface FolderManager
Returns:

getPictures

public java.lang.String[] getPictures(PicCollection collection)
Specified by:
getPictures in interface FolderManager

getPicturesLength

public int getPicturesLength(PicCollection collection)
Specified by:
getPicturesLength in interface FolderManager
Returns:

getFolder

public java.lang.String getFolder(PicCollection collection,
                                  int count)
Specified by:
getFolder in interface FolderManager
Returns:


Copyright © 2004-2007 null. All Rights Reserved.