| org.apache.beehive.netui.tags.html.HtmlBaseTag org.apache.beehive.netui.tags.html.AnchorBase org.apache.beehive.netui.tags.html.Anchor
All known Subclasses: org.apache.beehive.netui.tags.html.ImageAnchor,
Anchor | public class Anchor extends AnchorBase (Code) | |
Generates a URL-encoded hyperlink to a specified URI.
Also adds support for URL re-writing and JavaScript-based form submission.
An anchor must have one of the following attributes to correctly create the hyperlink:
- action - an action invoked by clicking the hyperlink.
- href - a URL to go to
- linkName - an internal place in the page to move to
- clientAction - the action to run on the client
- tagId - the ID of the tag
- formSubmit - indicates whether or not the enclosing Form should be submitted
IUrlParams See Also: Attribute See Also: java.lang.String |
doAfterBody | public int doAfterBody() throws JspException(Code) | | Save the body content of the Anchor.
throws: JspException - if a JSP exception has occurred |
doStartTag | public int doStartTag() throws JspException(Code) | | Prepare the hyperlink for rendering
throws: JspException - if a JSP exception has occurred |
getState | public AbstractHtmlState getState()(Code) | | This method will return the state associated with the tag. This is used by this
base class to access the individual state objects created by the tags.
a subclass of the AbstractHtmlState class. |
getTagName | public String getTagName()(Code) | | Returns the name of the Tag.
|
setCharSet | public void setCharSet(String charSet)(Code) | | Sets charset attribute for the anchor.
Parameters: charSet - the window target. |
setClientAction | public void setClientAction(String action) throws JspException(Code) | | Set a client action to run on the client. When set on an anchor, a NetUI JavaScript action
will be run. This attribute may not be set if href or action is set.
Parameters: action - an action to run on the client. |
setHrefLang | public void setHrefLang(String hreflang)(Code) | | Sets hreflang attribute for the anchor.
Parameters: hreflang - the window target. |
setLinkName | public void setLinkName(String linkName) throws JspException(Code) | | Sets the link name of the Anchor. The link name is treated as a fragment
identifier and may or may not contain the "#" character. If it does, the
link name will not be qualified into a ScriptContainer. If the link name
does not contain the "#" the normal tagId qualification will take place
to produce the actual fragment identifier.
Parameters: linkName - the link name for the Anchor. |
setOnClick | public void setOnClick(String onclick)(Code) | | Sets the onClick javascript event.
Parameters: onclick - the onClick event. |
setRel | public void setRel(String rel)(Code) | | Sets rel attribute for the anchor.
Parameters: rel - the window target. |
setRev | public void setRev(String rev)(Code) | | Sets rev attribute for the anchor.
Parameters: rev - the window target. |
setTarget | public void setTarget(String target)(Code) | | Sets the window target.
Parameters: target - the window target. |
setType | public void setType(String type)(Code) | | Sets type attribute for the anchor.
Parameters: type - the window target. |
setValue | public void setValue(String value)(Code) | | This will set the text of the anchor. If there is body content, this
will override that value.
Parameters: value - the text of the anchor. |
|
|