void afterRender() { if (mustPopEnvironment) { environment.pop(PropertyOutputContext.class); mustPopEnvironment = false; } }
/** * Pops the {@link RadioContainer} off the Environment. */ final void afterRender() { environment.pop(RadioContainer.class); }
private void popContext() { environment.pop(AjaxFormLoopContext.class); }
/** * Called at the end of the form render (or at the end of the form submission) to clean up the {@link Environment} * stack. */ void cleanupEnvironment() { heartbeat.end(); environment.pop(PropertyEditContext.class); }
void afterRender() { environment.pop(ValidationDecorator.class); }
public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { ValidationDecorator decorator = validationDecoratorFactory.newInstance(writer); environment.push(ValidationDecorator.class, decorator); renderer.renderMarkup(writer, reply); environment.pop(ValidationDecorator.class); } };
public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { ClientBehaviorSupportImpl support = new ClientBehaviorSupportImpl(); environment.push(ClientBehaviorSupport.class, support); renderer.renderMarkup(writer, reply); environment.pop(ClientBehaviorSupport.class); } };
public FieldValidator createDefaultValidator(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) { environment.push(EnvironmentMessages.class, new EnvironmentMessages(overrideMessages, overrideId)); FieldValidator fieldValidator = defaultSource.createDefaultValidator(field, overrideId, overrideMessages, locale, propertyType, propertyAnnotations); environment.pop(EnvironmentMessages.class); return fieldValidator; }
@CleanupRender void cleanup() { environment.pop(Renderable.class); } }
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { ClientBehaviorSupportImpl clientBehaviorSupport = new ClientBehaviorSupportImpl(); environment.push(ClientBehaviorSupport.class, clientBehaviorSupport); renderer.renderMarkup(writer); environment.pop(ClientBehaviorSupport.class); } };
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { ValidationDecorator decorator = validationDecoratorFactory.newInstance(writer); environment.push(ValidationDecorator.class, decorator); renderer.renderMarkup(writer); environment.pop(ValidationDecorator.class); } };
public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { PartialMarkupDocumentLinker linker = new PartialMarkupDocumentLinker(); environment.push(DocumentLinker.class, linker); renderer.renderMarkup(writer, reply); environment.pop(DocumentLinker.class); linker.commit(reply); } };
@Test public void pop_when_empty_is_error() { Environment e = new EnvironmentImpl(); try { e.pop(Runnable.class); unreachable(); } catch (NoSuchElementException ex) { } }
public FieldValidator createDefaultValidator(ComponentResources resources, String parameterName) { EnvironmentMessages em = new EnvironmentMessages(resources.getContainerMessages(), resources.getId()); environment.push(EnvironmentMessages.class, em); FieldValidator fieldValidator = defaultSource.createDefaultValidator(resources, parameterName); environment.pop(EnvironmentMessages.class); return fieldValidator; } };
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { Heartbeat heartbeat = new HeartbeatImpl(); heartbeat.begin(); environment.push(Heartbeat.class, heartbeat); renderer.renderMarkup(writer); environment.pop(Heartbeat.class); heartbeat.end(); } };
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { DocumentLinkerImpl linker = new DocumentLinkerImpl(moduleManager, omitGeneratorMeta, enablePageloadingMask, tapestryVersion); environment.push(DocumentLinker.class, linker); renderer.renderMarkup(writer); environment.pop(DocumentLinker.class); linker.updateDocument(writer.getDocument()); } };
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { DocumentLinker linker = environment.peekRequired(DocumentLinker.class); JavaScriptSupportImpl support = new JavaScriptSupportImpl(linker, javascriptStackSource, javascriptStackPathConstructor, suppressCoreStylesheetsHook); environment.push(JavaScriptSupport.class, support); renderer.renderMarkup(writer); environment.pop(JavaScriptSupport.class); support.commit(); } };
public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { Heartbeat heartbeat = new HeartbeatImpl(); heartbeat.begin(); environment.push(Heartbeat.class, heartbeat); renderer.renderMarkup(writer, reply); environment.pop(Heartbeat.class); heartbeat.end(); } };