org.apache.tapestry
Interface IRender

All Known Subinterfaces:
IComponent, IDirect, IDirectEvent, IExternalPage, IForm, IFormComponent, IFormWidget, ILinkComponent, IPage, ITableModelSource, ITableRendererListener, ITemplateComponent, ITreeModelSource, IWidget, TranslatedField, ValidatableField, ValidatableFieldExtension
All Known Implementing Classes:
AbstractComponent, AbstractFormComponent, AbstractFormWidget, AbstractLinkComponent, AbstractPage, AbstractPostfield, AbstractTableRowComponent, AbstractTableViewComponent, AbstractWidget, AjaxShellDelegate, AjaxStatus, Any, Autocompleter, BaseComponent, BasePage, BaseTagWriter, Block, BlockRenderer, Body, Button, Card, Checkbox, CheckboxGroup, Choose, Conditional, ControlCheckbox, ControlledCheckbox, DateField, DatePicker, Deck, Delegator, Describe, Dialog, DirectLink, Do, DropdownDatePicker, DropdownTimePicker, DumpObject, ElseBean, Exception, ExceptionDisplay, ExternalLink, FieldLabel, ForBean, Form, FormConditional, FormTable, Frame, GenericLink, Go, GTimePicker, Hidden, IfBean, Image, Image, ImageSubmit, InlineEditBox, Input, Insert, InsertText, Inspector, InspectorButton, InvokeListener, LinkSubmit, ListEdit, LocalizedStringRender, MaskEdit, MultiplePropertySelection, NumericField, OnEvent, Option, Option, PageLink, Palette, PaletteColumn, PaletteOption, Postfield, PropertySelection, PropertySelection, Radio, RadioGroup, Relation, RenderBlock, RenderBody, RenderBridge, RenderString, RequestDisplay, Rollover, Script, ScriptIncludes, Select, Select, SelectionField, Selector, ServiceLink, Setvar, Shell, ShowEngine, ShowProperties, ShowSpecification, ShowTemplate, SimpleAjaxShellDelegate, SimpleTableColumnComponent, SimpleTableColumnFormComponent, SimpleTableColumnSortImage, SimpleTableColumnSortLink, StaleLink, Style, Submit, Suggest, Table, TableColumns, TableFormPages, TableFormRows, TablePages, TableRows, TableValues, TableView, TextArea, TextField, TextToken, Timeout, Timer, Tree, TreeDataView, TreeNodeView, TreeTable, TreeTableDataView, TreeTableNodeViewDelegator, TreeView, Upload, ValidatingTextField, ValidField, ViewTabs, When, WMLException, WMLStaleLink, XTile

public interface IRender

An element that may be asked to render itself to an IMarkupWriter using a IRequestCycle.

This primarily includes IComponent and IPage, but also extends to other things, such as objects responsible for rendering static markup text.

Author:
Howard Lewis Ship

Method Summary
 void render(IMarkupWriter writer, IRequestCycle cycle)
          The principal rendering/rewinding method.
 

Method Detail

render

void render(IMarkupWriter writer,
            IRequestCycle cycle)
The principal rendering/rewinding method. This will cause the receiving component to render its top level elements (HTML text and components).

Renderring and rewinding are the exact same process. The same code that renders must be able to restore state by going through the exact same operations (even though the output is discarded).



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.