001// Copyright (c) 2001 Hursh Jain (http://www.mollypages.org) 
002// The Molly framework is freely distributable under the terms of an
003// MIT-style license. For details, see the molly pages web site at:
004// http://www.mollypages.org/. Use, modify, have fun !
005
006package fc.web.forms;
007
008import java.io.*;
009import javax.servlet.*;
010import javax.servlet.http.*;
011
012/** 
013A dependent field.
014
015@author hursh jain
016**/
017public abstract class DependentField extends Field
018{
019Dependency  dependency;
020
021public DependentField(String name) {
022  super(name);
023  }
024
025/**
026This method should be invoked by all {@link Dependency} implementations
027in the implementations constructor.
028*/
029public void addDependency(Dependency d)
030  {
031  this.dependency = d;
032  }
033
034}