/* * $Id: ContentItemViewerTag.java,v 1.3 2006/10/12 11:02:56 gediminas Exp $ * Created on 21.2.2005 * * Copyright (C) 2005 Idega Software hf. All Rights Reserved. * * This software is the proprietary information of Idega hf. * Use is subject to license terms. */ package com.idega.content.presentation; import javax.faces.component.UIComponent; import javax.faces.webapp.UIComponentTag; /** * * Last modified: $Date: 2006/10/12 11:02:56 $ by $Author: gediminas $ * * @author <a href="mailto:gummi@idega.com">Gudmundur Agust Saemundsson</a> * @version $Revision: 1.3 $ */ public abstract class ContentItemViewerTag extends UIComponentTag { private Boolean renderDetailsCommand = null; private Boolean showRequestedItem = null; /** * */ public ContentItemViewerTag() { super(); } /* (non-Javadoc) * @see javax.faces.webapp.UIComponentTag#getComponentType() */ public abstract String getComponentType(); /* (non-Javadoc) * @see javax.faces.webapp.UIComponentTag#getRendererType() */ public String getRendererType() { return ContentItemViewer.DEFAULT_RENDERER_TYPE; } public void release() { super.release(); this.renderDetailsCommand = null; this.showRequestedItem = null; } protected void setProperties(UIComponent component) { super.setProperties(component); if (component instanceof ContentItemViewer) { ContentItemViewer viewer = (ContentItemViewer)component; if(this.renderDetailsCommand != null){ viewer.setRenderDetailsCommand(this.renderDetailsCommand.booleanValue()); } if(this.showRequestedItem != null){ viewer.setShowRequestedItem(this.showRequestedItem.booleanValue()); } } } /** * @return Returns the renderDetailsCommand. */ public Boolean getRenderDetailsCommand() { return this.renderDetailsCommand; } /** * @param renderDetailsCommand The renderDetailsCommand to set. */ public void setRenderDetailsCommand(Boolean renderDetailsCommand) { this.renderDetailsCommand = renderDetailsCommand; } /** * @return Returns the showRequestedItem. */ public Boolean getShowRequestedItem() { return this.showRequestedItem; } /** * @param showRequestedItem The showRequestedItem to set. */ public void setShowRequestedItem(Boolean showRequestedItem) { this.showRequestedItem = showRequestedItem; } }