|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.corelib.base.AbstractLink
@SupportsInformalParameters public abstract class AbstractLink
Provides base utilities for classes that generate clickable links.
Constructor Summary | |
---|---|
AbstractLink()
|
Method Summary | |
---|---|
protected void |
addParameters(Link link)
Adds any user-defined parameters as query parameters. |
String |
getClientId()
Returns the unique client id for this element. |
Link |
getLink()
Returns the most recently rendered Link for this component. |
boolean |
isDisabled()
Returns true if the component is disabled (as per its disabled parameter). |
protected void |
writeLink(MarkupWriter writer,
Link link,
Object... namesAndValues)
Writes an <a> element with the provided link as the href attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractLink()
Method Detail |
---|
protected final void writeLink(MarkupWriter writer, Link link, Object... namesAndValues)
MarkupWriter.end()
is not provided. Automatically appends an anchor if
the component's anchor parameter is non-null. Informal parameters are rendered as well.
writer
- to write markup tolink
- the link that will form the hrefnamesAndValues
- additional attributes to writeprotected final void addParameters(Link link)
link
- public Link getLink()
Link
for this component. Subclasses calculate
their link value as they render, and the value is valid until the end of the request, or the next time the same
component renders itself (if inside a loop).
public final String getClientId()
getClientId
in interface ClientElement
public boolean isDisabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |