|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wheel.components.Component wheel.components.RenderableComponent
public abstract class RenderableComponent
Base class for all components that will render themselves as xhtml-tags. Other, more specialized components may want to
implement the IRenderable interface directly. Has some basic support methods for rendering components.
Rendering hints:
Rendering hints
Constructor Summary | |
---|---|
protected |
RenderableComponent(Component parent)
|
protected |
RenderableComponent(Component parent,
java.lang.String componentId)
|
protected |
RenderableComponent(Component parent,
java.lang.String componentId,
java.lang.CharSequence renderHint)
|
protected |
RenderableComponent(java.lang.String componentId)
|
Method Summary | |
---|---|
java.lang.String |
_classReferenceFromHints()
Resolves the contents of the class-attribute for this tag from rendering hints. |
void |
_clear()
Inteded for internal use. |
java.util.List<RenderableComponent> |
_getRenderAfterMe()
|
java.util.List<RenderableComponent> |
_getRenderBeforeMe()
|
void |
_render(org.xmlpull.v1.XmlSerializer serializer)
Default implementation. |
void |
_renderActions(org.xmlpull.v1.XmlSerializer serializer)
|
void |
_renderClassReferenceFromHints(org.xmlpull.v1.XmlSerializer serializer)
Renders the class-attribute for this tag based on rendering hints. |
java.lang.String |
_renderTagStart(org.xmlpull.v1.XmlSerializer serializer)
Renders the tag start based on the rendering hints. |
void |
_renderXhtmlAttributes(org.xmlpull.v1.XmlSerializer serializer)
Renders all xhtml-attributes (given with calls to attribute() and attributes() methods). |
Component |
addRenderAfter(RenderableComponent renderable)
All renderables added y calling this method will be rendered after the component itself but the renderables will not be added to the component tree. |
Component |
addRenderBefore(RenderableComponent renderable)
All renderables added y calling this method will be rendered before the component itself but the renderables will not be added to the component tree. |
RenderableComponentConfiguration |
config()
|
protected java.lang.String |
defaultDomEvent()
|
abstract java.lang.String |
defaultTagName()
Subclasses must implement this. |
java.lang.String |
getTagName()
Resolves tag name for this component based on rendering hints. |
void |
renderComponent(org.xmlpull.v1.XmlSerializer serializer)
Default implementation that will render all renderable child components that this component has. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RenderableComponent(java.lang.String componentId)
protected RenderableComponent(Component parent)
protected RenderableComponent(Component parent, java.lang.String componentId)
protected RenderableComponent(Component parent, java.lang.String componentId, java.lang.CharSequence renderHint)
Method Detail |
---|
public Component addRenderBefore(RenderableComponent renderable)
renderable
-
public Component addRenderAfter(RenderableComponent renderable)
renderable
-
public java.util.List<RenderableComponent> _getRenderBeforeMe()
public java.util.List<RenderableComponent> _getRenderAfterMe()
public void _render(org.xmlpull.v1.XmlSerializer serializer) throws java.io.IOException
serializer
-
java.io.IOException
public abstract java.lang.String defaultTagName()
public void renderComponent(org.xmlpull.v1.XmlSerializer serializer) throws java.io.IOException
serializer
-
java.io.IOException
public java.lang.String _renderTagStart(org.xmlpull.v1.XmlSerializer serializer) throws java.io.IOException
serializer
-
java.io.IOException
public java.lang.String _classReferenceFromHints()
public void _renderClassReferenceFromHints(org.xmlpull.v1.XmlSerializer serializer) throws java.io.IOException
serializer
-
java.io.IOException
public java.lang.String getTagName()
public void _renderXhtmlAttributes(org.xmlpull.v1.XmlSerializer serializer) throws java.io.IOException
serializer
-
java.io.IOException
public void _renderActions(org.xmlpull.v1.XmlSerializer serializer) throws java.io.IOException
java.io.IOException
protected java.lang.String defaultDomEvent()
public void _clear()
Component
_clear
in class Component
public RenderableComponentConfiguration config()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |