net.sf.jga.swing.spreadsheet
Class Application

java.lang.Object
  extended by net.sf.jga.swing.spreadsheet.Application
Direct Known Subclasses:
WebStart

public class Application
extends java.lang.Object

An application wrapper for Spreadsheet, providing a main method to allow for standalone use.

Copyright © 2004-2005 David A. Hall

Author:
David A. Hall

Constructor Summary
Application()
           
 
Method Summary
 BinaryFunctor<java.lang.String,java.lang.String,java.lang.Integer> buildConfirmFunctor()
           
 BinaryFunctor<java.lang.String,java.lang.String,?> buildErrorFunctor()
           
 UnaryFunctor<Spreadsheet,java.lang.Integer> buildLoadFunctor()
           
 BinaryFunctor<java.lang.String,java.lang.String,java.lang.String> buildPromptFunctor()
           
 BinaryFunctor<Spreadsheet,java.lang.Boolean,java.lang.Integer> buildSaveFunctor()
           
 void closeWorksheet()
           
 void createUI(Spreadsheet sheet, Controller controller)
           
protected  Controller getController()
           
 javax.swing.Action getFileExitCmd()
          Returns an Action that closes the spreadsheet.
 int loadFile(Spreadsheet sheet)
           
static void main(java.lang.String[] args)
           
 Spreadsheet makeDefaultSheet()
           
 int saveFile(Spreadsheet sheet, boolean promptForName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

makeDefaultSheet

public Spreadsheet makeDefaultSheet()

createUI

public final void createUI(Spreadsheet sheet,
                           Controller controller)

getFileExitCmd

public javax.swing.Action getFileExitCmd()
Returns an Action that closes the spreadsheet.


loadFile

public int loadFile(Spreadsheet sheet)

saveFile

public int saveFile(Spreadsheet sheet,
                    boolean promptForName)

closeWorksheet

public void closeWorksheet()

getController

protected Controller getController()

buildPromptFunctor

public BinaryFunctor<java.lang.String,java.lang.String,java.lang.String> buildPromptFunctor()

buildErrorFunctor

public BinaryFunctor<java.lang.String,java.lang.String,?> buildErrorFunctor()

buildConfirmFunctor

public BinaryFunctor<java.lang.String,java.lang.String,java.lang.Integer> buildConfirmFunctor()

buildSaveFunctor

public BinaryFunctor<Spreadsheet,java.lang.Boolean,java.lang.Integer> buildSaveFunctor()

buildLoadFunctor

public UnaryFunctor<Spreadsheet,java.lang.Integer> buildLoadFunctor()

main

public static void main(java.lang.String[] args)


Copyright © 2002-2006 David A. Hall. All Rights Reserved.