/** Constructor for a standalone UIOutput that will be added to the tree * later. */ public static UIOutput make(String initvalue) { UIOutput togo = new UIOutput(); if (initvalue != null) { togo.setValue(initvalue); } return togo; } }
/** {@see UIInternalLink#make(UIContainer, String, UIBoundString, ViewParameters) */ public static UIInternalLink make(UIContainer parent, String ID, String text, ViewParameters viewparams) { UIBoundString linktext = null; if (text != null) { linktext = new UIOutput(); linktext.setValue(text); } return make(parent, ID, linktext, viewparams); }
/** Creates a command link which will initiate a non-idempotent request * (action cycle) to handle the command. * @param parent The parent component to which this action link will be added * as a child. * @param text The text that will be rendered to the user on this component. * @param methodbinding An RSF EL expression representing the action to be * triggered when the user activates this link. */ public static UICommand make(UIContainer parent, String ID, String text, String methodbinding) { UIBoundString commandtext = null; if (text != null) { commandtext = new UIOutput(); commandtext.setValue(text); } return make(parent, ID, commandtext, methodbinding); }
/** * Construct a navigation link. * * @param parent Container to which the link is to be added. * @param ID RSF ID of this link. * @param text Text to be rendered for this link. * @param target See {@link #target} */ public static UILink make(UIContainer parent, String ID, String linktext, String target) { UIBoundString linktextnew = null; if (linktext != null) { linktextnew = new UIOutput(); linktextnew.setValue(linktext); } return make(parent, ID, linktextnew, target); }
/** * Construct a navigation link with a bound control (e.g. UIMessage) forming * the link text. */ public static UILink make(UIContainer parent, String ID, UIBoundString linktext, String target) { UILink togo = new UILink(); togo.ID = ID; togo.target = new UIOutput(); if (target != null) { togo.target.setValue(target); } togo.linktext = linktext; 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; }
/** Create a link which, while internal, does not participate in the * ViewParameters system. This is largely useful for unmanaged environments * such as SpringMVC/Cocoon. Cannot be named "make" to avoid clashing with * UILink through ridiculous Java semantics on static methods. */ public static UIInternalLink makeURL(UIContainer parent, String ID, String target) { UIInternalLink togo = new UIInternalLink(); togo.ID = ID; togo.target = new UIOutput(); if (target != null) { togo.target.setValue(target); } parent.addComponent(togo); return togo; } /** ViewParameters representing the navigation target of this link control */
toprocess.target = new UIOutput();