|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.SaveBuffer
public class SaveBuffer
This class handles the saving of StringBuffers to files. It will pop up a file chooser allowing the user to select a destination file. If the file exists, the user is prompted for the correct course of action, ie. overwriting, appending, selecting a new filename or canceling.
| Constructor Summary | |
|---|---|
SaveBuffer(Logger log,
java.awt.Component parent)
Constructor |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main method for testing this class |
boolean |
save(java.lang.StringBuffer buf)
Save a buffer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaveBuffer(Logger log,
java.awt.Component parent)
log - the logger to send messages toparent - the parent component will be requesting a save| Method Detail |
|---|
public boolean save(java.lang.StringBuffer buf)
buf - the buffer to save
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||