|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlBaseTag
AnchorBase
public abstract class AnchorBase
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.
Field Summary | |
---|---|
protected String |
_clientAction
|
protected String |
_linkName
|
protected AnchorTag.State |
_state
|
Fields inherited from class AbstractClassicTag |
---|
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT |
Fields inherited from class BodyTagSupport |
---|
bodyContent |
Fields inherited from class TagSupport |
---|
id, pageContext |
Fields inherited from interface BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
AnchorBase()
|
Method Summary | |
---|---|
void |
addParameter(String name,
Object value,
String facet)
Adds a URL parameter to the generated hyperlink. |
protected boolean |
createAnchorBeginTag(HttpServletRequest request,
ByRef scriptRef,
TagRenderingBase trb,
AbstractRenderAppender writer)
This method will create the <a> portion of an anchor. |
PopupSupport |
getPopupSupport()
Get a helper to provide popup support. |
protected void |
localRelease()
Release any acquired resources. |
void |
setAccessKey(char accessKey)
Sets the accessKey attribute value. |
void |
setAction(String action)
Set the name of the action for the Area. |
void |
setAttribute(String name,
String value,
String facet)
Base support for the attribute tag. |
void |
setCoords(String coords)
Sets coords attribute for the area. |
void |
setDisableSecondClick(boolean disableSecondClick)
When true, this anchor will disable itself after being clicked. |
void |
setFormSubmit(boolean formSubmit)
Sets the formSubmit indicator. |
void |
setHref(String href)
Sets the href of the Anchor. |
void |
setLocation(String location)
Sets the anchor to be added to the end of the generated hyperlink. |
void |
setOnBlur(String onblur)
Sets the onBlur javascript event. |
void |
setOnFocus(String onfocus)
Sets the onFocus javascript event. |
void |
setPopup(boolean popup)
Sets the popup indicator. |
void |
setShape(String shape)
Sets shape attribute for the area. |
void |
setTabindex(int tabindex)
Sets the tabIndex of the rendered html tag. |
void |
setTargetScope(String targetScope)
Set the target "scope" for the anchor's action. |
Methods inherited from class BodyTagSupport |
---|
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected AnchorTag.State _state
protected String _linkName
protected String _clientAction
Constructor Detail |
---|
public AnchorBase()
Method Detail |
---|
public void setAttribute(String name, String value, String facet) throws JspException
href
attribute.
setAttribute
in interface IAttributeConsumer
setAttribute
in class HtmlBaseTag
name
- The name of the attribute. This value may not be null or the empty string.value
- The value of the attribute. This may contain an expression.facet
- The name of a facet to which the attribute will be applied. This is optional.
JspException
- A JspException may be thrown if there is an error setting the attribute.public void setShape(String shape)
shape
attribute for the area.
shape
- - the window target.public void setCoords(String coords)
coords
attribute for the area.
coords
- - the window target.public void setAction(String action) throws JspException
action
- - the name of the action to set for the Area.
JspException
public void setHref(String href) throws JspException
href
- - the hyperlink URI for the Area.
JspException
public void setLocation(String location)
location
- - the name of the location anchor.public void setTargetScope(String targetScope)
targetScope
- - the name of the target scope in which the associated action's page flow resides.public void setFormSubmit(boolean formSubmit)
formSubmit
- - whether or not the enclosing Form should be submitted.public void setPopup(boolean popup)
popup
- - whether or not the anchor should open a popup window.public void setDisableSecondClick(boolean disableSecondClick)
disableSecondClick
- - when true, this anchor will disable itself after being clicked.public void setTabindex(int tabindex)
tabindex
- - the tab index.public void setAccessKey(char accessKey)
A, C, E, F, G,
H, V, left arrow, and right arrow
.
accessKey
- - the accessKey value.public void setOnBlur(String onblur)
onblur
- - the onBlur event.public void setOnFocus(String onfocus)
onfocus
- - the onFocus event.public void addParameter(String name, Object value, String facet) throws JspException
addParameter
in interface IUrlParams
name
- - the name of the parameter to be added.value
- - the value of the parameter to be added (a String or String[]).facet
-
JspException
protected final boolean createAnchorBeginTag(HttpServletRequest request, ByRef scriptRef, TagRenderingBase trb, AbstractRenderAppender writer) throws JspException
ImageAnchor
relies on this code to generate the <a>.
scriptRef
- a ByRef<String>
that will contain any JavaScript that may need to be added
to the generated HTML response.
JspException
protected void localRelease()
localRelease
in class HtmlBaseTag
public PopupSupport getPopupSupport()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |