01: /*
02: * Created on Apr 26, 2006
03: */
04: package uk.org.ponder.rsf.components;
05:
06: /** A component which allows raw markup to be inserted into the rendered
07: * output. Any users of this class should be flayed alive and then burnt over
08: * hot coals. You have been warned - you have stepped outside the bounds of
09: * RSF and the portability and coherence of your app cannot be guaranteed!
10: * @author Martin G. Bananas (antranig@caret.cam.ac.uk)
11: */
12:
13: public class UIVerbatim extends UIComponent {
14: /** An Object holding the raw markup to be rendered. Either a String,
15: * UIBoundString, InputStream (assumed UTF-8) or Reader, else toString()
16: * will be called to get character data. May also be an ELReference
17: * from which one of the previously mentioned types can be read.
18: */
19: public Object markup;
20:
21: public static UIVerbatim make(UIContainer parent, String ID,
22: Object markup) {
23: UIVerbatim togo = new UIVerbatim();
24: togo.ID = ID;
25: togo.markup = markup;
26:
27: parent.addComponent(togo);
28: return togo;
29: }
30: }
|