|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.forms.generation.JXMacrosHelper
public class JXMacrosHelper
Helper class for the implementation of the CForms template language with JXTemplate macros.
Constructor Summary | |
---|---|
JXMacrosHelper(XMLConsumer consumer,
Request request,
String locale)
|
Method Summary | |
---|---|
static JXMacrosHelper |
createHelper(XMLConsumer consumer,
Request request,
String locale)
Builds and helper object, given the generator's consumer. |
TreeWalker |
createWalker()
|
void |
defineClassBody(Form form,
String id,
Object body)
|
void |
endForm()
|
void |
flushRoot()
|
void |
flushRootAndPop()
Flush the root element name that has been stored in generateWidget(Widget, Map) . |
void |
generateRepeaterSize(Widget widget,
String id)
|
void |
generateRepeaterWidgetLabel(Widget widget,
String id,
String widgetId)
|
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. |
boolean |
generateStyling(Map attributes)
|
void |
generateValidationError(ValidationError error)
|
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. |
void |
generateWidgetLabel(Widget widget,
String id)
|
Object |
getClassBody(String id)
|
Form |
getForm(Form form,
String attributeName)
|
Widget |
getWidget(Widget currentWidget,
String path)
Get a child widget of a given widget, throwing an exception if no such child exists. |
boolean |
isModified(Widget widget)
|
boolean |
isSelectedCase(Widget unionWidget,
String caseValue)
|
boolean |
isValidationError(Object object)
|
boolean |
isVisible(Widget widget)
|
Widget |
peekWidget()
|
void |
popWidget()
|
boolean |
pushContainer(String path)
|
boolean |
pushRepeater(String path,
boolean ajaxAware)
Enter a repeater |
boolean |
pushWidget(String path)
|
protected boolean |
pushWidget(String path,
boolean unused)
|
void |
startForm(Form form,
Map attributes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JXMacrosHelper(XMLConsumer consumer, Request request, String locale)
Method Detail |
---|
public static JXMacrosHelper createHelper(XMLConsumer consumer, Request request, String locale)
consumer
- the generator's consumer
public Form getForm(Form form, String attributeName)
public void startForm(Form form, Map attributes) throws SAXException
SAXException
public void endForm() throws SAXException
SAXException
protected boolean pushWidget(String path, boolean unused) throws SAXException
SAXException
public Widget peekWidget()
public void popWidget() throws SAXException
SAXException
public boolean pushWidget(String path) throws SAXException
SAXException
public boolean pushContainer(String path) throws SAXException
SAXException
public boolean pushRepeater(String path, boolean ajaxAware) throws SAXException
path
- widget pathajaxAware
- distinguishes between <ft:repeater-widget> and <ft:repeater>.
SAXException
public Widget getWidget(Widget currentWidget, String path)
currentWidget
- path
- public void generateWidget(Widget widget, Map arguments) throws SAXException
endElement()
event so that the template can insert styling information in it.
widget
- arguments
-
SAXException
public void flushRootAndPop() throws SAXException
generateWidget(Widget, Map)
.
SAXException
public void flushRoot() throws SAXException
SAXException
public void generateWidgetLabel(Widget widget, String id) throws SAXException
SAXException
public void generateRepeaterWidgetLabel(Widget widget, String id, String widgetId) throws SAXException
SAXException
public void generateRepeaterSize(Widget widget, String id) throws SAXException
SAXException
public void generateValidationError(ValidationError error) throws SAXException
SAXException
public boolean isValidationError(Object object)
public void defineClassBody(Form form, String id, Object body)
public Object getClassBody(String id)
public boolean isSelectedCase(Widget unionWidget, String caseValue)
public TreeWalker createWalker()
public boolean isVisible(Widget widget) throws SAXException
SAXException
public boolean isModified(Widget widget)
public boolean generateStyling(Map attributes) throws SAXException
SAXException
public static boolean generateStyling(ContentHandler handler, Map attributes) throws SAXException
<fi:styling>
element holding the attributes of a ft:*
element that are in the "fi:" namespace.
attributes
- the template instruction attributes
<fi:styling>
was produced
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |