![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.wcfart.wcf.component.package.html Maven / Gradle / Ivy
WCF Component interfaces.
Renderable
The RendererTag is associated with a Renderable instance (it will
lookup the Renderable in the users session).
It renders
the Document retrieved by getDocument() via an XSLT stylesheet.
There may be parameters for the stylesheed provided by the
RendererParameterTag, local (valid for a single transformation)
or global (valid for all transformations).
If the Renderable happens to implement the Visible interface, it
will be rendered only if isVisible() returns true.
Component
A Component is created by a ComponentTag and rendered by a RenderTag. A Component
produces a DOM that is rendered via XSL stylesheet.
An XmlComponent is a component that holds a DOM, NodeHandlers may
be attached to the Elements of the XmlComponents DOM.
Form
A {@link net.sf.wcfart.wcf.component.Form} instance is where
{@link net.sf.wcfart.wcf.component.FormListener} can be registered -- they receive
events
- validate - the data entered by the user are validated and set into the model
(OK Button)
- revert - the models current state shall be presented to the user
(Cancel Button)
Form
implements the FormListener
interface, so
forms may listen to each other. For example, the selection in a
{@link net.sf.wcfart.wcf.table.TableComponent} is
read when the user presses the OK button in a {@link net.sf.wcfart.wcf.form.FormComponent}
To register the table's form is registered with the FormComponent do:
FormComponent form = ...
TableComponent table = ...
form.getForm().addFormListener(table.getForm());