public UIDeletionBinding(String deletebinding, Object deletetarget, String encoding) { this.deletebinding = ELReference.make(deletebinding); this.deletetarget = deletetarget; this.encoding = encoding; }
public UIDeletionBinding(String deletebinding, Object deletetarget) { this.deletebinding = ELReference.make(deletebinding); this.deletetarget = deletetarget; }
/** * A "bare" constructor suitable for the selection member of a single * selection control (UIInput); * @param valuebinding An EL reference to which the bound value is to be associated * @return The constructed UIInput control. */ public static UIInput make(String valuebinding) { UIInput togo = new UIInput(); togo.valuebinding = ELReference.make(valuebinding); return togo; }
/** * @see #make(String) * @param valuebinding An EL reference to which the bound value is to be associated * @param initvalue An initial value for the control, to take priority over any bound * value during the render cycle. * @return The constructed UIInput control. */ public static UIInput make(String valuebinding, String initvalue) { UIInput togo = new UIInput(); togo.valuebinding = ELReference.make(valuebinding); if (initvalue != null) { togo.setValue(initvalue); } return togo; } }
/** * Creates a command control which accepts a bound string (for example a * UIMessage) as the textual label. * * @see #make(UIContainer, String, String, String) */ public static UICommand make(UIContainer parent, String ID, UIBoundString commandtext, String methodbinding) { UICommand togo = new UICommand(); togo.commandtext = commandtext; togo.ID = ID; togo.methodbinding = ELReference.make(methodbinding); // TODO: do this at fixup // if (parent.getActiveForm() == null) { // throw new UniversalRuntimeException("Component " + parent // + " does not have a form parent"); // } parent.addComponent(togo); return togo; }
public static UIAnchor make(UIContainer parent, String ID, String initvalue, String binding) { UIAnchor togo = new UIAnchor(); if (initvalue != null) { togo.setValue(initvalue); } togo.valuebinding = ELReference.make(binding); togo.ID = ID; parent.addComponent(togo); return togo; }
public static UIOutputMultiline make(UIContainer parent, String ID, String binding, StringList value) { UIOutputMultiline togo = new UIOutputMultiline(); togo.ID = ID; togo.valuebinding = ELReference.make(binding); // note that StringList is not a UIType, and hence can never give rise // to input, and hence has no placeholder type, and hence must always // be set here. if (value != null) { togo.setValue(value); } parent.addComponent(togo); return togo; }
/** * Construct a new UIBoundBoolean component with the specified container as parent. * * @param parent Parent container to which the component is to be added. * @param ID (RSF) ID of this component. * @param binding An EL expression to be used as the value binding for the * contained Boolean value. May be <code>null</code>. * @param initvalue An initial value for the bound value. May be left * <code>null</code>. If neither this field nor * <code>binding</code> is set. the value present in the template * will be used. * @return The constructed UIBoundBoolean component. */ public static UIBoundBoolean make(UIContainer parent, String ID, String binding, Boolean initvalue) { UIBoundBoolean togo = new UIBoundBoolean(); togo.valuebinding = ELReference.make(binding); if (initvalue != null) { togo.setValue(initvalue.booleanValue()); } togo.ID = ID; parent.addComponent(togo); return togo; }
/** A full constructor, specifying a bound String array with an optional * initial value. Note that there is no direct renderer for such a component * in HTML. */ public static UIInputMany make(UIContainer parent, String ID, String binding, String[] initvalue) { UIInputMany togo = new UIInputMany(); togo.valuebinding = ELReference.make(binding); if (initvalue != null) { togo.setValue(initvalue); } togo.ID = ID; parent.addComponent(togo); return togo; }
/** * Constructs a text field which is bound to a particular path in the bean * model. If the initial value is set to <code>null</code> (recommended), it * will be fetched automatically from the bean model during fixup. */ public static UIOutput make(UIContainer parent, String ID, String initvalue, String binding) { UIOutput togo = new UIOutput(); if (initvalue != null) { togo.setValue(initvalue); } togo.valuebinding = ELReference.make(binding); togo.ID = ID; parent.addComponent(togo); return togo; }
/** * Construct a new UIInput component with the specified container as parent. * * @param parent Parent container to which the component is to be added. * @param ID (RSF) ID of this component. * @param binding An EL expression to be used as the value binding for the * contained String value. May be <code>null</code>. * @param initvalue An initial value for the bound value. May be left * <code>null</code>. If neither this field nor * <code>binding</code> is set. the value present in the template * will be used. * @return The constructed UIInput component. */ public static UIInput make(UIContainer parent, String ID, String binding, String initvalue) { UIInput togo = new UIInput(); togo.valuebinding = ELReference.make(binding); if (initvalue != null) { togo.setValue(initvalue); } togo.ID = ID; parent.addComponent(togo); return togo; }