Tabnine Logo
uk.org.ponder.rsf.components
Code IndexAdd Tabnine to your IDE (free)

How to use uk.org.ponder.rsf.components

Best Java code snippets using uk.org.ponder.rsf.components (Showing top 20 results out of 315)

origin: uk.org.ponder.rsf/rsf-core

/**
 * Adds a binding to the supplied parameter list that will assign the EL
 * expression <code>source</code> to <code>transit</code> and then
 * <code>transit</code> to <code>dest</code>, a classic usage of
 * "whole-object validation through transit".
 */
public static void addTransitBinding(ParameterList paramlist, String source,
  String transit, String dest) {
 paramlist.add(new UIELBinding(transit, new ELReference(source)));
 paramlist.add(new UIELBinding(dest, new ELReference(transit)));
}
origin: uk.org.ponder.rsf/rsf-core

/** {@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);
}
origin: uk.org.ponder.rsf/rsf-core

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;
}
origin: uk.org.ponder.rsf/rsf-core

 public UIJointContainer evolveSelect(UISelect toevolve) {
  UIJointContainer joint = new UIJointContainer(toevolve.parent,
    toevolve.ID, COMPONENT_ID);
  toevolve.parent.remove(toevolve);
  toevolve.ID = "select";
  joint.addComponent(toevolve);
  return joint;
 }
}
origin: uk.org.ponder.rsf/rsf-core

/**
 * Constructs a single selection control, where the submitted values are
 * identical with the rendered labels
 */
public static UISelect make(UIContainer tofill, String ID, String[] options,
  String valuebinding, String initvalue) {
 UISelect togo = make(tofill, ID, options);
 UIInput selection = UIInput.make(valuebinding);
 if (initvalue != null) {
  selection.setValue(initvalue);
 }
 togo.selection = selection;
 return togo;
}
origin: uk.org.ponder.rsf/rsf-core

/**
 * Constructs a single selection control, with labels distinct from the 
 * submitting values.
 */

public static UISelect make(UIContainer tofill, String ID, String[] options,
  String[] labels, String valuebinding, String initvalue) {
 UISelect togo = make(tofill, ID, options, valuebinding, initvalue);
 if (labels != null) {
  togo.optionnames = UIOutputMany.make(labels);
 }
 return togo;
}
origin: uk.org.ponder.rsf/rsf-core

/**
 * A "bare" constructor suitable for the selection member of a multiple
 * selection control (UIInput);
 */
public static UIInputMany make(String valuebinding) {
 UIInputMany togo = new UIInputMany();
 togo.valuebinding = new ELReference(valuebinding);
 return togo;
}
 
origin: uk.org.ponder.rsf/rsf-core

/** A constructor suitable for the value lists appearing in selection controls */
public static UIOutputMany make(String valuebinding, String resolver) {
 UIOutputMany togo = new UIOutputMany();
 togo.valuebinding = new ELReference(valuebinding);
 togo.resolver = new ELReference(resolver);
 return togo;
}
 
origin: uk.org.ponder.rsf/rsf-core

protected static UISelect make(UIContainer tofill, String ID,
  String[] options) {
 UISelect togo = new UISelect();
 togo.ID = ID;
 togo.optionlist = togo.optionnames = UIOutputMany.make(options);
 tofill.addComponent(togo);
 RSFUtil.updateChildIDs(togo);
 return togo;
}
origin: uk.org.ponder.rsf/rsf-core

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;
}
origin: uk.org.ponder.rsf/rsf-core

/**
 * 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;
}
origin: uk.org.ponder.rsf/rsf-core

private void appendComponent(UIBound toappend, String fullID) {
 if (toappend != null) {
  if (fullID != null) {
   toappend.updateFullID(fullID);
  }
  worklist.add(toappend);
 }
}
origin: uk.org.ponder.rsf/rsf-core

 public static UIBasicListMember makeBasic(UIContainer tofill, String ID,
   String parentFullID, int choiceindex) {
  UIBasicListMember togo = new UIBasicListMember();
  togo.ID = ID;
  togo.parentFullID = parentFullID;
  togo.choiceindex = choiceindex;
  togo.willinput = true;
  tofill.addComponent(togo);
  return togo;
 }
}
origin: uk.org.ponder.rsf/rsf-core

 public static UISelectChoice make(UIContainer tofill, String ID,
   String parentFullID, int choiceindex) {
  UISelectChoice togo = new UISelectChoice();
  togo.ID = ID;
  togo.parentFullID = parentFullID;
  togo.choiceindex = choiceindex;
  togo.willinput = true;
  tofill.addComponent(togo);
  return togo;
 }
}
origin: uk.org.ponder.rsf/rsf-core

 public static UISelectLabel make(UIContainer tofill, String ID,
   String parentFullID, int choiceindex) {
  UISelectLabel togo = new UISelectLabel();
  togo.ID = ID;
  togo.parentFullID = parentFullID;
  togo.choiceindex = choiceindex;
  tofill.addComponent(togo);
  return togo;
 }
}
origin: uk.org.ponder.rsf/rsf-core

/**
 * 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;
}

origin: uk.org.ponder.rsf/rsf-core

/** Constructs a top-level message component, supporting defaultible
 * message fallback as in the Spring 
 * <a href="http://www.springframework.org/docs/api/org/springframework/context/MessageSourceResolvable.html">
 * MessageSourceResolvable</a> interface.
 * See {@link #make(UIContainer, String, String, Object[])}
 */
public static UIMessage make(UIContainer parent, String ID, String messagekeys[],
  Object[] arguments) {
 UIMessage togo = make(messagekeys, arguments);
 togo.ID = ID;
 parent.addComponent(togo);
 return togo;
}
origin: uk.org.ponder.rsf/rsf-core

 /** @see #make(UIContainer, String, String, String[]) */
 
 public static UIInputMany make(UIContainer parent, String ID, String binding) {
  return make(parent, ID, binding, null);
 }
}
origin: uk.org.ponder.rsf/rsf-core

/** {@see UIInternalLink#make(UIContainer, String, UIBoundString, ViewParameters) */

public static UIInternalLink make(UIContainer parent, String ID,
  ViewParameters viewparams) {
 return make(parent, ID, (UIBoundString)null, viewparams);
}
origin: uk.org.ponder.rsf/rsf-core

 public UIJointContainer evolveTextInput(UIInput toevolve) {
  UIJointContainer joint = new UIJointContainer(toevolve.parent,
    toevolve.ID, COMPONENT_ID);
  toevolve.parent.remove(toevolve);
  toevolve.ID = SEED_ID;
  joint.addComponent(toevolve);
  return joint;
 }
}
uk.org.ponder.rsf.components

Most used classes

  • UIVerbatim
    A component which allows raw markup to be inserted into the rendered output. Any users of this class
  • ParameterList
    A type-safe list of UIParameter objects
  • UIOutput
    A UIOutput holds a single String value, which may or may not be bound to an EL value binding. It may
  • UIContainer
    The base class of all RSF components which may form containment in the component tree. Note that con
  • UIInput
    Input of a single String-typed value. May peer, in HTML, for example, with
  • DecoratorList,
  • ELReference,
  • UIELBinding,
  • UIInitBlock,
  • UIBasicListMember,
  • UIBoundList,
  • UIBoundString,
  • UIBranchContainer,
  • UIForm,
  • UIInputMany,
  • UIOutputMany,
  • UISelect,
  • UIDisabledDecorator,
  • ComponentIterator
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now