Class AviConverterWindowController

java.lang.Object
  extended byNSWindowController
      extended byWindowController
          extended byAviConverterWindowController

public class AviConverterWindowController
extends WindowController

Controls a window that converts all the AVI files in the incoming directory to Quicktime movies with the help of the Avi2Mov application. An AVI file is a file with an extension of "avi" or "divx" The window displays a progress bar controlled by a separate thread.

It opens a window only if there is some AVI files to convert. Otherwise, it just dies silently.

See Also:
Serialized Form

Field Summary
(package private)  NSTextField nameField
           
(package private)  NSButton previewButton
          Button linked to the closeWindow action
(package private)  NSProgressIndicator progressBar
           
(package private)  NSTextField statusField
           
 
Constructor Summary
AviConverterWindowController()
          Load the nib and shows the window if there is something to do
 
Method Summary
 void closeWindow(java.lang.Object sender)
          Closes the window.
static java.io.File nextFileToConvert()
          Returns the first AVI file found in the "incoming" directory.
 void windowDidLoad()
          Shows the window if there is something to be converted
 void windowWillClose(NSNotification aNotification)
          Cleans, ie calls the clean() method
 
Methods inherited from class WindowController
colorForRow, scrollViewOf, shouldRememberWindowPos, tableViewWillDisplayCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameField

NSTextField nameField

progressBar

NSProgressIndicator progressBar

statusField

NSTextField statusField

previewButton

NSButton previewButton
Button linked to the closeWindow action

Constructor Detail

AviConverterWindowController

public AviConverterWindowController()
Load the nib and shows the window if there is something to do

Method Detail

windowDidLoad

public void windowDidLoad()
Shows the window if there is something to be converted

Overrides:
windowDidLoad in class WindowController

nextFileToConvert

public static java.io.File nextFileToConvert()
Returns the first AVI file found in the "incoming" directory.

NB: the "incoming" name should be taken from the core and not hardcoded


closeWindow

public void closeWindow(java.lang.Object sender)
Closes the window. If a conversion was running, it will be cleared by the windowWillClose event


windowWillClose

public void windowWillClose(NSNotification aNotification)
Cleans, ie calls the clean() method

Overrides:
windowWillClose in class WindowController