|
||||||||||
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
public class LinkRenderer
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 | |
---|---|
LinkRenderer()
|
Method Summary | |
---|---|
protected boolean |
doRenderStyleAttrs(UIXRenderingContext context,
UINode node)
Returns true if the style attributes should be rendered for this node. |
protected static java.lang.String |
getAncestorPartialTargets(UIXRenderingContext context)
|
protected java.lang.String |
getDestination(UIXRenderingContext context,
UINode node)
Returns the destination to use for the ImageRenderer. |
protected java.lang.String |
getDestinationAttr(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 |
getID(UIXRenderingContext context,
UINode node)
Override to return the id and then anme, in that order |
protected java.lang.Object |
getOnClick(UIXRenderingContext context,
UINode node)
|
protected java.lang.String |
getPartialChangeScript(UIXRenderingContext context,
UINode node)
|
protected java.lang.Object |
getStyleClass(UIXRenderingContext context,
UINode node)
Returns the StyleClass to use to render this node. |
protected java.lang.Object |
getTargetFrame(UIXRenderingContext context,
UINode node)
|
protected java.lang.Object |
getText(UIXRenderingContext context,
UINode node)
Returns the destination to use for the ImageRenderer. |
protected boolean |
isDisabled(UIXRenderingContext context,
UINode node)
|
protected boolean |
isEmpty(UIXRenderingContext context,
UINode node)
Return true if this link is empty ... has no children, text, destination, or node name. |
protected boolean |
isSaveModelDisabled(UIXRenderingContext context)
|
protected boolean |
makeNameAndIDSame(UIXRenderingContext context)
The ID and the naem are the same for links but not some of the link 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. |
void |
render(UIXRenderingContext context,
UINode node)
Override to handle case where this element isn't in a supported module of the current user agent |
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 void |
renderEventHandlers(UIXRenderingContext context,
UINode node)
Renders event handlers for the node. |
protected void |
renderID(UIXRenderingContext context,
UINode node)
Renders the id of the UINode |
static void |
setDisabled(UIXRenderingContext context,
boolean isDisabled)
links can be disabled in two ways. |
static void |
setSaveModelDisabled(UIXRenderingContext context,
boolean isDisabled)
|
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 LinkRenderer()
Method Detail |
---|
public void render(UIXRenderingContext context, UINode node) throws java.io.IOException
XhtmlLafRenderer
render
in interface Renderer
render
in class XhtmlLafRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected void renderAttributes(UIXRenderingContext context, UINode node) throws java.io.IOException
ElementRenderer
renderAttributes
in class XhtmlLafRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected boolean isDisabled(UIXRenderingContext context, UINode node)
isDisabled
in class BaseLafRenderer
setDisabled(UIXRenderingContext,boolean)
public static void setDisabled(UIXRenderingContext context, boolean isDisabled)
isDisabled
- if true, disables all subsequent links, regardless
of their disabled attributes.isDisabled(UIXRenderingContext,UINode)
public static void setSaveModelDisabled(UIXRenderingContext context, boolean isDisabled)
protected boolean isSaveModelDisabled(UIXRenderingContext context)
protected void renderDestination(UIXRenderingContext context, UINode node, java.lang.String destination) throws java.io.IOException
java.io.IOException
protected void renderEventHandlers(UIXRenderingContext context, UINode node) throws java.io.IOException
renderEventHandlers
in class XhtmlLafRenderer
java.io.IOException
protected void renderID(UIXRenderingContext context, UINode node) throws java.io.IOException
BaseLafRenderer
renderID
in class BaseLafRenderer
java.io.IOException
protected boolean makeNameAndIDSame(UIXRenderingContext context)
protected java.lang.Object getID(UIXRenderingContext context, UINode node)
getID
in class BaseLafRenderer
protected java.lang.String getDestination(UIXRenderingContext context, UINode node)
protected final java.lang.String getDestinationAttr(UIXRenderingContext context, UINode node)
protected java.lang.Object getText(UIXRenderingContext context, UINode node)
getText
in class XhtmlLafRenderer
protected java.lang.Object getTargetFrame(UIXRenderingContext context, UINode node)
protected java.lang.Object getStyleClass(UIXRenderingContext context, UINode node)
getStyleClass
in class XhtmlLafRenderer
protected void prerender(UIXRenderingContext context, UINode node) throws java.io.IOException
prerender
in class XhtmlLafRenderer
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
postrender
in class XhtmlLafRenderer
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 BaseRenderer
java.io.IOException
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 XhtmlLafRenderer
XhtmlLafRenderer.renderStyleAttrs(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode, java.lang.String)
protected java.lang.String getElementName(UIXRenderingContext context, UINode node)
ElementRenderer
getElementName
in class ElementRenderer
context
- the rendering contextnode
- the current nodeprotected java.lang.Object getOnClick(UIXRenderingContext context, UINode node)
getOnClick
in class XhtmlLafRenderer
protected java.lang.String getPartialChangeScript(UIXRenderingContext context, UINode node)
protected static java.lang.String getAncestorPartialTargets(UIXRenderingContext context)
protected boolean isEmpty(UIXRenderingContext context, UINode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |