Java Doc for KualiAccountingDocumentFormBase.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » kfs » web » struts » form » 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 » ERP CRM Financial » Kuali Financial System » org.kuali.kfs.web.struts.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.core.web.struts.form.KualiTransactionalDocumentFormBase
   org.kuali.kfs.web.struts.form.KualiAccountingDocumentFormBase

All known Subclasses:   org.kuali.module.financial.web.struts.form.NonCheckDisbursementForm,  org.kuali.module.financial.web.struts.form.DisbursementVoucherForm,  org.kuali.module.financial.web.struts.form.DistributionOfIncomeAndExpenseForm,  org.kuali.module.financial.web.struts.form.BudgetAdjustmentForm,  org.kuali.module.financial.web.struts.form.IndirectCostAdjustmentForm,  org.kuali.module.labor.web.struts.form.LaborDocumentFormBase,  org.kuali.module.financial.web.struts.form.InternalBillingForm,  org.kuali.module.purap.web.struts.form.PurchasingAccountsPayableFormBase,  org.kuali.module.financial.web.struts.form.GeneralErrorCorrectionForm,  org.kuali.module.financial.web.struts.form.AdvanceDepositForm,  org.kuali.module.financial.web.struts.form.VoucherForm,  org.kuali.module.financial.web.struts.form.TransferOfFundsForm,  org.kuali.module.financial.web.struts.form.CashReceiptForm,  org.kuali.module.financial.web.struts.form.CreditCardReceiptForm,  org.kuali.module.financial.web.struts.form.PreEncumbranceForm,  org.kuali.module.financial.web.struts.form.ProcurementCardForm,
KualiAccountingDocumentFormBase
public class KualiAccountingDocumentFormBase extends KualiTransactionalDocumentFormBase (Code)
This class is the base action form for all financial documents.


Field Summary
protected  FormFilesourceFile
    
protected  FormFiletargetFile
    

Constructor Summary
public  KualiAccountingDocumentFormBase()
     This constructor sets up empty instances for the dependent objects...

Method Summary
protected  SourceAccountingLinecreateNewSourceAccountingLine(AccountingDocument financialDocument)
    
protected  TargetAccountingLinecreateNewTargetAccountingLine(AccountingDocument financialDocument)
    
protected  voidcustomInitMaxUploadSizes()
     Adds the accounting line file size to the list of max file sizes.
public  MapgetAccountingLineEditableFields()
    
public  StringgetAccountingLineImportInstructionsUrl()
    
public  SourceAccountingLinegetBaselineSourceAccountingLine(int index)
     Implementation creates empty SourceAccountingLines as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
public  ListgetBaselineSourceAccountingLines()
    
public  TargetAccountingLinegetBaselineTargetAccountingLine(int index)
     Implementation creates empty TargetAccountingLines as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
public  ListgetBaselineTargetAccountingLines()
    
public  StringgetCurrencyFormattedSourceTotal()
     Retrieves the source accounting lines total in a currency format with commas.
public  StringgetCurrencyFormattedTargetTotal()
     Retrieves the source accounting lines total in a currency format with commas.
public  MapgetEditableAccounts()
    
public  AccountingDocumentgetFinancialDocument()
     This method retrieves an instance of the form.
public  MapgetForcedLookupOptionalFields()
     A Map of names of optional accounting line fields that require a quickfinder.
public  booleangetHideDetails()
    
public  SourceAccountingLinegetNewSourceLine()
    
public  TargetAccountingLinegetNewTargetLine()
    
public  FormFilegetSourceFile()
    
public  AccountingLineDecoratorgetSourceLineDecorator(int index)
     Implementation creates empty AccountingLineDecorators as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
public  List<AccountingLineDecorator>getSourceLineDecorators()
    
public  List<AccountingLineDecorator>getSourceLineDecorators(int minSize)
    
public  FormFilegetTargetFile()
    
public  AccountingLineDecoratorgetTargetLineDecorator(int index)
     Implementation creates empty AccountingLineDecorators as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
public  List<AccountingLineDecorator>getTargetLineDecorators()
    
public  List<AccountingLineDecorator>getTargetLineDecorators(int minSize)
    
public  booleanhasBaselineSourceAccountingLine(int index)
    
public  booleanhasBaselineTargetAccountingLine(int index)
    
public  booleanisHideDetails()
    
public  voidpopulate(HttpServletRequest request)
     Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page.
protected  voidpopulateAccountingLines()
     This method iterates over all of the source lines and all of the target lines in a transactional document, and calls prepareAccountingLineForValidationAndPersistence on each one.
public  voidpopulateSourceAccountingLine(SourceAccountingLine sourceLine)
     Populates a source accounting line bo using values from the struts form.
public  voidpopulateTargetAccountingLine(TargetAccountingLine targetLine)
     Populates a target accounting line bo using values from the struts form.
public  voidrefreshEditableAccounts()
     This method finds its appropriate document authorizer and uses that to reset the map of editable accounts, based on the current accounting lines.
public  voidresetSourceLineDecorators(int size)
     Resets the source accounting line decorators to new and ensures that there are the given number.
public  voidresetTargetLineDecorators(int size)
     Resets the target accounting line decorators to new and ensures that there are the given number.
public  voidsetAccountingLineEditableFields(Map editableFields)
    
public  voidsetBaselineSourceAccountingLines(List baselineSourceAccountingLines)
    
public  voidsetBaselineTargetAccountingLines(List baselineTargetAccountingLines)
    
public  voidsetEditableAccounts(Map editableAccounts)
    
public  voidsetForcedLookupOptionalFields(Map fieldMap)
     A Map of names of optional accounting line fields that require a quickfinder.
public  voidsetHideDetails(boolean hideDetails)
    
public  voidsetNewSourceLine(SourceAccountingLine newIncomeLine)
    
public  voidsetNewTargetLine(TargetAccountingLine newExpenseLine)
    
public  voidsetSourceFile(FormFile sourceFile)
    
public  voidsetSourceLineDecorators(List<AccountingLineDecorator> sourceLineDecorators)
    
public  voidsetTargetFile(FormFile targetFile)
    
public  voidsetTargetLineDecorators(List<AccountingLineDecorator> targetLineDecorators)
    
protected  voiduseDocumentAuthorizer(DocumentAuthorizer documentAuthorizer)
    

Field Detail
sourceFile
protected FormFile sourceFile(Code)



targetFile
protected FormFile targetFile(Code)




Constructor Detail
KualiAccountingDocumentFormBase
public KualiAccountingDocumentFormBase()(Code)
This constructor sets up empty instances for the dependent objects...




Method Detail
createNewSourceAccountingLine
protected SourceAccountingLine createNewSourceAccountingLine(AccountingDocument financialDocument)(Code)

Parameters:
  financialDocument - a new source accounting line for the document



createNewTargetAccountingLine
protected TargetAccountingLine createNewTargetAccountingLine(AccountingDocument financialDocument)(Code)

Parameters:
  financialDocument - a new target accounting line for the documet



customInitMaxUploadSizes
protected void customInitMaxUploadSizes()(Code)
Adds the accounting line file size to the list of max file sizes.
See Also:   org.kuali.core.web.struts.pojo.PojoFormBase.customInitMaxUploadSizes



getAccountingLineEditableFields
public Map getAccountingLineEditableFields()(Code)
Returns the editableFields.



getAccountingLineImportInstructionsUrl
public String getAccountingLineImportInstructionsUrl()(Code)
String



getBaselineSourceAccountingLine
public SourceAccountingLine getBaselineSourceAccountingLine(int index)(Code)
Implementation creates empty SourceAccountingLines as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
Parameters:
  index - baseline SourceAccountingLine at the given index



getBaselineSourceAccountingLines
public List getBaselineSourceAccountingLines()(Code)
current List of baseline SourceAccountingLines for use in update-event generation



getBaselineTargetAccountingLine
public TargetAccountingLine getBaselineTargetAccountingLine(int index)(Code)
Implementation creates empty TargetAccountingLines as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
Parameters:
  index - baseline TargetAccountingLine at the given index



getBaselineTargetAccountingLines
public List getBaselineTargetAccountingLines()(Code)
current List of baseline TargetAccountingLines for use in update-event generation



getCurrencyFormattedSourceTotal
public String getCurrencyFormattedSourceTotal()(Code)
Retrieves the source accounting lines total in a currency format with commas. String



getCurrencyFormattedTargetTotal
public String getCurrencyFormattedTargetTotal()(Code)
Retrieves the source accounting lines total in a currency format with commas. String



getEditableAccounts
public Map getEditableAccounts()(Code)
current Map of editableAccounts



getFinancialDocument
public AccountingDocument getFinancialDocument()(Code)
This method retrieves an instance of the form.



getForcedLookupOptionalFields
public Map getForcedLookupOptionalFields()(Code)
A Map of names of optional accounting line fields that require a quickfinder. a Map of fields



getHideDetails
public boolean getHideDetails()(Code)
hideDetails attribute
See Also:   KualiAccountingDocumentFormBase.isHideDetails()



getNewSourceLine
public SourceAccountingLine getNewSourceLine()(Code)
Returns the newSourceLine.



getNewTargetLine
public TargetAccountingLine getNewTargetLine()(Code)
Returns the newTargetLine.



getSourceFile
public FormFile getSourceFile()(Code)
Returns the sourceFile.



getSourceLineDecorator
public AccountingLineDecorator getSourceLineDecorator(int index)(Code)
Implementation creates empty AccountingLineDecorators as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
Parameters:
  index - AccountingLineDecorators for sourceLine at the given index



getSourceLineDecorators
public List<AccountingLineDecorator> getSourceLineDecorators()(Code)
current List of SourceAccountingLine decorations



getSourceLineDecorators
public List<AccountingLineDecorator> getSourceLineDecorators(int minSize)(Code)

Parameters:
  minSize - current List of SourceAccountingLine decorations, expanded to have at least minSize elements



getTargetFile
public FormFile getTargetFile()(Code)
Returns the targetFile.



getTargetLineDecorator
public AccountingLineDecorator getTargetLineDecorator(int index)(Code)
Implementation creates empty AccountingLineDecorators as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
Parameters:
  index - AccountingLineDecorator for targetLine at the given index



getTargetLineDecorators
public List<AccountingLineDecorator> getTargetLineDecorators()(Code)
current List of TargetAccountingLine decorators



getTargetLineDecorators
public List<AccountingLineDecorator> getTargetLineDecorators(int minSize)(Code)

Parameters:
  minSize - current List of TargetAccountingLine decorators, expanded to have at least minSize elements



hasBaselineSourceAccountingLine
public boolean hasBaselineSourceAccountingLine(int index)(Code)

Parameters:
  index - true if a baselineSourceAccountingLine with the given index exists



hasBaselineTargetAccountingLine
public boolean hasBaselineTargetAccountingLine(int index)(Code)

Parameters:
  index - true if a baselineTargetAccountingLine with the given index exists



isHideDetails
public boolean isHideDetails()(Code)
hideDetails attribute



populate
public void populate(HttpServletRequest request)(Code)
Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page.
See Also:   org.kuali.core.web.struts.pojo.PojoForm.populate(javax.servlet.http.HttpServletRequest)



populateAccountingLines
protected void populateAccountingLines()(Code)
This method iterates over all of the source lines and all of the target lines in a transactional document, and calls prepareAccountingLineForValidationAndPersistence on each one. This is called because a user could have updated already existing accounting lines that had blank values in composite key fields.



populateSourceAccountingLine
public void populateSourceAccountingLine(SourceAccountingLine sourceLine)(Code)
Populates a source accounting line bo using values from the struts form. This is in place to make sure that all of the composite key objects have the correct values in them. This should be overridden by children forms in the situation where document level attributes need to be pushed down into the accounting lines.
Parameters:
  sourceLine -



populateTargetAccountingLine
public void populateTargetAccountingLine(TargetAccountingLine targetLine)(Code)
Populates a target accounting line bo using values from the struts form. This is in place to make sure that all of the composite key objects have the correct values in them. This should be overridden by children forms in the situation where document level attributes need to be pushed down into the accounting lines.
Parameters:
  targetLine -



refreshEditableAccounts
public void refreshEditableAccounts()(Code)
This method finds its appropriate document authorizer and uses that to reset the map of editable accounts, based on the current accounting lines.



resetSourceLineDecorators
public void resetSourceLineDecorators(int size)(Code)
Resets the source accounting line decorators to new and ensures that there are the given number. These decorators take very little memory, there are few of them on the page, and they are rarely reset, so this method does it the simple way.
Parameters:
  size -



resetTargetLineDecorators
public void resetTargetLineDecorators(int size)(Code)
Resets the target accounting line decorators to new and ensures that there are the given number. These decorators take very little memory, there are few of them on the page, and they are rarely reset, so this method does it the simple way.
Parameters:
  size -



setAccountingLineEditableFields
public void setAccountingLineEditableFields(Map editableFields)(Code)

Parameters:
  editableFields - The editableFields to set.



setBaselineSourceAccountingLines
public void setBaselineSourceAccountingLines(List baselineSourceAccountingLines)(Code)
Sets the current List of baseline SourceAccountingLines to the given List
Parameters:
  baselineSourceAccountingLines -



setBaselineTargetAccountingLines
public void setBaselineTargetAccountingLines(List baselineTargetAccountingLines)(Code)
Sets the current List of baseline TargetAccountingLines to the given List
Parameters:
  baselineTargetAccountingLines -



setEditableAccounts
public void setEditableAccounts(Map editableAccounts)(Code)

Parameters:
  editableAccounts - the account Map to set



setForcedLookupOptionalFields
public void setForcedLookupOptionalFields(Map fieldMap)(Code)
A Map of names of optional accounting line fields that require a quickfinder. a Map of fields



setHideDetails
public void setHideDetails(boolean hideDetails)(Code)

Parameters:
  hideDetails -



setNewSourceLine
public void setNewSourceLine(SourceAccountingLine newIncomeLine)(Code)

Parameters:
  newIncomeLine - The newSourceLine to set.



setNewTargetLine
public void setNewTargetLine(TargetAccountingLine newExpenseLine)(Code)

Parameters:
  newExpenseLine - The newTargetLine to set.



setSourceFile
public void setSourceFile(FormFile sourceFile)(Code)

Parameters:
  sourceFile - The sourceFile to set.



setSourceLineDecorators
public void setSourceLineDecorators(List<AccountingLineDecorator> sourceLineDecorators)(Code)
Sets the current List of SourceAccountingLine decorators
Parameters:
  sourceLineDecorators -



setTargetFile
public void setTargetFile(FormFile targetFile)(Code)

Parameters:
  targetFile - The targetFile to set.



setTargetLineDecorators
public void setTargetLineDecorators(List<AccountingLineDecorator> targetLineDecorators)(Code)
Sets the current List of TargetAccountingLine decorators
Parameters:
  targetLineDecorators -



useDocumentAuthorizer
protected void useDocumentAuthorizer(DocumentAuthorizer documentAuthorizer)(Code)
Refactored out actually calling the documentAuthorizer methods, since FinancialDocuments call a differently-parameterized version of getEditMode
Parameters:
  documentAuthorizer -



Fields inherited from org.kuali.core.web.struts.form.KualiTransactionalDocumentFormBase
protected Map forcedReadOnlyFields(Code)(Java Doc)

Methods inherited from org.kuali.core.web.struts.form.KualiTransactionalDocumentFormBase
protected String discoverDocumentTypeName()(Code)(Java Doc)
protected static String formatReversalDate(java.sql.Date reversalDate)(Code)(Java Doc)
public Map getForcedReadOnlyFields()(Code)(Java Doc)
public TransactionalDocument getTransactionalDocument()(Code)(Java Doc)
public void setForcedReadOnlyFields(Map forcedReadOnlyFields)(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.