01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets;
06:
07: /**
08: * A SServlet is a basic servlet component.
09: *
10: * @author Robin Sharp
11: */
12:
13: public class SServlet extends SComponent {
14: /**
15: * Construct a Servlet with the name.
16: */
17: public SServlet(String className) {
18: this .className = className;
19: }
20:
21: /**
22: * Construct an unqualified Servlet.
23: */
24: public SServlet() {
25: }
26:
27: /**
28: * Returns the name of the L&F class that renders this component.
29: */
30: public Class getUIClass() {
31: return SServlet.class;
32: }
33:
34: /**
35: * Get the servlets class name.
36: */
37: public String getClassName() {
38: return className;
39: }
40:
41: /**
42: * Set the servlets class name.
43: */
44: public SServlet setClassName(String className) {
45: this .className = className;
46: return this ;
47: }
48:
49: // PRIVATE /////////////////////////////////////////////////////
50:
51: public String className;
52:
53: }
|