com.photoviewer.client.ui
Class ThumbManager

java.lang.Object
  extended bycom.photoviewer.client.ui.ThumbManager

public class ThumbManager
extends java.lang.Object

This class loads the thumbnails for a given directory into the main view area next to the Tree widget.

Author:
John De Regnaucourt

Constructor Summary
ThumbManager(PhotoViewer thinlet)
          Construct a ThumbManager instance
 
Method Summary
 void firstPage()
          Move to the 1st page of thumbnails.
 int getPos()
           
 void lastPage()
          Move to the last page of thumbnails.
 void loadThumbs(java.util.Vector files, java.lang.String note, boolean reset)
          Begin the process of loading all of the thumbs for a given node in the tree.
 void nextPage()
          Goto the next page of thumbnails
 void prevPage()
          Goto the previous page of thumbnails
 void tabSelected()
          Called when the thumbnail (explore) tab is selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbManager

public ThumbManager(PhotoViewer thinlet)
Construct a ThumbManager instance

Parameters:
thinlet - Thinlet reference
Method Detail

tabSelected

public void tabSelected()
Called when the thumbnail (explore) tab is selected.


loadThumbs

public void loadThumbs(java.util.Vector files,
                       java.lang.String note,
                       boolean reset)
Begin the process of loading all of the thumbs for a given node in the tree.

Parameters:
files - Vector of FileObjects for the current selected tree node
note - String that will be displayed in the title area above the thumb list. Will
reset - boolean indicating whether or not the 'current position' should be reset.

nextPage

public void nextPage()
Goto the next page of thumbnails


prevPage

public void prevPage()
Goto the previous page of thumbnails


firstPage

public void firstPage()
Move to the 1st page of thumbnails.


lastPage

public void lastPage()
Move to the last page of thumbnails.


getPos

public int getPos()
Returns:
int current position of the 1st thumbnail on the page.