01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.financial.web.struts.form;
17:
18: import org.kuali.kfs.web.struts.form.KualiAccountingDocumentFormBase;
19: import org.kuali.module.financial.document.PreEncumbranceDocument;
20:
21: /**
22: * This class is the Struts specific form object that works in conjunction with the pojo utilities to build the UI.
23: */
24: public class PreEncumbranceForm extends KualiAccountingDocumentFormBase {
25: private static final long serialVersionUID = 1L;
26:
27: /**
28: * Constructs a PreEncumbranceForm.java.
29: */
30: public PreEncumbranceForm() {
31: super ();
32: setDocument(new PreEncumbranceDocument());
33: }
34:
35: /**
36: * @return Returns the preEncumbranceDocument.
37: */
38: public PreEncumbranceDocument getPreEncumbranceDocument() {
39: return (PreEncumbranceDocument) getDocument();
40: }
41:
42: /**
43: * @param preEncumbranceDocument The preEncumbranceDocument to set.
44: */
45: public void setPreEncumbranceDocument(
46: PreEncumbranceDocument preEncumbranceDocument) {
47: setDocument(preEncumbranceDocument);
48: }
49:
50: /**
51: * This method returns the reversal date in the format MMM d, yyyy.
52: *
53: * @return String
54: */
55: public String getFormattedReversalDate() {
56: return formatReversalDate(getPreEncumbranceDocument()
57: .getReversalDate());
58: }
59: }
|