org.alfresco.web.bean.wcm
Class DescriptionAttributeHelper

java.lang.Object
  extended by org.alfresco.web.bean.wcm.DescriptionAttributeHelper

public class DescriptionAttributeHelper
extends java.lang.Object

Helper class to build a HTML description attribute for the tag.

See Also:
CreateWebsiteWizard, CreateFormWizard

Constructor Summary
DescriptionAttributeHelper()
           
 
Method Summary
static java.lang.String getDescriptionNotEmpty(javax.faces.context.FacesContext fc, java.lang.String fieldValue)
           
static java.lang.String getTableBegin()
           
static java.lang.String getTableEnd()
           
static java.lang.String getTableLine(javax.faces.context.FacesContext fc, java.lang.String fieldName, java.lang.String fieldValue)
           
static java.lang.String getTableLine(javax.faces.context.FacesContext fc, java.lang.String fieldName, java.lang.String fieldValue, boolean encode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionAttributeHelper

public DescriptionAttributeHelper()
Method Detail

getTableBegin

public static java.lang.String getTableBegin()
Returns:
Returns beginning tags of the HTML table
See Also:
org.alfresco.web.bean.wcm.DescriptionAttributeConstants

getTableLine

public static java.lang.String getTableLine(javax.faces.context.FacesContext fc,
                                            java.lang.String fieldName,
                                            java.lang.String fieldValue)
Parameters:
fc - Current FacesContext
fieldName - Field name
fieldValue - Field value
Returns:
Returns a table line Localised field name:Field value

getTableLine

public static java.lang.String getTableLine(javax.faces.context.FacesContext fc,
                                            java.lang.String fieldName,
                                            java.lang.String fieldValue,
                                            boolean encode)
Parameters:
fc - Current FacesContext
fieldName - Field name
fieldValue - Field value
encode - Whether to encode the given value or not
Returns:
Returns a table line Localised field name:Field value

getTableEnd

public static java.lang.String getTableEnd()
Returns:
Returns an ending HTML table tags

getDescriptionNotEmpty

public static java.lang.String getDescriptionNotEmpty(javax.faces.context.FacesContext fc,
                                                      java.lang.String fieldValue)
Parameters:
fc - Current FacesContext
fieldValue - Field value
Returns:
Returns localised "description_not_set" message if fieldValue is empty.


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