01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.event;
06:
07: import java.awt.*;
08: import java.awt.event.*;
09:
10: /**
11: * ScriptedTextListener is used to determine what happens when
12: * a Scripted Event happens, such as a JavaScript event on the client
13: * browser.
14: *
15: * @author Robin Sharp
16: */
17:
18: public class ScriptedTextListener extends ScriptedListener implements
19: TextListener {
20: public final static String TEXT_VALUE_CHANGED = "onchange";
21:
22: /**
23: * Construct a listener with the script content type.
24: */
25: public ScriptedTextListener(String contentType) {
26: super (contentType);
27: }
28:
29: /**
30: * Get the text Value Changed Script.
31: */
32: public Object getTextValueChangedScript() {
33: return get(TEXT_VALUE_CHANGED);
34: }
35:
36: /**
37: * Get the text Value Changed Script.
38: */
39: public ScriptedTextListener setTextValueChangedScript(
40: Object textValueChangedScript) {
41: put(TEXT_VALUE_CHANGED, textValueChangedScript);
42: return this ;
43: }
44:
45: // STUB EVENT HANDLERS /////////////////////////////////////////////////////
46:
47: public void textValueChanged(TextEvent e) {
48: };
49:
50: // PRIVATE /////////////////////////////////////////////////////////////////
51:
52: }
|