| java.lang.Object org.apache.cocoon.forms.generation.JXMacrosHelper
JXMacrosHelper | public class JXMacrosHelper (Code) | | Helper class for the implementation of the CForms template language with JXTemplate macros.
version: $Id: JXMacrosHelper.java 497100 2007-01-17 17:53:33Z bruno $ |
Method Summary | |
public static JXMacrosHelper | createHelper(XMLConsumer consumer, Request request, String locale) Builds and helper object, given the generator's consumer. | public TreeWalker | createWalker() | public void | defineClassBody(Form form, String id, Object body) | public void | endForm() | public void | flushRoot() | public void | flushRootAndPop() Flush the root element name that has been stored in
JXMacrosHelper.generateWidget(Widget,Map) . | public void | generateRepeaterSize(Widget widget, String id) | public void | generateRepeaterWidgetLabel(Widget widget, String id, String widgetId) | public boolean | generateStyling(Map attributes) | public static boolean | generateStyling(ContentHandler handler, Map attributes) Generate a <fi:styling> element holding the attributes of a ft:*
element that are in the "fi:" namespace. | public void | generateValidationError(ValidationError error) | public void | generateWidget(Widget widget, Map arguments) Generate a widget's SAX fragment, buffering the root element's endElement()
event so that the template can insert styling information in it. | public void | generateWidgetLabel(Widget widget, String id) | public Object | getClassBody(String id) | public Form | getForm(Form form, String attributeName) | public Widget | getWidget(Widget currentWidget, String path) Get a child widget of a given widget, throwing an exception if no such child exists. | public boolean | isModified(Widget widget) | public boolean | isSelectedCase(Widget unionWidget, String caseValue) | public boolean | isValidationError(Object object) | public boolean | isVisible(Widget widget) | public Widget | peekWidget() | public void | popWidget() | public boolean | pushContainer(String path) | public boolean | pushRepeater(String path, boolean ajaxAware) Enter a repeater
Parameters: path - widget path Parameters: ajaxAware - distinguishes between <ft:repeater-widget> and <ft:repeater>. | protected boolean | pushWidget(String path, boolean unused) | public boolean | pushWidget(String path) | public void | startForm(Form form, Map attributes) |
createHelper | public static JXMacrosHelper createHelper(XMLConsumer consumer, Request request, String locale)(Code) | | Builds and helper object, given the generator's consumer.
Parameters: consumer - the generator's consumer a helper object |
generateStyling | public static boolean generateStyling(ContentHandler handler, Map attributes) throws SAXException(Code) | | Generate a <fi:styling> element holding the attributes of a ft:*
element that are in the "fi:" namespace.
Parameters: attributes - the template instruction attributes true if a <fi:styling> was produced throws: SAXException - |
generateWidget | public void generateWidget(Widget widget, Map arguments) throws SAXException(Code) | | Generate a widget's SAX fragment, buffering the root element's endElement()
event so that the template can insert styling information in it.
Parameters: widget - Parameters: arguments - throws: SAXException - |
getWidget | public Widget getWidget(Widget currentWidget, String path)(Code) | | Get a child widget of a given widget, throwing an exception if no such child exists.
Parameters: currentWidget - Parameters: path - |
isValidationError | public boolean isValidationError(Object object)(Code) | | |
pushRepeater | public boolean pushRepeater(String path, boolean ajaxAware) throws SAXException(Code) | | Enter a repeater
Parameters: path - widget path Parameters: ajaxAware - distinguishes between <ft:repeater-widget> and <ft:repeater>. true if the repeater template is to be executed throws: SAXException - |
|
|