public MessageFlyweight(UIContainer parent) { rsfMessages = UIBranchContainer.make(parent, RSF_MESSAGES); errorMessages = UIBranchContainer.make(rsfMessages, "error-messages:"); infoMessages = UIBranchContainer.make(rsfMessages, "info-messages:"); confirmMessages = UIBranchContainer.make(rsfMessages, "confirm-messages:"); }
/** * Constructs a simple BranchContainer, used to group components or to cause a * rendering switch. Suitable where there will be just one branch with this ID * within its container. Where BranchContainers are created in a loop, they will * have the <code>localID</code> automatically assigned in an integer sequence. * * @see #make(UIContainer, String, String) */ public static UIBranchContainer make(UIContainer parent, String ID) { return make(parent, ID, ""); }
UIBranchContainer core = UIBranchContainer.make(togo, CORE_ID); int limit = Math.max(minlength, value.length); for (int i = 0; i < limit; ++i) { UIBranchContainer row = UIBranchContainer.make(core, "dynamic-list-input-row:", Integer.toString(i)); UIBasicListMember.makeBasic(row, "input", toevolve.getFullID(), i);
UIBranchContainer core = UIBranchContainer.make(togo, CORE_ID); int limit = Math.max(minlength, value.length); for (int i = 0; i < limit; ++i) { UIBranchContainer row = UIBranchContainer.make(core, "dynamic-list-input-row:", Integer.toString(i)); UIBasicListMember.makeBasic(row, "input", toevolve.getFullID(), i);
UIBranchContainer replicated = UIBranchContainer.make(target, replicator.component.ID, localid); expandtarget = replicated;