jmri.jmrit.catalog
Class DirectorySearcher

java.lang.Object
  extended by jmri.jmrit.catalog.DirectorySearcher

public class DirectorySearcher
extends Object

A file system directory searcher to locate Image files to include in an Image Catalog. This is a singleton class.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Pete Cressman Copyright 2010

Method Summary
 void cancelLooking()
           
 void close()
           
static DirectorySearcher instance()
           
 void openDirectory(boolean addDir)
          Open one directory.
 File searchFS()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static DirectorySearcher instance()

openDirectory

public void openDirectory(boolean addDir)
Open one directory.

Parameters:
addDir - -
if true, allows directory to be added as a tree to the Catalog.
                      if false, allows preview panel to drag icons.

searchFS

public File searchFS()

cancelLooking

public void cancelLooking()

close

public void close()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads