001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.fp.document.web.struts;
017    
018    import org.kuali.kfs.fp.document.TransferOfFundsDocument;
019    import org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase;
020    
021    /**
022     * This class is the form class for the Transfer of Funds document. This method extends the parent
023     * KualiTransactionalDocumentFormBase class which contains all of the common form methods and form attributes needed by the Transfer
024     * of Funds document. It adds a new method which is a convenience method for getting at the Transfer of Funds document easier.
025     */
026    public class TransferOfFundsForm extends KualiAccountingDocumentFormBase {
027        private static final long serialVersionUID = 1L;
028    
029        /**
030         * Constructs a TransferOfFundsForm instance and sets up the appropriately casted document.
031         */
032        public TransferOfFundsForm() {
033            super();
034        }
035    
036        @Override
037        protected String getDefaultDocumentTypeName() {
038            return "TF";
039        }
040        
041        /**
042         * @return Returns the serviceBillingDocument.
043         */
044        public TransferOfFundsDocument getTransferOfFundsDocument() {
045            return (TransferOfFundsDocument) getDocument();
046        }
047    }