|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.BaseRenderer
org.apache.myfaces.trinidadinternal.ui.ElementRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.LinkRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.ButtonRenderer
public class ButtonRenderer
Renderer for button nodes.
Field Summary |
---|
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer |
---|
TRANSPARENT_GIF |
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
NO_CHILD_INDEX |
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafConstants |
---|
NBSP_CHAR, NBSP_STRING, NOT_FOUND, ONE, TWO, URI_DELIMITER, ZERO |
Constructor Summary | |
---|---|
ButtonRenderer()
|
Method Summary | |
---|---|
protected boolean |
doRenderStyleAttrs(UIXRenderingContext context,
UINode node)
Returns true if the style attributes should be rendered for this node. |
protected java.lang.String |
getButtonType()
Override to change the type of the button |
protected java.lang.Object |
getClientOnClick(UIXRenderingContext context,
UINode node)
|
protected java.lang.String |
getElementName(UIXRenderingContext context,
UINode node)
Called to retrieve the element name to render. |
protected java.lang.Object |
getOnClick(UIXRenderingContext context,
UINode node)
Override to provide Javascript for moving to the destination |
protected java.lang.Object |
getText(UIXRenderingContext context,
UINode node)
Returns the destination to use for the ImageRenderer. |
protected boolean |
isEmpty(UIXRenderingContext context,
UINode node)
Return true if this link is empty ... has no children, text, destination, or node name. |
protected boolean |
makeNameAndIDSame(UIXRenderingContext context)
The ID and the naem aren't the same for buttons and button subclasses |
protected void |
postrender(UIXRenderingContext context,
UINode node)
Called to render the portion after the contents. |
protected void |
prerender(UIXRenderingContext context,
UINode node)
Called to render the portion before the contents. |
protected void |
renderAttributes(UIXRenderingContext context,
UINode node)
Renders attributes of the current node. |
protected void |
renderContent(UIXRenderingContext context,
UINode node)
|
protected void |
renderDestination(UIXRenderingContext context,
UINode node,
java.lang.String destination)
Renders the destination of the link |
protected boolean |
useButtonTags(UIXRenderingContext context)
Returns true if button tags are being used. |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.LinkRenderer |
---|
getAncestorPartialTargets, getDestination, getDestinationAttr, getID, getPartialChangeScript, getStyleClass, getTargetFrame, isDisabled, isSaveModelDisabled, render, renderEventHandlers, renderID, setDisabled, setSaveModelDisabled |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.ElementRenderer |
---|
getRenderer, renderAttribute, renderAttribute, renderAttribute, renderAttribute |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
getNextRenderedChildIndex, getNextRenderedChildNode, getVisibleIndexedChildCount, renderBetweenIndexedChildren, renderBetweenIndexedChildren, renderChild, renderIndexedChild, renderIndexedChild, renderNamedChild, renderNamedChild, skipChild, skipNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonRenderer()
Method Detail |
---|
protected boolean useButtonTags(UIXRenderingContext context)
protected boolean doRenderStyleAttrs(UIXRenderingContext context, UINode node)
XhtmlLafRenderer
Clients should override this method if they need to move the rendering of the style attributes to a different element, or if the the user agent doesn't support style attributes.
doRenderStyleAttrs
in class LinkRenderer
XhtmlLafRenderer.renderStyleAttrs(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode, java.lang.String)
protected void renderDestination(UIXRenderingContext context, UINode node, java.lang.String destination) throws java.io.IOException
LinkRenderer
renderDestination
in class LinkRenderer
java.io.IOException
protected void renderAttributes(UIXRenderingContext context, UINode node) throws java.io.IOException
ElementRenderer
renderAttributes
in class LinkRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected java.lang.String getButtonType()
protected boolean makeNameAndIDSame(UIXRenderingContext context)
makeNameAndIDSame
in class LinkRenderer
protected java.lang.String getElementName(UIXRenderingContext context, UINode node)
ElementRenderer
getElementName
in class LinkRenderer
context
- the rendering contextnode
- the current nodeprotected boolean isEmpty(UIXRenderingContext context, UINode node)
isEmpty
in class LinkRenderer
protected void prerender(UIXRenderingContext context, UINode node) throws java.io.IOException
LinkRenderer
prerender
in class LinkRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
ElementRenderer.renderAttributes(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
,
ElementRenderer.getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void postrender(UIXRenderingContext context, UINode node) throws java.io.IOException
LinkRenderer
postrender
in class LinkRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
ElementRenderer.getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderContent(UIXRenderingContext context, UINode node) throws java.io.IOException
renderContent
in class LinkRenderer
java.io.IOException
protected java.lang.Object getText(UIXRenderingContext context, UINode node)
LinkRenderer
getText
in class LinkRenderer
protected java.lang.Object getOnClick(UIXRenderingContext context, UINode node)
getOnClick
in class LinkRenderer
protected final java.lang.Object getClientOnClick(UIXRenderingContext context, UINode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |