com.liferay.taglib.ui
Class LanguageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.liferay.taglib.util.ParamAndPropertyAncestorTagImpl
              extended by com.liferay.taglib.util.IncludeTag
                  extended by com.liferay.taglib.ui.LanguageTag
All Implemented Interfaces:
ParamAncestorTag, PropertyAncestorTag, com.sun.portal.portletcontainer.taglib.ParamBaseTag, com.sun.portal.portletcontainer.taglib.PropertyBaseTag, java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class LanguageTag
extends IncludeTag

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
static int LIST_ICON
           
static int LIST_LONG_TEXT
           
static int LIST_SHORT_TEXT
           
static int SELECT_BOX
           
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
LanguageTag()
           
 
Method Summary
 int doEndTag()
           
static void doTag(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static void doTag(java.lang.String formName, java.lang.String formAction, java.lang.String name, java.lang.String[] languageIds, int displayStyle, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static void doTag(java.lang.String page, java.lang.String formName, java.lang.String formAction, java.lang.String name, java.lang.String[] languageIds, int displayStyle, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  java.lang.String getDefaultPage()
           
 void setDisplayStyle(int displayStyle)
           
 void setFormAction(java.lang.String formAction)
           
 void setFormName(java.lang.String formName)
           
 void setLanguageIds(java.lang.String[] languageIds)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class com.liferay.taglib.util.IncludeTag
getPage, getServletContext, isTheme, setPage, setServletContext
 
Methods inherited from class com.liferay.taglib.util.ParamAndPropertyAncestorTagImpl
addParam, addProperty, clearParams, clearProperties, getParams, getProperties, getServletRequest, getServletResponse, include
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

LIST_ICON

public static final int LIST_ICON
See Also:
Constant Field Values

LIST_LONG_TEXT

public static final int LIST_LONG_TEXT
See Also:
Constant Field Values

LIST_SHORT_TEXT

public static final int LIST_SHORT_TEXT
See Also:
Constant Field Values

SELECT_BOX

public static final int SELECT_BOX
See Also:
Constant Field Values
Constructor Detail

LanguageTag

public LanguageTag()
Method Detail

doTag

public static void doTag(javax.servlet.ServletContext servletContext,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doTag

public static void doTag(java.lang.String formName,
                         java.lang.String formAction,
                         java.lang.String name,
                         java.lang.String[] languageIds,
                         int displayStyle,
                         javax.servlet.ServletContext servletContext,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doTag

public static void doTag(java.lang.String page,
                         java.lang.String formName,
                         java.lang.String formAction,
                         java.lang.String name,
                         java.lang.String[] languageIds,
                         int displayStyle,
                         javax.servlet.ServletContext servletContext,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class IncludeTag
Throws:
javax.servlet.jsp.JspException

setFormName

public void setFormName(java.lang.String formName)

setFormAction

public void setFormAction(java.lang.String formAction)

setName

public void setName(java.lang.String name)

setLanguageIds

public void setLanguageIds(java.lang.String[] languageIds)

setDisplayStyle

public void setDisplayStyle(int displayStyle)

getDefaultPage

protected java.lang.String getDefaultPage()
Overrides:
getDefaultPage in class IncludeTag