public class PhoneTag
extends javax.servlet.jsp.tagext.BodyTagSupport
PhoneNumberUtil.getPhoneHtml(String, String)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
PhoneTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody() |
int |
doEndTag() |
void |
setCss(java.lang.String css)
Set the CSS class or classes to use in the generated HTML link.
|
void |
setNumber(java.lang.String number)
Set the telephone number to be parsed and displayed properly for HTML output
|
void |
setRegion(java.lang.String region)
Set the region that we are expecting the number to be from
|
void |
setTitle(java.lang.String title)
Set the title to use (instead of the default value, the number being requested)
|
doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public static final java.lang.String REVISION
public void setNumber(java.lang.String number)
number
- a telephone numberpublic void setRegion(java.lang.String region)
region
- the ISO 3166-1 two-letter region code that denotes the region that we are expecting
the number to be from. This is only used if the number being parsed is not written in international format.public void setCss(java.lang.String css)
css
- one or more css classes, ignored if null or emtpypublic void setTitle(java.lang.String title)
title
- a string to use a in title attribute of the generated link, ignored if null or emtpypublic int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
Copyright © 2001-2019 Jalios SA. All Rights Reserved.