com.raelity.jvi
Class DefaultViFS

java.lang.Object
  extended by com.raelity.jvi.DefaultViFS
All Implemented Interfaces:
ViFS

public class DefaultViFS
extends Object
implements ViFS


Constructor Summary
DefaultViFS()
           
 
Method Summary
 void edit(ViTextView tv, int n, boolean force)
          Edit the nth file.
 String getDisplayFileName(ViBuffer buf)
           
 boolean isModified(ViBuffer buf)
          Is the associtated document modified?
 boolean isReadOnly(ViBuffer buf)
          Is the associtated document read only?
 void write(ViTextView tv, boolean force)
          Write the specified "file object".
 void write(ViTextView tv, File file, boolean force)
          Write the specified text to the specified file.
 void writeAll(boolean force)
          Write all open stuff.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViFS

public DefaultViFS()
Method Detail

getDisplayFileName

public String getDisplayFileName(ViBuffer buf)
Specified by:
getDisplayFileName in interface ViFS

isReadOnly

public boolean isReadOnly(ViBuffer buf)
Description copied from interface: ViFS
Is the associtated document read only?

Specified by:
isReadOnly in interface ViFS

isModified

public boolean isModified(ViBuffer buf)
Description copied from interface: ViFS
Is the associtated document modified?

Specified by:
isModified in interface ViFS

write

public void write(ViTextView tv,
                  boolean force)
Description copied from interface: ViFS
Write the specified "file object".

Specified by:
write in interface ViFS

writeAll

public void writeAll(boolean force)
Description copied from interface: ViFS
Write all open stuff.

Specified by:
writeAll in interface ViFS

write

public void write(ViTextView tv,
                  File file,
                  boolean force)
Description copied from interface: ViFS
Write the specified text to the specified file. If file is null, use a dialog to get the file name.

Specified by:
write in interface ViFS

edit

public void edit(ViTextView tv,
                 int n,
                 boolean force)
Description copied from interface: ViFS
Edit the nth file. If n < 0 then n is MRU; n == -1 is most recent.

Specified by:
edit in interface ViFS