edu.oit.cst407.lcbell.texteditor
Class TextEditorController

java.lang.Object
  |
  +--edu.oit.cst407.lcbell.texteditor.TextEditorController

public class TextEditorController
extends java.lang.Object


Field Summary
protected  java.io.File currentFile
           
protected  javax.swing.JFileChooser fileChooser
           
static int LOWER_CASE
           
protected  java.io.BufferedReader reader
           
static int SENTENCE_CASE
           
protected  edu.oit.cst407.lcbell.texteditor.TextEditorModel tem
           
protected  java.io.File tempFile
           
static int TITLE_CASE
           
static int TOGGLE_CASE
           
static int UPPER_CASE
           
protected  java.io.BufferedWriter writer
           
 
Constructor Summary
TextEditorController()
          Creates new TextEditorController
 
Method Summary
 void changeCase(int caseToChange, int startingPoint, int endingPoint)
           
 java.lang.String getAboutText()
           
protected  java.io.File getFileName()
           
 java.lang.String getHelp()
           
 java.lang.String getStrBuf()
           
protected  java.io.File openFile(java.awt.Container pane)
           
protected  java.lang.String readFile()
           
protected  void renameFile(java.lang.String path)
           
 int saveAsFile(java.awt.Container pane)
           
 void saveFile(java.lang.String textToSave)
           
 void saveText(java.lang.String text)
           
protected  java.lang.String sentenceCase(java.lang.String inputText)
           
protected  java.lang.String titleCase(java.lang.String inputText)
           
protected  java.lang.String toggleCase(java.lang.String inputText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tem

protected edu.oit.cst407.lcbell.texteditor.TextEditorModel tem

fileChooser

protected javax.swing.JFileChooser fileChooser

tempFile

protected java.io.File tempFile

currentFile

protected java.io.File currentFile

reader

protected java.io.BufferedReader reader

writer

protected java.io.BufferedWriter writer

UPPER_CASE

public static final int UPPER_CASE

LOWER_CASE

public static final int LOWER_CASE

SENTENCE_CASE

public static final int SENTENCE_CASE

TITLE_CASE

public static final int TITLE_CASE

TOGGLE_CASE

public static final int TOGGLE_CASE
Constructor Detail

TextEditorController

public TextEditorController()
Creates new TextEditorController
Method Detail

changeCase

public void changeCase(int caseToChange,
                       int startingPoint,
                       int endingPoint)

sentenceCase

protected java.lang.String sentenceCase(java.lang.String inputText)

titleCase

protected java.lang.String titleCase(java.lang.String inputText)

toggleCase

protected java.lang.String toggleCase(java.lang.String inputText)

getStrBuf

public java.lang.String getStrBuf()

saveText

public void saveText(java.lang.String text)

openFile

protected java.io.File openFile(java.awt.Container pane)
                         throws java.io.IOException,
                                org.omg.CORBA.WrongTransaction

readFile

protected java.lang.String readFile()
                             throws java.io.IOException,
                                    org.omg.CORBA.WrongTransaction

saveFile

public void saveFile(java.lang.String textToSave)
              throws java.io.IOException

saveAsFile

public int saveAsFile(java.awt.Container pane)
               throws java.io.IOException,
                      org.omg.CORBA.WrongTransaction

renameFile

protected void renameFile(java.lang.String path)

getFileName

protected java.io.File getFileName()

getAboutText

public java.lang.String getAboutText()

getHelp

public java.lang.String getHelp()
                         throws java.io.IOException