001: //** Copyright Statement ***************************************************
002: //The Salmon Open Framework for Internet Applications (SOFIA)
003: // Copyright (C) 1999 - 2002, Salmon LLC
004: //
005: // This program is free software; you can redistribute it and/or
006: // modify it under the terms of the GNU General Public License version 2
007: // as published by the Free Software Foundation;
008: //
009: // This program is distributed in the hope that it will be useful,
010: // but WITHOUT ANY WARRANTY; without even the implied warranty of
011: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: // GNU General Public License for more details.
013: //
014: // You should have received a copy of the GNU General Public License
015: // along with this program; if not, write to the Free Software
016: // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
017: //
018: // For more information please visit http://www.salmonllc.com
019: //** End Copyright Statement ***************************************************
020: package com.salmonllc.jsp;
021:
022: /////////////////////////
023: //$Archive: /JADE/SourceCode/com/salmonllc/jsp/JspListForm.java $
024: //$Author: Dan $
025: //$Revision: 14 $
026: //$Modtime: 10/30/02 2:58p $
027: /////////////////////////
028:
029: /**
030: * This class is used to create the ListForm component in the framework.
031: * This component is a formatiuon of a Search Form and JSP data table.
032: * This is used when search form and datatable are specified in JSP pages
033: * Creation date: (7/20/01 2:48:19 PM)
034: * @author: Deepak Agarwal
035: */
036: public class JspListForm extends JspContainer {
037: private String fieldName = "";
038: private String fieldDataDictionary = "";
039: private String fieldButtons = "";
040: private String fieldDetailPageName = "";
041: private String fieldCaption = "";
042: private JspSearchForm fieldSearchForm = null;
043: private JspDataTable fieldDataTable = null;
044:
045: /**
046: * JspListForm constructor comment.
047: * @param name java.lang.String
048: * @param p com.salmonllc.html.HtmlPage
049: */
050: public JspListForm(String name, com.salmonllc.html.HtmlPage p) {
051: super (name, p);
052: }
053:
054: /**
055: * Gets the buttons used by Listform
056: * Creation date: (4/5/02 2:53:04 PM)
057: * @return java.lang.String
058: */
059: public java.lang.String getButtons() {
060: return fieldButtons;
061: }
062:
063: /**
064: * Gets the caption set on the ListForm component
065: * Creation date: (8/2/01 2:13:05 PM)
066: * @return java.lang.String
067: */
068: public java.lang.String getCaption() {
069: return fieldCaption;
070: }
071:
072: /**
073: * Gets the data definition, XML file name.
074: * Creation date: (7/20/01 2:49:44 PM)
075: * @return java.lang.String
076: */
077: public java.lang.String getDataDictionary() {
078: return fieldDataDictionary;
079: }
080:
081: /**
082: * Gets the JspDatatable contained in the Listform.
083: * Creation date: (7/27/01 4:35:38 PM)
084: * @return com.salmonllc.jsp.JspDataTable
085: */
086: public JspDataTable getDataTable() {
087: return fieldDataTable;
088: }
089:
090: /**
091: * Gets the name of the detail page used.
092: * Creation date: (7/25/01 3:43:23 PM)
093: * @return java.lang.String
094: */
095: public java.lang.String getDetailPageName() {
096: return fieldDetailPageName;
097: }
098:
099: /**
100: * Gets the name of the component.
101: * Creation date: (7/20/01 2:49:44 PM)
102: * @return java.lang.String
103: */
104: public java.lang.String getName() {
105: return fieldName;
106: }
107:
108: /**
109: * Gets the Search Form component used by Listform.
110: * Creation date: (7/27/01 4:33:29 PM)
111: * @return com.salmonllc.jsp.JspSearchForm
112: */
113: public JspSearchForm getSearchForm() {
114: return fieldSearchForm;
115: }
116:
117: /**
118: * This method sets the buttons used in listform.
119: * Creation date: (4/5/02 2:53:04 PM)
120: * @param newButtons java.lang.String
121: */
122: public void setButtons(java.lang.String newButtons) {
123: fieldButtons = newButtons;
124: }
125:
126: /**
127: * This method sets the caption for the listform
128: * Creation date: (8/2/01 2:13:05 PM)
129: * @param newCaption java.lang.String
130: */
131: public void setCaption(java.lang.String newCaption) {
132: fieldCaption = newCaption;
133: }
134:
135: /**
136: * Sets the data definition, XML file, used by List form
137: * Creation date: (7/20/01 2:49:44 PM)
138: * @param newDataDictionary java.lang.String
139: */
140: public void setDataDictionary(java.lang.String newDataDictionary) {
141: fieldDataDictionary = newDataDictionary;
142: }
143:
144: /**
145: * Sets the Data Table component.
146: * Creation date: (7/27/01 4:35:38 PM)
147: * @param newDataTable com.salmonllc.jsp.JspDataTable
148: */
149: public void setDataTable(JspDataTable newDataTable) {
150: fieldDataTable = newDataTable;
151: }
152:
153: /**
154: * Sets the JSP page name for Detail form is used in conjuction with Listform.
155: * Creation date: (7/25/01 3:43:23 PM)
156: * @param newDetailPageName java.lang.String
157: */
158: public void setDetailPageName(java.lang.String newDetailPageName) {
159: fieldDetailPageName = newDetailPageName;
160: }
161:
162: /**
163: * Sets the name of the Listform component
164: * Creation date: (7/20/01 2:49:44 PM)
165: * @param newName java.lang.String
166: */
167: public void setName(java.lang.String newName) {
168: fieldName = newName;
169: }
170:
171: /**
172: * Sets the SearchForm component.
173: * Creation date: (7/27/01 4:33:29 PM)
174: * @param newSearchForm com.salmonllc.jsp.JspSearchForm
175: */
176: public void setSearchForm(JspSearchForm newSearchForm) {
177: fieldSearchForm = newSearchForm;
178: }
179: }
|