| org.apache.beehive.netui.tags.html.HtmlBaseTag org.apache.beehive.netui.tags.html.AnchorBase
All known Subclasses: org.apache.beehive.netui.tags.html.Anchor, org.apache.beehive.netui.tags.html.Area,
AnchorBase | abstract public class AnchorBase extends HtmlBaseTag implements IUrlParams,IHasPopupSupport(Code) | | This is the base class that provides most of the features necessary to create an anchor and an area. The Anchor
and Area tags are created as subclasses of this tag. The Area tag is really a subset of the features, so certain
attributes are not defined here, even though the backing fields are defined here and the utility code knows them.
This may not be the best OO design, but the design is optimized for performance of rendering anchor elements.
|
REQUIRED_ATTR | final protected static String REQUIRED_ATTR(Code) | | |
addParameter | public void addParameter(String name, Object value, String facet) throws JspException(Code) | | Adds a URL parameter to the generated hyperlink.
Parameters: name - the name of the parameter to be added. Parameters: value - the value of the parameter to be added (a String or String[]). Parameters: facet - |
createAnchorBeginTag | final protected boolean createAnchorBeginTag(HttpServletRequest request, ByRef scriptRef, TagRenderingBase trb, AbstractRenderAppender writer, String requiredAttrs) throws JspException(Code) | | This method will create the <a> portion of an anchor. It is called by subclasses, for example, the
ImageAnchor relies on this code to generate the <a>.
Parameters: scriptRef - a ByRef<String> that will contain any JavaScript that may need to be addedto the generated HTML response. a boolean value indicating if an error occur creating the anchor. throws: JspException - |
localRelease | protected void localRelease()(Code) | | Release any acquired resources.
|
setAccessKey | public void setAccessKey(char accessKey)(Code) | | Sets the accessKey attribute value. This should key value of the
keyboard navigation key. It is recommended not to use the following
values because there are often used by browsers A, C, E, F, G,
H, V, left arrow, and right arrow .
Parameters: accessKey - the accessKey value. |
setAction | public void setAction(String action) throws JspException(Code) | | Set the name of the action for the Area.
Parameters: action - the name of the action to set for the Area. |
setAttribute | public void setAttribute(String name, String value, String facet) throws JspException(Code) | | Base support for the attribute tag. This is overridden to prevent setting the href
attribute.
Parameters: name - The name of the attribute. This value may not be null or the empty string. Parameters: value - The value of the attribute. This may contain an expression. Parameters: facet - The name of a facet to which the attribute will be applied. This is optional. throws: JspException - A JspException may be thrown if there is an error setting the attribute. |
setCoords | public void setCoords(String coords)(Code) | | Sets coords attribute for the area.
Parameters: coords - the window target. |
setDisableSecondClick | public void setDisableSecondClick(boolean disableSecondClick)(Code) | | When true, this anchor will disable itself after being clicked.
Parameters: disableSecondClick - when true, this anchor will disable itself after being clicked. |
setFormSubmit | public void setFormSubmit(boolean formSubmit)(Code) | | Sets the formSubmit indicator.
Parameters: formSubmit - whether or not the enclosing Form should be submitted. |
setHref | public void setHref(String href) throws JspException(Code) | | Sets the href of the Anchor. This attribute will accept the empty String as a legal value.
Parameters: href - the hyperlink URI for the Area. |
setLocation | public void setLocation(String location)(Code) | | Sets the anchor to be added to the end of the generated hyperlink.
Parameters: location - the name of the location anchor. |
setOnBlur | public void setOnBlur(String onblur)(Code) | | Sets the onBlur javascript event.
Parameters: onblur - the onBlur event. |
setOnFocus | public void setOnFocus(String onfocus)(Code) | | Sets the onFocus javascript event.
Parameters: onfocus - the onFocus event. |
setPopup | public void setPopup(boolean popup)(Code) | | Sets the popup indicator.
Parameters: popup - whether or not the anchor should open a popup window. |
setShape | public void setShape(String shape)(Code) | | Sets shape attribute for the area.
Parameters: shape - the window target. |
setTabindex | public void setTabindex(int tabindex)(Code) | | Sets the tabIndex of the rendered html tag.
Parameters: tabindex - the tab index. |
setTargetScope | public void setTargetScope(String targetScope)(Code) | | Set the target "scope" for the anchor's action. Multiple active page flows may exist concurrently within named
scopes. This attribute selects which named scope to use. If omitted, the default scope is assumed.
Parameters: targetScope - the name of the target scope in which the associated action's page flow resides. |
|
|