org.gerhardb.jibs.util
Class FileLoopHelper

java.lang.Object
  extended by org.gerhardb.jibs.util.FileLoopHelper

public class FileLoopHelper
extends java.lang.Object

Some helpfull utility functions


Field Summary
static java.text.SimpleDateFormat FILE_DATE
           
static java.lang.String FILE_DATE_FORMAT
           
static java.text.SimpleDateFormat LONG_DATE
           
static java.lang.String RELABEL_POSTFIX
           
 
Constructor Summary
FileLoopHelper(javax.swing.JFrame frame, java.lang.String baseTitle, javax.swing.JFormattedTextField relabelFld, javax.swing.JLabel label, javax.swing.JProgressBar bar, java.io.File logFile)
           
 
Method Summary
static boolean checkDirectory(java.lang.String dir, javax.swing.JButton saveBtn)
           
 void done()
           
 javax.swing.JProgressBar getBarX()
           
 java.util.ArrayList getFilesFromDirectories(java.io.File[] dirArray)
           
static int getIntFromField(javax.swing.JFormattedTextField field, int theDefault)
           
 javax.swing.JLabel getLabel()
           
 EzLogger getLog()
           
 int getRelableCount()
           
static void main(java.lang.String[] args)
           
static javax.swing.JFormattedTextField makeRelabelFld()
           
 java.io.File renameUnique(java.io.File currFile)
           
 void setIndeterminate(boolean indeterminate)
           
 void setMaximum(int max)
           
 void setValue(int value)
           
 void updateCountField()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELABEL_POSTFIX

public static final java.lang.String RELABEL_POSTFIX
See Also:
Constant Field Values

FILE_DATE_FORMAT

public static final java.lang.String FILE_DATE_FORMAT
See Also:
Constant Field Values

FILE_DATE

public static final java.text.SimpleDateFormat FILE_DATE

LONG_DATE

public static final java.text.SimpleDateFormat LONG_DATE
Constructor Detail

FileLoopHelper

public FileLoopHelper(javax.swing.JFrame frame,
                      java.lang.String baseTitle,
                      javax.swing.JFormattedTextField relabelFld,
                      javax.swing.JLabel label,
                      javax.swing.JProgressBar bar,
                      java.io.File logFile)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getBarX

public javax.swing.JProgressBar getBarX()

setValue

public void setValue(int value)

setMaximum

public void setMaximum(int max)

setIndeterminate

public void setIndeterminate(boolean indeterminate)

done

public void done()

getLabel

public javax.swing.JLabel getLabel()

getLog

public EzLogger getLog()

updateCountField

public void updateCountField()

getRelableCount

public int getRelableCount()

getFilesFromDirectories

public java.util.ArrayList getFilesFromDirectories(java.io.File[] dirArray)

renameUnique

public java.io.File renameUnique(java.io.File currFile)

getIntFromField

public static int getIntFromField(javax.swing.JFormattedTextField field,
                                  int theDefault)

makeRelabelFld

public static javax.swing.JFormattedTextField makeRelabelFld()

checkDirectory

public static boolean checkDirectory(java.lang.String dir,
                                     javax.swing.JButton saveBtn)

main

public static void main(java.lang.String[] args)


Copyright ? 2007 Gerhard Beck. All rights reserved. Subject to GPL.