org.alfresco.web.ui.common.tag
Class PanelTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTag
      extended by org.springframework.extensions.webscripts.ui.common.tag.BaseComponentTag
          extended by org.alfresco.web.ui.common.tag.HtmlComponentTag
              extended by org.alfresco.web.ui.common.tag.PanelTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class PanelTag
extends HtmlComponentTag


Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.ui.common.tag.BaseComponentTag
ACTION_CLASS_ARGS
 
Fields inherited from class javax.faces.webapp.UIComponentTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
PanelTag()
           
 
Method Summary
 java.lang.String getComponentType()
           
protected  int getDoStartValue()
          Override this to allow the panel component to control whether child components are rendered by the JSP tag framework.
 java.lang.String getRendererType()
           
 void release()
           
 void setBgcolor(java.lang.String bgcolor)
          Set the bgcolor
 void setBorder(java.lang.String border)
          Set the border
 void setExpanded(java.lang.String expanded)
          Set whether the panel is expanded, default is true.
 void setExpandedActionListener(java.lang.String expandedActionListener)
          Set the expandedActionListener
 void setExpandedTitleBorder(java.lang.String expandedTitleBorder)
           
 void setFacetsId(java.lang.String facetsId)
          Set the facetsId
 void setLabel(java.lang.String label)
          Set the label
 void setProgressive(java.lang.String progressive)
          Set the progressive
protected  void setProperties(javax.faces.component.UIComponent component)
           
 void setTitleBgcolor(java.lang.String titleBgcolor)
           
 void setTitleBorder(java.lang.String titleBorder)
           
 
Methods inherited from class org.alfresco.web.ui.common.tag.HtmlComponentTag
setStyle, setStyleClass, setTooltip
 
Methods inherited from class org.springframework.extensions.webscripts.ui.common.tag.BaseComponentTag
setActionListenerProperty, setActionProperty, setBooleanProperty, setBooleanStaticProperty, setIntProperty, setIntStaticProperty, setStringBindingProperty, setStringProperty, setStringStaticProperty
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelTag

public PanelTag()
Method Detail

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in class javax.faces.webapp.UIComponentTag
See Also:
UIComponentTag.getComponentType()

getRendererType

public java.lang.String getRendererType()
Specified by:
getRendererType in class javax.faces.webapp.UIComponentTag
See Also:
UIComponentTag.getRendererType()

setProperties

protected void setProperties(javax.faces.component.UIComponent component)
Overrides:
setProperties in class HtmlComponentTag
See Also:
UIComponentTag.setProperties(javax.faces.component.UIComponent)

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class HtmlComponentTag
See Also:
Tag.release()

getDoStartValue

protected int getDoStartValue()
                       throws javax.servlet.jsp.JspException
Override this to allow the panel component to control whether child components are rendered by the JSP tag framework. This is a nasty solution as it requires a reference to the UIPanel instance and also specific knowledge of the component type that is created by the framework for this tag. The reason for this solution is to allow any child content (including HTML tags) to be displayed inside the UIPanel component without having to resort to the awful JSF Component getRendersChildren() mechanism - as this would force the use of the verbatim tags for ALL non-JSF child content!

Overrides:
getDoStartValue in class javax.faces.webapp.UIComponentTag
Throws:
javax.servlet.jsp.JspException

setBorder

public void setBorder(java.lang.String border)
Set the border

Parameters:
border - the border

setProgressive

public void setProgressive(java.lang.String progressive)
Set the progressive

Parameters:
progressive - the progressive

setLabel

public void setLabel(java.lang.String label)
Set the label

Parameters:
label - the label

setBgcolor

public void setBgcolor(java.lang.String bgcolor)
Set the bgcolor

Parameters:
bgcolor - the bgcolor

setTitleBgcolor

public void setTitleBgcolor(java.lang.String titleBgcolor)
Parameters:
titleBgcolor - The title area background color

setTitleBorder

public void setTitleBorder(java.lang.String titleBorder)
Parameters:
titleBorder - The title area border style

setExpandedTitleBorder

public void setExpandedTitleBorder(java.lang.String expandedTitleBorder)
Parameters:
expandedTitleBorder - The expanded title area border style

setExpanded

public void setExpanded(java.lang.String expanded)
Set whether the panel is expanded, default is true.

Parameters:
expanded - the expanded flag

setExpandedActionListener

public void setExpandedActionListener(java.lang.String expandedActionListener)
Set the expandedActionListener

Parameters:
expandedActionListener - the expandedActionListener

setFacetsId

public void setFacetsId(java.lang.String facetsId)
Set the facetsId

Parameters:
facetsId - the facetsId


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.