org.alfresco.web.bean.wcm
Class DescriptionAttributeHelper
java.lang.Object
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
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 |
DescriptionAttributeHelper
public DescriptionAttributeHelper()
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 FacesContextfieldName
- Field namefieldValue
- 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 FacesContextfieldName
- Field namefieldValue
- Field valueencode
- 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 FacesContextfieldValue
- Field value
- Returns:
- Returns localised "description_not_set" message if fieldValue is empty.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.