|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.core.comp.renderer.DOMComponentRenderer
org.enhydra.barracuda.core.comp.renderer.html.HTMLComponentRenderer
org.enhydra.barracuda.core.comp.renderer.html.HTMLActionRenderer
This class handles the default rendering of actions into an HTML view.
Field Summary | |
protected EnabledHelper |
eh
|
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
HTMLActionRenderer()
|
Method Summary | |
Node |
createDefaultNode(Document doc,
BComponent comp,
ViewContext vc)
The purpose of this method is to create a default Node to be used when the component is not bound to any specific view. |
protected static void |
manipulateActionElement(Element el,
BAction comp,
ViewContext vc)
Generic Element - cast elements to more specific elements in order to call the appropriate overloaded method. |
protected static void |
manipulateActionElement(HTMLAnchorElement el,
BAction comp,
ViewContext vc)
HTMLAnchorElement - set the "href" attribute |
protected static void |
manipulateActionElement(HTMLButtonElement el,
BAction comp,
ViewContext vc)
HTMLButtonElement |
protected static void |
manipulateActionElement(HTMLFormElement el,
BAction comp,
ViewContext vc)
HTMLFormElement - set the "action" attribute |
protected static void |
manipulateActionElement(HTMLInputElement el,
BAction comp,
ViewContext vc)
HTMLInputElement |
protected static void |
manipulateActionElement(HTMLSelectElement el,
BAction comp,
ViewContext vc)
HTMLSelectElement |
void |
renderComponent(BComponent comp,
View view,
ViewContext vc)
Render the data from the component into the view, taking into consideration the specified ViewContext |
Methods inherited from class org.enhydra.barracuda.core.comp.renderer.html.HTMLComponentRenderer |
addChildToParent |
Methods inherited from class org.enhydra.barracuda.core.comp.renderer.DOMComponentRenderer |
showNodeInterfaces |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.log4j.Logger logger
protected EnabledHelper eh
Constructor Detail |
public HTMLActionRenderer()
Method Detail |
public Node createDefaultNode(Document doc, BComponent comp, ViewContext vc) throws UnsupportedFormatException
public void renderComponent(BComponent comp, View view, ViewContext vc) throws RenderException
renderComponent
in interface Renderer
renderComponent
in class HTMLComponentRenderer
comp
- the component to be renderedview
- the view the component should be rendered invc
- the view context
RenderException
- if unable to render the component in the
specified viewprotected static void manipulateActionElement(Element el, BAction comp, ViewContext vc) throws RenderException
el
- the HTML element to be manipulatedcomp
- the BAction component containing information about the
action to take on bound HTML elementvc
- the current ViewContext
RenderException
protected static void manipulateActionElement(HTMLAnchorElement el, BAction comp, ViewContext vc) throws RenderException
RenderException
manipulateActionElement(Element, BAction, ViewContext)
protected static void manipulateActionElement(HTMLFormElement el, BAction comp, ViewContext vc) throws RenderException
RenderException
manipulateActionElement(Element, BAction, ViewContext)
protected static void manipulateActionElement(HTMLInputElement el, BAction comp, ViewContext vc) throws RenderException
RenderException
manipulateActionElement(Element, BAction, ViewContext)
protected static void manipulateActionElement(HTMLButtonElement el, BAction comp, ViewContext vc) throws RenderException
RenderException
manipulateActionElement(Element, BAction, ViewContext)
protected static void manipulateActionElement(HTMLSelectElement el, BAction comp, ViewContext vc) throws RenderException
RenderException
manipulateActionElement(Element, BAction, ViewContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |