pt.digitalis.dif.presentation.views.jsp.taglibs.layout.panels
Class AbstractPanelContainer

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by pt.digitalis.dif.presentation.views.jsp.taglibs.AbstractDIFTag
              extended by pt.digitalis.dif.presentation.views.jsp.taglibs.AbstractInnerDIFTag
                  extended by pt.digitalis.dif.presentation.views.jsp.taglibs.layout.panels.AbstractPanelContainer
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, IPanelContainer, ITagExecutionContext
Direct Known Subclasses:
Accordion, PageContainer, PanelContainer, Tabs

public class AbstractPanelContainer
extends AbstractInnerDIFTag
implements IPanelContainer

Base implementation for dual side panels with area split

Author:
Pedro Viegas pviegas@digitalis.pt
See Also:
Serialized Form
Created on:
25 de Mar de 2011

Field Summary
protected  java.util.Map<java.lang.String,java.util.List<java.lang.String>> innerComplexPanels
          A map of inner complex panels that need to be redrawned upon activation, for each contained page panel
protected  PanelContainerDefinition panelContainerDefinition
          the panel container full definition
 
Fields inherited from class pt.digitalis.dif.presentation.views.jsp.taglibs.AbstractDIFTag
DOCUMENT_ID, DOCUMENT_SECURITY_TOKEN, MAIN_RESPONSE_ID, PAGE_CONTENT_ATTRIBUTE
 
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
AbstractPanelContainer()
           
 
Method Summary
 void addPanel(PanelDefinition panel)
          Adds a panel to the list
protected  void buildPanels(javax.servlet.jsp.JspWriter out, PanelContainerDefinition panelContainerDefinition)
          Creates the container with its panels.
protected  void cleanUp()
          Cleanup tag parameters
 int doEndTag()
           
 int doStartTag()
           
 PanelAlignment getAlign()
          Inspector for the 'align' attribute.
 java.lang.Boolean getBorder()
          Inspector for the 'border' attribute.
 java.lang.Boolean getCollapsed()
          Inspector for the 'collapsed' attribute.
 java.lang.Boolean getCollapsible()
          Inspector for the 'collapsible' attribute.
 java.lang.Integer getHeight()
          Inspector for the 'height' attribute.
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInnerComplexPanels()
          Inspector for the 'innerComplexPanels' attribute.
 PageContainer getPageContainerTag()
           
 PanelContainerDefinition getPanelContainerDefinition()
          Inspector for the 'panelContainerDefinition' attribute.
 IPanelContainer getPanelContainerTag()
           
 java.lang.Boolean getSplit()
          Inspector for the 'split' attribute.
 java.lang.String getTitle()
          Inspector for the 'title' attribute.
 PanelType getType()
          Inspector for the 'type' attribute.
 java.lang.String getWidth()
          Inspector for the 'width' attribute.
 void setAlign(PanelAlignment align)
          Modifier for the 'align' attribute.
 void setBorder(java.lang.Boolean border)
          Modifier for the 'border' attribute.
 void setCollapsed(java.lang.Boolean collapsed)
          Modifier for the 'collapsed' attribute.
 void setCollapsible(java.lang.Boolean collapsible)
          Modifier for the 'collapsible' attribute.
 void setHeight(java.lang.Integer height)
          Modifier for the 'height' attribute.
 void setSplit(java.lang.Boolean split)
          Modifier for the 'split' attribute.
 void setTitle(java.lang.String title)
          Modifier for the 'title' attribute.
 void setType(PanelType type)
          Modifier for the 'type' attribute.
 void setWidth(java.lang.String width)
          Modifier for the 'width' attribute.
 
Methods inherited from class pt.digitalis.dif.presentation.views.jsp.taglibs.AbstractInnerDIFTag
addHelpItem, bufferInnerContributions, flushContributions, flushContributions, flushContributions, getApplicationID, getComponentGeneratedId, getContributions, getDocumentTag, getLanguage, getLoggedProfileID, getLoggedProfileName, getLoggedUserFullName, getLoggedUserGroupIDs, getLoggedUsername, getMainDocumentTag, getMainRequestedStageID, getParentFootnoteContainerTag, getServiceID, getStageID, getTabIndexAttribute, getTabIndexAttribute, getTabIndexNumber, hasAccessToStage, hasAccessToStage, isLogged
 
Methods inherited from class pt.digitalis.dif.presentation.views.jsp.taglibs.AbstractDIFTag
getAuthorizationManager, getConfigurations, getDemManager, getDIFRequest, getDIFResponse, getDIFSession, getHttpControllerConfig, getIdentityManager, getMainRequest, getMainResponse, getMessageManager, getParameter, getParameterValueAsBoolean, getParameterValueAsString, getResponseBeanValue, getSecurityToken, getSessionManager, getStageInstance, getStageLink, getStageLink, getStageLinkURL, getStageLinkWithParameters, getTagMessage, getTagMessages, getTagMessages, getTagMessages, getUILevel, getWebUIHTMLGenerator, getWebUIJavascriptProvider, getWebUIStyleProvider, isAjaxMode, isComponentMode, isHelpMode, isPopupMode, isTemplateMode, setDIFResponse
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, 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 pt.digitalis.dif.presentation.views.jsp.taglibs.interfaces.ITagExecutionContext
getId, getSecurityToken, getTagMessage, getTagMessages, getUILevel, isAjaxMode, isComponentMode, isHelpMode, isPopupMode, isTemplateMode
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

innerComplexPanels

protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> innerComplexPanels
A map of inner complex panels that need to be redrawned upon activation, for each contained page panel


panelContainerDefinition

protected PanelContainerDefinition panelContainerDefinition
the panel container full definition

Constructor Detail

AbstractPanelContainer

public AbstractPanelContainer()
Method Detail

addPanel

public void addPanel(PanelDefinition panel)
Description copied from interface: IPanelContainer
Adds a panel to the list

Specified by:
addPanel in interface IPanelContainer
See Also:
IPanelContainer.addPanel(pt.digitalis.dif.presentation.views.jsp.taglibs.objects.beans.panels.PanelDefinition)

buildPanels

protected void buildPanels(javax.servlet.jsp.JspWriter out,
                           PanelContainerDefinition panelContainerDefinition)
                    throws java.io.IOException
Creates the container with its panels.
Should be overridden to add custom behavior in descendant components (instead of overriding the doEndTag method).

Parameters:
out -
panelContainerDefinition -
Throws:
java.io.IOException

cleanUp

protected void cleanUp()
Cleanup tag parameters


doEndTag

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

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
BodyTagSupport.doStartTag()

getAlign

public PanelAlignment getAlign()
Inspector for the 'align' attribute.

Returns:
the align value

getBorder

public java.lang.Boolean getBorder()
Inspector for the 'border' attribute.

Returns:
the border value

getCollapsed

public java.lang.Boolean getCollapsed()
Inspector for the 'collapsed' attribute.

Returns:
the collapsed value

getCollapsible

public java.lang.Boolean getCollapsible()
Inspector for the 'collapsible' attribute.

Returns:
the collapsible value

getHeight

public java.lang.Integer getHeight()
Inspector for the 'height' attribute.

Returns:
the height value

getInnerComplexPanels

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInnerComplexPanels()
Inspector for the 'innerComplexPanels' attribute.

Returns:
the innerComplexPanels value

getPageContainerTag

public PageContainer getPageContainerTag()
Returns:
the outer panel container tag object

getPanelContainerDefinition

public PanelContainerDefinition getPanelContainerDefinition()
Inspector for the 'panelContainerDefinition' attribute.

Specified by:
getPanelContainerDefinition in interface IPanelContainer
Returns:
the panelContainerDefinition value

getPanelContainerTag

public IPanelContainer getPanelContainerTag()
Returns:
the outer panel container tag object

getSplit

public java.lang.Boolean getSplit()
Inspector for the 'split' attribute.

Returns:
the split value

getTitle

public java.lang.String getTitle()
Inspector for the 'title' attribute.

Returns:
the title value

getType

public PanelType getType()
Inspector for the 'type' attribute.

Returns:
the type value

getWidth

public java.lang.String getWidth()
Inspector for the 'width' attribute.

Returns:
the width value

setAlign

public void setAlign(PanelAlignment align)
Modifier for the 'align' attribute.

Parameters:
align - the new align value to set

setBorder

public void setBorder(java.lang.Boolean border)
Modifier for the 'border' attribute.

Parameters:
border - the new border value to set

setCollapsed

public void setCollapsed(java.lang.Boolean collapsed)
Modifier for the 'collapsed' attribute.

Parameters:
collapsed - the new collapsed value to set

setCollapsible

public void setCollapsible(java.lang.Boolean collapsible)
Modifier for the 'collapsible' attribute.

Parameters:
collapsible - the new collapsible value to set

setHeight

public void setHeight(java.lang.Integer height)
Modifier for the 'height' attribute.

Parameters:
height - the new height value to set

setSplit

public void setSplit(java.lang.Boolean split)
Modifier for the 'split' attribute.

Parameters:
split - the new split value to set

setTitle

public void setTitle(java.lang.String title)
Modifier for the 'title' attribute.

Parameters:
title - the new title value to set

setType

public void setType(PanelType type)
Modifier for the 'type' attribute.

Parameters:
type - the new type value to set

setWidth

public void setWidth(java.lang.String width)
Modifier for the 'width' attribute.

Parameters:
width - the new width value to set


Copyright © 2011 Digitalis Informática Lda. All Rights Reserved.