com.cc.framework.taglib.controls
Class PanelContentTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.controls.PanelContentTag
All Implemented Interfaces:
ImageContainerTag, InnerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class PanelContentTag
extends javax.servlet.jsp.tagext.TagSupport
implements ImageContainerTag, InnerTag

Tag-Handler for the panel-content Tag.

Since:
1.0
Version:
$Revision: 1.18 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  PanelContentDesignModel designModel
          DesignModel
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
PanelContentTag()
          Constructor
 
Method Summary
 void addItem(PanelItemDesignModel item)
          Adds a panel item
 int doEndTag()
           
 int doStartTag()
           
protected  void exposeScriptingVariable(PanelContentDesignModel content)
          Exposes the PanelContentDesignModel instance as a scripting variable to the Tag body
protected  PanelContentDesignModel getDesignModel()
          Returns the PanelContentDesignModel
 void release()
           
protected  void releaseDesignModel()
          Releases the PanelContentDesignModel
 void setAction(java.lang.String action)
          Specifies the Struts Action that is to be called in case of control element events.
 void setFilter(java.lang.String filter)
          Sets HTML filtering on or off
 void setImage(ImageModel image)
          Sets the image
 void setLocale(java.lang.String locale)
          Sets the Loacel configuration for this element
 void setMore(java.lang.String more)
          This attribute guides the Painter to a "more..." to draw an entry at the end of the group.
 void setPageContext(javax.servlet.jsp.PageContext pc)
           
 void setPermission(java.lang.String permission)
          With this attribute, access to the element can be restricted.
 void setTitle(java.lang.String title)
          The group title.
 void setTooltip(java.lang.String tooltip)
          Tooltip Text that is displayed in a Popup window when the user moves the mouse over the title.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

designModel

private PanelContentDesignModel designModel
DesignModel

Constructor Detail

PanelContentTag

public PanelContentTag()
Constructor

Method Detail

getDesignModel

protected PanelContentDesignModel getDesignModel()
Returns the PanelContentDesignModel

Returns:
PanelContentDesignModel

releaseDesignModel

protected void releaseDesignModel()
Releases the PanelContentDesignModel


setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pc)
Specified by:
setPageContext in interface javax.servlet.jsp.tagext.Tag
See Also:
Tag.setPageContext(PageContext pc)

release

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

exposeScriptingVariable

protected void exposeScriptingVariable(PanelContentDesignModel content)
Exposes the PanelContentDesignModel instance as a scripting variable to the Tag body

Parameters:
content - The Design Model

doStartTag

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

doEndTag

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

addItem

public void addItem(PanelItemDesignModel item)
Adds a panel item

Parameters:
item - PanelItemDesignModel

setImage

public void setImage(ImageModel image)
Description copied from interface: ImageContainerTag
Sets the image

Specified by:
setImage in interface ImageContainerTag
Parameters:
image - The image model for the image
See Also:
ImageContainerTag.setImage(com.cc.framework.ui.model.ImageModel)

setMore

public void setMore(java.lang.String more)
This attribute guides the Painter to a "more..." to draw an entry at the end of the group. The user's attention should thus be drawn to additional entries.

Parameters:
more - More

setTitle

public void setTitle(java.lang.String title)
The group title.

Parameters:
title - The group title.

setAction

public void setAction(java.lang.String action)
Specifies the Struts Action that is to be called in case of control element events. This attribute need not be specified if the tag is included within a Struts tag. In that case, the name of the action is determined using the Struts Form Bean.

Parameters:
action - Action to perform

setPermission

public void setPermission(java.lang.String permission)
                   throws javax.servlet.jsp.JspException
With this attribute, access to the element can be restricted. Authorizations are checked using the com.cc.framework.security.Principal object in the user session. Authorizations are always specified in the form of an Access Control List (ACL). What is involved here is a semicolon-delimited list with individual authorizations.

Parameters:
permission - String witch stands for the required authorization
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to an object of type permission
See Also:
SecurityUtil

setTooltip

public void setTooltip(java.lang.String tooltip)
Tooltip Text that is displayed in a Popup window when the user moves the mouse over the title.

Parameters:
tooltip - Tooltip

setFilter

public void setFilter(java.lang.String filter)
               throws javax.servlet.jsp.JspException
Sets HTML filtering on or off

Parameters:
filter - Boolean String
Throws:
javax.servlet.jsp.JspException - If the argument can't be converted into an object of type boolean

setLocale

public void setLocale(java.lang.String locale)
Sets the Loacel configuration for this element

Parameters:
locale - Locale Identifier or true|false


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.