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/JspDetailForm.java $
024: //$Author: Dan $
025: //$Revision: 13 $
026: //$Modtime: 10/30/02 2:58p $
027: /////////////////////////
028:
029: /**
030: * This class serves as the component used in JSP pages to create the detail form.
031: * This component uses an XML file as datadefinition.
032: * Creation date: (7/20/01 2:48:19 PM)
033: * @author: Administrator
034: */
035: public class JspDetailForm extends JspContainer {
036: private String fieldName = "";
037: private String fieldDataDictionary = "";
038: private String fieldSaveButton = "";
039: private String fieldDeleteButton = "";
040: private String fieldCancelButton = "";
041: private String fieldCaption = "";
042:
043: /**
044: * JspDetailForm constructor comment.
045: * @param name java.lang.String
046: * @param p com.salmonllc.html.HtmlPage
047: */
048: public JspDetailForm(String name, com.salmonllc.html.HtmlPage p) {
049: super (name, p);
050: }
051:
052: /**
053: * This method gets the cancel button on a detail form
054: * Creation date: (8/2/01 12:59:30 PM)
055: * @return java.lang.String
056: */
057: public java.lang.String getCancelButton() {
058: return fieldCancelButton;
059: }
060:
061: /**
062: * This method sets the caption on a detail form
063: * Creation date: (8/2/01 2:11:13 PM)
064: * @return java.lang.String
065: */
066: public java.lang.String getCaption() {
067: return fieldCaption;
068: }
069:
070: /**
071: * This method sets the data definition used by Detail form to create and implements the functinality.
072: * Creation date: (7/20/01 2:49:44 PM)
073: * @return java.lang.String
074: */
075: public java.lang.String getDataDictionary() {
076: return fieldDataDictionary;
077: }
078:
079: /**
080: * This method gets the delete button on a detail form
081: * Creation date: (8/2/01 12:59:30 PM)
082: * @return java.lang.String
083: */
084: public java.lang.String getDeleteButton() {
085: return fieldDeleteButton;
086: }
087:
088: /**
089: * Gets the name of the JspDetailForm Component
090: * Creation date: (7/20/01 2:49:44 PM)
091: * @return java.lang.String
092: */
093: public java.lang.String getName() {
094: return fieldName;
095: }
096:
097: /**
098: * This method gets the save button on a detail form
099: * Creation date: (8/2/01 12:59:30 PM)
100: * @return java.lang.String
101: */
102: public java.lang.String getSaveButton() {
103: return fieldSaveButton;
104: }
105:
106: /**
107: * This method sets the cancel button on a detail form
108: * Creation date: (8/2/01 12:59:30 PM)
109: * @param newCancelButton java.lang.String
110: */
111: public void setCancelButton(java.lang.String newCancelButton) {
112: fieldCancelButton = newCancelButton;
113: }
114:
115: /**
116: * This method sets the caption on a detail form
117: * Creation date: (8/2/01 2:11:13 PM)
118: * @param newCaption java.lang.String
119: */
120: public void setCaption(java.lang.String newCaption) {
121: fieldCaption = newCaption;
122: }
123:
124: /**
125: * This method sets the datadefinition used by the detail form
126: * Creation date: (7/20/01 2:49:44 PM)
127: * @param newDataDictionary java.lang.String
128: */
129: public void setDataDictionary(java.lang.String newDataDictionary) {
130: fieldDataDictionary = newDataDictionary;
131: }
132:
133: /**
134: * This method sets the delete button on a detail form
135: * Creation date: (8/2/01 12:59:30 PM)
136: * @param newDeleteButton java.lang.String
137: */
138: public void setDeleteButton(java.lang.String newDeleteButton) {
139: fieldDeleteButton = newDeleteButton;
140: }
141:
142: /**
143: * Sets the name of the component
144: * Creation date: (7/20/01 2:49:44 PM)
145: * @param newName java.lang.String
146: */
147: public void setName(java.lang.String newName) {
148: fieldName = newName;
149: }
150:
151: /**
152: * This method sets the save button on a detail form
153: * Creation date: (8/2/01 12:59:30 PM)
154: * @param newSaveButton java.lang.String
155: */
156: public void setSaveButton(java.lang.String newSaveButton) {
157: fieldSaveButton = newSaveButton;
158: }
159: }
|