org.apache.empire.jsf2.utils
Class TagEncodingHelper

java.lang.Object
  extended by org.apache.empire.jsf2.utils.TagEncodingHelper
All Implemented Interfaces:
javax.faces.component.NamingContainer

public class TagEncodingHelper
extends Object
implements javax.faces.component.NamingContainer


Field Summary
static String COLATTR_ABBR_TITLE
           
static String CSS_DATA_TYPE_BOOL
           
static String CSS_DATA_TYPE_DATE
           
static String CSS_DATA_TYPE_IDENT
           
static String CSS_DATA_TYPE_LONGTEXT
           
static String CSS_DATA_TYPE_NONE
           
static String CSS_DATA_TYPE_NUMBER
           
static String CSS_DATA_TYPE_TEXT
           
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
TagEncodingHelper(javax.faces.component.UIOutput tag, String tagCssStyle)
           
 
Method Summary
 void addErrorMessage(javax.faces.context.FacesContext context, Exception e)
           
 javax.faces.component.html.HtmlOutputLabel createLabelComponent(javax.faces.context.FacesContext context, String forInput, String styleClass, String style, boolean colon)
           
 void encodeBegin()
           
protected  Column findColumn()
           
protected  Object findRecord()
           
protected  javax.el.ValueExpression findValueExpression()
           
protected  Object getBeanPropertyValue(Object bean, String property)
           
 Column getColumn()
           
 Object getDataValue(boolean evalExpression)
           
 String getDisplayText(String text)
           
 InputControl getInputControl()
           
 InputControl.InputInfo getInputInfo(javax.faces.context.FacesContext ctx)
           
 String getLabelTooltip(Column column)
           
protected  String getLabelValue(Column column, boolean colon)
           
 Object getRecord()
           
 RecordTag getRecordComponent()
           
 String getTagAttribute(String name)
           
 String getTagAttribute(String name, String defValue)
           
 String getTagStyleClass()
           
 String getTagStyleClass(DataType dataType)
           
 String getTagStyleClass(DataType dataType, String addlStyle, String userStyle)
           
 String getTagStyleClass(String addlStyle)
           
static String getTagStyleClass(String tagCssStyle, String typeClass, String addlStyle, String userStyle)
           
 TextResolver getTextResolver(javax.faces.context.FacesContext context)
           
 InputControl.ValueInfo getValueInfo(javax.faces.context.FacesContext ctx)
           
protected  Options getValueOptions()
           
 String getValueTooltip(Object value)
           
 boolean hasColumn()
           
 boolean hasFormat(InputControl.ValueInfo vi, String format)
           
 boolean hasFormat(String format)
           
protected  boolean hasValueAttribute()
           
 boolean isReadOnly()
           
 boolean isRecordReadOnly()
           
 boolean isValueRequired()
           
protected  void setBeanPropertyValue(Object bean, String property, Object value)
           
 void setColumn(Column column)
           
 void setDataValue(Object value)
           
 void setRecord(Object record)
           
 void writeAttribute(javax.faces.context.ResponseWriter writer, String attribute, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLATTR_ABBR_TITLE

public static final String COLATTR_ABBR_TITLE
See Also:
Constant Field Values

CSS_DATA_TYPE_NONE

public static final String CSS_DATA_TYPE_NONE
See Also:
Constant Field Values

CSS_DATA_TYPE_IDENT

public static final String CSS_DATA_TYPE_IDENT
See Also:
Constant Field Values

CSS_DATA_TYPE_NUMBER

public static final String CSS_DATA_TYPE_NUMBER
See Also:
Constant Field Values

CSS_DATA_TYPE_TEXT

public static final String CSS_DATA_TYPE_TEXT
See Also:
Constant Field Values

CSS_DATA_TYPE_LONGTEXT

public static final String CSS_DATA_TYPE_LONGTEXT
See Also:
Constant Field Values

CSS_DATA_TYPE_DATE

public static final String CSS_DATA_TYPE_DATE
See Also:
Constant Field Values

CSS_DATA_TYPE_BOOL

public static final String CSS_DATA_TYPE_BOOL
See Also:
Constant Field Values
Constructor Detail

TagEncodingHelper

public TagEncodingHelper(javax.faces.component.UIOutput tag,
                         String tagCssStyle)
Method Detail

encodeBegin

public void encodeBegin()

getInputControl

public InputControl getInputControl()

getValueInfo

public InputControl.ValueInfo getValueInfo(javax.faces.context.FacesContext ctx)

getInputInfo

public InputControl.InputInfo getInputInfo(javax.faces.context.FacesContext ctx)

hasColumn

public boolean hasColumn()

getColumn

public Column getColumn()

setColumn

public void setColumn(Column column)

getRecord

public Object getRecord()

setRecord

public void setRecord(Object record)

getRecordComponent

public RecordTag getRecordComponent()

getDataValue

public Object getDataValue(boolean evalExpression)

setDataValue

public void setDataValue(Object value)

isRecordReadOnly

public boolean isRecordReadOnly()

isReadOnly

public boolean isReadOnly()

isValueRequired

public boolean isValueRequired()

findColumn

protected Column findColumn()

findRecord

protected Object findRecord()

hasValueAttribute

protected boolean hasValueAttribute()

findValueExpression

protected javax.el.ValueExpression findValueExpression()

getValueOptions

protected Options getValueOptions()

getBeanPropertyValue

protected Object getBeanPropertyValue(Object bean,
                                      String property)

setBeanPropertyValue

protected void setBeanPropertyValue(Object bean,
                                    String property,
                                    Object value)

getValueTooltip

public String getValueTooltip(Object value)

getLabelTooltip

public String getLabelTooltip(Column column)

hasFormat

public boolean hasFormat(String format)

hasFormat

public boolean hasFormat(InputControl.ValueInfo vi,
                         String format)

writeAttribute

public void writeAttribute(javax.faces.context.ResponseWriter writer,
                           String attribute,
                           Object value)
                    throws IOException
Throws:
IOException

getDisplayText

public String getDisplayText(String text)

getTextResolver

public TextResolver getTextResolver(javax.faces.context.FacesContext context)

addErrorMessage

public void addErrorMessage(javax.faces.context.FacesContext context,
                            Exception e)

getTagAttribute

public String getTagAttribute(String name,
                              String defValue)

getTagAttribute

public String getTagAttribute(String name)

getLabelValue

protected String getLabelValue(Column column,
                               boolean colon)

createLabelComponent

public javax.faces.component.html.HtmlOutputLabel createLabelComponent(javax.faces.context.FacesContext context,
                                                                       String forInput,
                                                                       String styleClass,
                                                                       String style,
                                                                       boolean colon)

getTagStyleClass

public static String getTagStyleClass(String tagCssStyle,
                                      String typeClass,
                                      String addlStyle,
                                      String userStyle)

getTagStyleClass

public final String getTagStyleClass(DataType dataType,
                                     String addlStyle,
                                     String userStyle)

getTagStyleClass

public final String getTagStyleClass(DataType dataType)

getTagStyleClass

public final String getTagStyleClass(String addlStyle)

getTagStyleClass

public final String getTagStyleClass()


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.