com.mtp.model
Class FileModel

java.lang.Object
  |
  +--com.mtp.model.FileModel

public class FileModel
extends Object

Models a java File object. Has options for allowing invalid files.

Author:
Matthew Pekar

Field Summary
protected  File file
           
static String FILE_CHANGED
           
protected  Listeners listeners
           
 
Constructor Summary
FileModel()
           
FileModel(File file)
           
 
Method Summary
 void addListener(FileModelListener l)
           
 boolean equals(Object o)
           
protected  void fireChange(String event)
           
 File getFile()
           
 void removeListener(FileModelListener l)
           
 void setFile(File f)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_CHANGED

public static final String FILE_CHANGED
See Also:
Constant Field Values

file

protected File file

listeners

protected Listeners listeners
Constructor Detail

FileModel

public FileModel()

FileModel

public FileModel(File file)
Method Detail

getFile

public File getFile()

setFile

public void setFile(File f)

addListener

public void addListener(FileModelListener l)

removeListener

public void removeListener(FileModelListener l)

fireChange

protected void fireChange(String event)

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2002 Matthew Pekar. All Rights Reserved.