KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > arooa > handlers > DummyComponent


1 package org.oddjob.arooa.handlers;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.oddjob.arooa.ArooaContext;
6 import org.oddjob.arooa.ArooaConstants;
7 import org.oddjob.arooa.RuntimeConfiguration;
8
9 /**
10  *
11  */

12
13
14 public class DummyComponent implements Serializable JavaDoc {
15
16     String JavaDoc foo;
17     RuntimeConfiguration rtc;
18     
19     public void setFoo(String JavaDoc foo) {
20         this.foo = foo;
21     }
22     
23     public String JavaDoc getFoo() {
24         return this.foo;
25     }
26     
27     public void setContext(ArooaContext context) {
28         this.rtc = (RuntimeConfiguration) context.get(ArooaConstants.CURRENTLY_CONFIGURING);
29     }
30     
31     public RuntimeConfiguration getRuntimeConfigurable() {
32         return this.rtc;
33     }
34 }
35
Popular Tags