01: /* Created on 12-Jan-2006
02: */
03: package uk.org.ponder.rsf.components;
04:
05: /** A "placeholder" component (similar to UIReplicator) implementing a boolean
06: * test. Based on whether two object values (the lvalue and the rvalue) compare
07: * equal by means of Java Object.equals(), one of two genuine components specified
08: * in a serialized "proto-tree" will be placed in the view tree prior to rendering.
09: *
10: * @author Antranig Basman (amb26@ponder.org.uk)
11: */
12: public class UISwitch extends UIComponent {
13: /** The lvalue to form the basis of the comparison. If this is an instance of
14: * ELReference, this will cause the value to be fetched from the request container.
15: */
16: public Object lvalue;
17: /** The rvalue to form the basis of the comparison. If this is an instance of
18: * ELReference, this will cause the value to be fetched from the request container.
19: */
20: public Object rvalue;
21:
22: /** The component to be rendered if the lvalue and rvalue compare equal */
23: public UIComponent truecomponent;
24: /** The component to be rendered if the lvalue and rvalue do not compare equal */
25: public UIComponent falsecomponent;
26: }
|