org.apache.empire.jsf2.utils
Class TagEncodingHelper
java.lang.Object
org.apache.empire.jsf2.utils.TagEncodingHelper
- All Implemented Interfaces:
- javax.faces.component.NamingContainer
public class TagEncodingHelper
- extends Object
- implements javax.faces.component.NamingContainer
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
Method Summary |
void |
addErrorMessage(javax.faces.context.FacesContext context,
Exception e)
|
protected void |
addRequiredMark(javax.faces.component.html.HtmlOutputLabel label)
|
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(String attribute,
boolean allowLiteral)
|
Object |
getAttributeValueEx(String name)
|
protected Object |
getBeanPropertyValue(Object bean,
String property)
|
Column |
getColumn()
|
String |
getColumnName()
|
static String |
getDataTypeClass(DataType type)
|
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 |
getTagAttributeString(String name)
|
String |
getTagAttributeString(String name,
String defValue)
|
Object |
getTagAttributeValue(String name)
|
String |
getTagStyleClass()
|
String |
getTagStyleClass(DataType dataType,
String addlStyle)
|
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 |
hasValueExpression()
|
boolean |
isPartialSubmit(javax.faces.context.FacesContext ctx)
|
boolean |
isReadOnly()
|
boolean |
isRecordReadOnly()
|
boolean |
isSkipValidation()
|
boolean |
isTempoaryNullable()
used for partial submits to detect whether the value of this field can be set to null |
boolean |
isValueRequired()
|
boolean |
isVisible()
|
protected void |
setBeanPropertyValue(Object bean,
String property,
Object value)
|
void |
setColumn(Column column)
|
void |
setDataValue(Object value)
|
void |
setRecord(Object record)
|
void |
updateLabelComponent(javax.faces.context.FacesContext context,
javax.faces.component.html.HtmlOutputLabel label,
String forInput)
|
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 |
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
TagEncodingHelper
public TagEncodingHelper(javax.faces.component.UIOutput tag,
String tagCssStyle)
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)
isPartialSubmit
public boolean isPartialSubmit(javax.faces.context.FacesContext ctx)
isSkipValidation
public boolean isSkipValidation()
hasColumn
public boolean hasColumn()
getColumn
public Column getColumn()
getColumnName
public String getColumnName()
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()
isVisible
public boolean isVisible()
isReadOnly
public boolean isReadOnly()
isValueRequired
public boolean isValueRequired()
isTempoaryNullable
public boolean isTempoaryNullable()
- used for partial submits to detect whether the value of this field can be set to null
findColumn
protected Column findColumn()
findRecord
protected Object findRecord()
hasValueExpression
protected boolean hasValueExpression()
findValueExpression
protected javax.el.ValueExpression findValueExpression(String attribute,
boolean allowLiteral)
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)
getAttributeValueEx
public Object getAttributeValueEx(String name)
getTagAttributeValue
public Object getTagAttributeValue(String name)
getTagAttributeString
public String getTagAttributeString(String name,
String defValue)
getTagAttributeString
public String getTagAttributeString(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)
updateLabelComponent
public void updateLabelComponent(javax.faces.context.FacesContext context,
javax.faces.component.html.HtmlOutputLabel label,
String forInput)
addRequiredMark
protected void addRequiredMark(javax.faces.component.html.HtmlOutputLabel label)
getTagStyleClass
public static final String getTagStyleClass(String tagCssStyle,
String typeClass,
String addlStyle,
String userStyle)
getDataTypeClass
public static final String getDataTypeClass(DataType type)
getTagStyleClass
public final String getTagStyleClass(DataType dataType,
String addlStyle,
String userStyle)
getTagStyleClass
public final String getTagStyleClass(DataType dataType,
String addlStyle)
getTagStyleClass
public final String getTagStyleClass(String addlStyle)
getTagStyleClass
public final String getTagStyleClass()
Copyright © 2008–2014 Apache Software Foundation. All rights reserved.