public class AnchorTag extends EventSender implements EventReceiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
TAG_NAME |
DROPLET_ANCHOR_QUALIFIER, DROPLET_ANCHOR_VALUE, DROPLET_ARGUMENTS, DROPLET_BEAN_PREFIX, DROPLET_BEFORE_GET_ATTRIBUTE, DROPLET_EVENT_ATTRIBUTE, DROPLET_EVENT_PREFIX, DROPLET_EXCEPTIONS_ATTRIBUTE, DROPLET_PARAM_PREFIX, DROPLET_PROPERTY_PREFIX, DROPLET_SESSION_CONF, DROPLET_SUBMIT_VALUE_PREFIX, OBJECT_BEFORE_GET_ATTRIBUTE, PRIORITY_DEFAULT, SUBMIT_PRIORITY_DEFAULT, UNCHECKED_DROPLET_EXCEPTIONS_ATTRIBUTE
Constructor and Description |
---|
AnchorTag() |
AnchorTag(java.lang.String pAnchorId,
DropletEventServlet pServlet) |
AnchorTag(java.lang.String pAnchorId,
DropletEventServlet pServlet,
TagConverter pConverter,
java.util.Properties pConverterArgs) |
Modifier and Type | Method and Description |
---|---|
void |
addHref(java.lang.String pHref)
Adds a new action/anchor to the list
|
java.lang.String |
getComponentPath()
Return the path name of the component
|
TagConverter |
getConverter()
The converter to apply to any set accesses to this value
|
java.util.Properties |
getConverterArgs()
The arguments for the converter
|
java.lang.String |
getDefault() |
java.lang.String |
getHref() |
java.util.Set |
getHrefList()
Returns the hrefList
|
java.lang.String |
getName()
Since anchor's only have a single property value, we don't need
to have unique names for them.
|
int[][] |
getPathDims()
Return the name of the property for the component
|
java.lang.String[] |
getPathNames()
Return the name of the property for the component
|
java.lang.String |
getPropertyPath()
Return the complete path name of the property
|
boolean |
getRequiresSessionConfirmation()
Whether this form requires session confirmation.
|
java.lang.String |
getSubmitValue() |
java.lang.String |
getTagName()
Returns the name of this tag or null if no name has been specified.
|
boolean |
hasHref(java.lang.String pHref)
Returns true if the href is exists,
false if not.
|
boolean |
isImage()
Is this handler expecting an image expecting .x and .y args?
|
int |
numHrefs()
Returns the number of hrefs
|
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Renders the tag and its content
|
void |
setHref(java.lang.String pHref) |
void |
setName(java.lang.String pName) |
void |
setPathDims(int[][] pPathDims)
Sets the list of dimensions.
|
void |
setPathNames(java.lang.String[] pPathNames)
Sets the list of path names.
|
void |
setPropertyPath(java.lang.String pPropertyPath)
Sets the complete path to find the property
|
void |
setRequiresSessionConfirmation(boolean pRequiresSessionConfirmation)
Whether this form requires session confirmation.
|
createFormHandlerUtils, getFormHandlerUtils, getImageRequestValue, getRequestValue, setFormHandlerUtils
addContent, addContent, addContent, getContent, serviceContent, setContent
getAttribute, getAttributes, service, serviceAttributes, setAttribute, setAttributes, setTagName
public static java.lang.String CLASS_VERSION
public static final java.lang.String TAG_NAME
public AnchorTag()
public AnchorTag(java.lang.String pAnchorId, DropletEventServlet pServlet)
public AnchorTag(java.lang.String pAnchorId, DropletEventServlet pServlet, TagConverter pConverter, java.util.Properties pConverterArgs)
public java.lang.String getDefault()
getDefault
in interface EventReceiver
public java.lang.String getSubmitValue()
getSubmitValue
in interface EventReceiver
public boolean isImage()
EventReceiver
isImage
in interface EventReceiver
public java.lang.String getName()
getName
in interface EventReceiver
public void setName(java.lang.String pName)
public java.lang.String getTagName()
Tag
getTagName
in class Tag
public java.lang.String getHref()
public void setHref(java.lang.String pHref)
public java.lang.String getPropertyPath()
getPropertyPath
in interface EventReceiver
public void setPropertyPath(java.lang.String pPropertyPath) throws DropletException
DropletException
public java.lang.String[] getPathNames()
getPathNames
in interface EventReceiver
public int[][] getPathDims()
getPathDims
in interface EventReceiver
public void setPathNames(java.lang.String[] pPathNames)
setPathNames
in interface EventReceiver
public void setPathDims(int[][] pPathDims)
setPathDims
in interface EventReceiver
public java.lang.String getComponentPath()
getComponentPath
in interface EventReceiver
public void setRequiresSessionConfirmation(boolean pRequiresSessionConfirmation)
public boolean getRequiresSessionConfirmation()
public void addHref(java.lang.String pHref)
pActionURL
- the action to be addedpublic boolean hasHref(java.lang.String pHref)
public int numHrefs()
public java.util.Set getHrefList()
public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
service
in class ComplexTag
javax.servlet.ServletException
java.io.IOException
public TagConverter getConverter()
EventReceiver
getConverter
in interface EventReceiver
public java.util.Properties getConverterArgs()
EventReceiver
getConverterArgs
in interface EventReceiver