|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsxp.framework.ElementTemplate<ElementType>
public class ElementTemplate<ElementType extends Element>
The Class ElementTemplate. Use this class to create a template for a jsxp element. This way you can use a jsxp element as a prototype and clone it. E.g. you can create lists by using an element to define how a row in the list should look like.
Constructor Summary | |
---|---|
ElementTemplate(ElementType element,
java.lang.Class<? extends Element> interfaceType,
java.lang.String idPrefix)
Instantiates a new element template. |
Method Summary | |
---|---|
ElementType |
createElement()
Creates the element. |
ElementType |
createElement(java.lang.Object bean)
Creates the element. |
void |
disable(Element element)
Disable a subelement for the next calls of a createElement-method. |
void |
disableOnce(Element element)
Disable a subelement once for the next call of a createElement-method. |
void |
enable(Element element)
Enable a subelement that you have disabled earlier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementTemplate(ElementType element, java.lang.Class<? extends Element> interfaceType, java.lang.String idPrefix)
element
- the elementinterfaceType
- the interface typeidPrefix
- the id prefixMethod Detail |
---|
public ElementType createElement()
public ElementType createElement(java.lang.Object bean)
bean
- the parameter bean to fill the element variables with values from the get-methods of the bean.
public void disable(Element element)
element
- the elementpublic void disableOnce(Element element)
element
- the elementpublic void enable(Element element)
element
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |