Java Doc for Controller.java in  » Development » jga-Generic-Algorithms » net » sf » jga » swing » spreadsheet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » jga Generic Algorithms » net.sf.jga.swing.spreadsheet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jga.swing.spreadsheet.Controller

Controller
public class Controller (Code)
Provides for generally common operations on a spreadsheet when it is in an application.

Copyright © 2004-2005 David A. Hall
author:
   David A. Hall



Field Summary
final public static  intCANCEL_OPTION
    
final public static  intNO_OPTION
    
final public static  intYES_OPTION
    

Constructor Summary
public  Controller(Spreadsheet sheet)
     Builds a Controller to control the given sheet widget.

Method Summary
public  intconfirm(String msg, String title)
     Asks the user a Yes/No/Cancel question.
public  ActiongetCellEditorCmd()
     Returns an Action that changes the type of the current cell.
public  ActiongetCellFormatCmd()
     Returns an Action that reformats the current cell.
public  ActiongetCellRenameCmd()
     Returns an Action that renames the current cell.
public  ActiongetCellRendererCmd()
     Returns an Action that changes the type of the current cell.
public  ActiongetCellTypeCmd()
     Returns an Action that changes the type of the current cell.
public  ActiongetCellValidatorCmd()
     Returns an Action that changes the type of the current cell.
public  ActiongetDefaultEditableCmd()
     Returns an Action that changes the default cell format.
public  ActiongetDefaultEditorCmd()
     Returns an Action that changes the default cell editor.
public  ActiongetDefaultFormatCmd()
     Returns an Action that changes the default cell format.
public  ActiongetDefaultRendererCmd()
     Returns an Action that changes the default cell renderer.
public  ActiongetDefaultTypeCmd()
     Returns an Action that changes the default cell type.
public  ActiongetDefaultValueCmd()
     Returns an Action that changes the default cell type.
static  StringgetExceptionName(Throwable t)
    
public  ActiongetFileNewCmd()
     Returns an Action that resets the spreadsheet to default state.
public  ActiongetFileOpenCmd()
     Returns an Action that sets the spreadsheet to the contents of a file.
public  ActiongetFileSaveAsCmd()
     Returns an Action that saves the spreadsheet to a file.
public  ActiongetFileSaveCmd()
     Returns an Action that saves the spreadsheet to the file from whence it came.
public  ActiongetImportClassCmd()
     Returns an Action that allows the user to import a class.
static  ThrowablegetRootCause(Throwable t)
    
public  ActiongetSheetColumnsCmd()
     Returns an Action that resizes the worksheet.
public  ActiongetSheetRowsCmd()
     Returns an Action that resizes the worksheet.
public  URLgetSheetSource()
    
public  booleanisSheetDirty()
    
public  intloadSheet(Spreadsheet sheet)
    
public  voidnewWorksheet()
     Creates a new, empty spreadsheet with default settings.
public  voidnotify(String msg, String title)
    
public  intopenFile()
     Prompts the user for a file to open, and sets the spreadsheet to the file's contents.
public  Stringprompt(String msg, String val)
     Prompts the user for a string value.
public  intpromptAndSave()
    
public  intsaveFile()
    
public  intsaveFileAs()
    
public  intsaveSheet(Spreadsheet sheet, boolean prompt)
    
public  voidsetCellName(int row, int col)
     Prompts the user for the name of the designated cell.
public  voidsetColumnCount()
    
public  voidsetConfirmFunctor(BinaryFunctor<String, String, Integer> fn)
    
public  voidsetDefaultType()
     Prompts the user for the cell type.
public  voidsetDefaultValue()
     Prompts the user for the default cell value.
public  voidsetErrorFunctor(BinaryFunctor<String, String, ?> fn)
     Sets the functor used to display an error message.
public  voidsetLoadFunctor(UnaryFunctor<Spreadsheet, Integer> fn)
    
public  voidsetPromptFunctor(BinaryFunctor<String, String, String> fn)
     Sets the functor used to prompt the user for simple information.
public  voidsetRowCount()
    
public  voidsetSaveFunctor(BinaryFunctor<Spreadsheet, Boolean, Integer> fn)
    
public  voidsetSheetDirty(boolean flag)
    
public  voidsetSheetSource(URL url)
    

Field Detail
CANCEL_OPTION
final public static int CANCEL_OPTION(Code)



NO_OPTION
final public static int NO_OPTION(Code)



YES_OPTION
final public static int YES_OPTION(Code)




Constructor Detail
Controller
public Controller(Spreadsheet sheet)(Code)
Builds a Controller to control the given sheet widget.




Method Detail
confirm
public int confirm(String msg, String title)(Code)
Asks the user a Yes/No/Cancel question. a value taken fro



getCellEditorCmd
public Action getCellEditorCmd()(Code)
Returns an Action that changes the type of the current cell.



getCellFormatCmd
public Action getCellFormatCmd()(Code)
Returns an Action that reformats the current cell.



getCellRenameCmd
public Action getCellRenameCmd()(Code)
Returns an Action that renames the current cell.



getCellRendererCmd
public Action getCellRendererCmd()(Code)
Returns an Action that changes the type of the current cell.



getCellTypeCmd
public Action getCellTypeCmd()(Code)
Returns an Action that changes the type of the current cell.



getCellValidatorCmd
public Action getCellValidatorCmd()(Code)
Returns an Action that changes the type of the current cell.



getDefaultEditableCmd
public Action getDefaultEditableCmd()(Code)
Returns an Action that changes the default cell format.



getDefaultEditorCmd
public Action getDefaultEditorCmd()(Code)
Returns an Action that changes the default cell editor.



getDefaultFormatCmd
public Action getDefaultFormatCmd()(Code)
Returns an Action that changes the default cell format.



getDefaultRendererCmd
public Action getDefaultRendererCmd()(Code)
Returns an Action that changes the default cell renderer.



getDefaultTypeCmd
public Action getDefaultTypeCmd()(Code)
Returns an Action that changes the default cell type.



getDefaultValueCmd
public Action getDefaultValueCmd()(Code)
Returns an Action that changes the default cell type.



getExceptionName
static String getExceptionName(Throwable t)(Code)



getFileNewCmd
public Action getFileNewCmd()(Code)
Returns an Action that resets the spreadsheet to default state.



getFileOpenCmd
public Action getFileOpenCmd()(Code)
Returns an Action that sets the spreadsheet to the contents of a file.



getFileSaveAsCmd
public Action getFileSaveAsCmd()(Code)
Returns an Action that saves the spreadsheet to a file.



getFileSaveCmd
public Action getFileSaveCmd()(Code)
Returns an Action that saves the spreadsheet to the file from whence it came.



getImportClassCmd
public Action getImportClassCmd()(Code)
Returns an Action that allows the user to import a class.



getRootCause
static Throwable getRootCause(Throwable t)(Code)



getSheetColumnsCmd
public Action getSheetColumnsCmd()(Code)
Returns an Action that resizes the worksheet.



getSheetRowsCmd
public Action getSheetRowsCmd()(Code)
Returns an Action that resizes the worksheet.



getSheetSource
public URL getSheetSource()(Code)



isSheetDirty
public boolean isSheetDirty()(Code)



loadSheet
public int loadSheet(Spreadsheet sheet)(Code)
Loads a spreadsheet



newWorksheet
public void newWorksheet()(Code)
Creates a new, empty spreadsheet with default settings.



notify
public void notify(String msg, String title)(Code)
Displays an error message to the user



openFile
public int openFile()(Code)
Prompts the user for a file to open, and sets the spreadsheet to the file's contents.



prompt
public String prompt(String msg, String val)(Code)
Prompts the user for a string value.
Parameters:
  msg - the description of the string to be shown to the user
Parameters:
  val - the default or existing value of the string



promptAndSave
public int promptAndSave()(Code)
Prompts the user using a supplied functor, and returns one of YES, NO, or CANCEL



saveFile
public int saveFile()(Code)



saveFileAs
public int saveFileAs()(Code)



saveSheet
public int saveSheet(Spreadsheet sheet, boolean prompt)(Code)
Saves a spreadsheet



setCellName
public void setCellName(int row, int col)(Code)
Prompts the user for the name of the designated cell.



setColumnCount
public void setColumnCount()(Code)
Prompts the user for the number of columns



setConfirmFunctor
public void setConfirmFunctor(BinaryFunctor<String, String, Integer> fn)(Code)
Sets the functor used to ask the user a yes/no/cancel question



setDefaultType
public void setDefaultType()(Code)
Prompts the user for the cell type.



setDefaultValue
public void setDefaultValue()(Code)
Prompts the user for the default cell value.



setErrorFunctor
public void setErrorFunctor(BinaryFunctor<String, String, ?> fn)(Code)
Sets the functor used to display an error message.



setLoadFunctor
public void setLoadFunctor(UnaryFunctor<Spreadsheet, Integer> fn)(Code)
Sets the functor used to get an output stream



setPromptFunctor
public void setPromptFunctor(BinaryFunctor<String, String, String> fn)(Code)
Sets the functor used to prompt the user for simple information.



setRowCount
public void setRowCount()(Code)
Prompts the user for the number of rows



setSaveFunctor
public void setSaveFunctor(BinaryFunctor<Spreadsheet, Boolean, Integer> fn)(Code)
Sets the functor used to get an output stream



setSheetDirty
public void setSheetDirty(boolean flag)(Code)



setSheetSource
public void setSheetSource(URL url)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.