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.forms;
021:
022: /////////////////////////
023: //$Archive: /JADE/SourceCode/com/salmonllc/forms/BaseListFormComponent.java $
024: //$Author: Dan $
025: //$Revision: 6 $
026: //$Modtime: 10/30/02 2:38p $
027: /////////////////////////
028: import com.salmonllc.html.*;
029:
030: /**
031: * This type is used as a typesafe container for ListForm Components.
032: */
033: public class BaseListFormComponent {
034: // 1 - Name, 2 - search component, 3 - list component, 4 - search component caption
035: private String _name;
036: private HtmlComponent _listComp;
037: private HtmlComponent _searchComp;
038: private HtmlComponent _searchCapComp;
039:
040: /**
041: * This method is the default Constructor
042: */
043: public BaseListFormComponent() {
044: super ();
045: }
046:
047: /**
048: * Get the List Component.
049: */
050: public HtmlComponent getListComponent() {
051: return _listComp;
052: }
053:
054: /**
055: * Get the Name of this Component.
056: */
057: public String getName() {
058: return _name;
059: }
060:
061: /**
062: * Get the Search Caption Component.
063: */
064: public HtmlComponent getSearchCapComponent() {
065: return _searchCapComp;
066: }
067:
068: /**
069: * Get the Search Component.
070: */
071: public HtmlComponent getSearchComponent() {
072: return _searchComp;
073: }
074:
075: /**
076: * Set the List Component.
077: */
078: public void setListComponent(HtmlComponent comp) {
079: _listComp = comp;
080: }
081:
082: /**
083: * Set the Name of the Component.
084: */
085: public void setName(String name) {
086: _name = name;
087: }
088:
089: /**
090: * Set the Search Caption Component.
091: */
092: public void setSearchCapComponent(HtmlComponent comp) {
093: _searchCapComp = comp;
094: }
095:
096: /**
097: * Set the Search Component.
098: */
099: public void setSearchComponent(HtmlComponent comp) {
100: _searchComp = comp;
101: }
102: }
|