com.huguesjohnson.jail.jailBreak.event
Class JailBreakOpenFileEvent

java.lang.Object
  |
  +--com.huguesjohnson.jail.jailBreak.event.JailBreakEvent
        |
        +--com.huguesjohnson.jail.jailBreak.event.JailBreakOpenFileEvent

public class JailBreakOpenFileEvent
extends JailBreakEvent

class JailBreakOpenFileEvent Event that occurs when a file is opened


Constructor Summary
JailBreakOpenFileEvent(java.lang.String fileName, javax.swing.filechooser.FileFilter filter)
          constructor
 
Method Summary
 java.lang.String getFileName()
          returns the name of the file that was opened
 javax.swing.filechooser.FileFilter getFilter()
          returns the FileFilter of the file that was opened The FileFilter indicates the type of file that was opened
 void setFileName(java.lang.String fileName)
          set the name of the file that was opened
 void setFilter(javax.swing.filechooser.FileFilter filter)
          sets the FileFilter of the file that was opened The FileFilter indicates the type of file that was opened
 java.lang.String toString()
          returns a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JailBreakOpenFileEvent

public JailBreakOpenFileEvent(java.lang.String fileName,
                              javax.swing.filechooser.FileFilter filter)
constructor

Parameters:
fileName - name & path of the file opened
filter - the type of file that was opened
Method Detail

getFileName

public java.lang.String getFileName()
returns the name of the file that was opened

Returns:
name of the file that was opened

setFileName

public void setFileName(java.lang.String fileName)
set the name of the file that was opened

Parameters:
fileName - name of the file that was opened

getFilter

public javax.swing.filechooser.FileFilter getFilter()
returns the FileFilter of the file that was opened The FileFilter indicates the type of file that was opened

Returns:
FileFilter of the file that was opened

setFilter

public void setFilter(javax.swing.filechooser.FileFilter filter)
sets the FileFilter of the file that was opened The FileFilter indicates the type of file that was opened

Parameters:
filter - the FileFilter of the file that was opened

toString

public java.lang.String toString()
returns a string representation of the object

Overrides:
toString in class java.lang.Object
Returns:
string representation of the object