public class TagEncodingHelper extends Object implements javax.faces.component.NamingContainer
Modifier and Type | Class and Description |
---|---|
protected static class |
TagEncodingHelper.ColumnExprWrapper
ColumnExprWrapper
wraps a ColumnExpr object into a Column interface object
|
protected class |
TagEncodingHelper.InputInfoImpl
InputInfoImpl
Provides information necessary to render an input control (editable)
|
protected class |
TagEncodingHelper.ValueInfoImpl
ValueInfoImpl
Provides information necessary to render a data value (non editable)
|
Modifier and Type | Field and Description |
---|---|
protected static String |
CC_ATTR_EXPR |
static String |
COLATTR_ABBR_TITLE |
static String |
COLATTR_TOOLTIP |
protected Column |
column |
protected javax.faces.component.UIOutput |
component |
protected InputControl |
control |
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 |
protected String |
cssStyleClass |
protected boolean |
hasError |
protected Boolean |
hasValueExpr |
protected Boolean |
insideUIData |
protected Object |
mostRecentValue |
static String |
ORIGINAL_COMPONENT_ID |
protected static String |
PH_COLUMN_FULL |
protected static String |
PH_COLUMN_NAME |
protected Object |
record |
protected RecordTag |
recordTag |
protected boolean |
skipValidation |
protected TextResolver |
textResolver |
protected javax.faces.component.UIData |
uiDataTag |
Modifier | Constructor and Description |
---|---|
protected |
TagEncodingHelper(javax.faces.component.UIOutput component,
String cssStyleClass) |
Modifier and Type | Method and Description |
---|---|
void |
addErrorMessage(javax.faces.context.FacesContext context,
Exception e) |
protected void |
addRequiredMark(javax.faces.component.html.HtmlOutputLabel label) |
static String |
assembleStyleClassString(String tagCssStyle,
String typeClass,
String addlStyle,
String userStyle) |
protected void |
checkRecord() |
String |
completeInputTagId(String id) |
protected String |
completeLabelStyleClass(String styleClass,
boolean required) |
protected Column |
createColumnExprWrapper(ColumnExpr colExpr) |
javax.faces.component.html.HtmlOutputLabel |
createLabelComponent(javax.faces.context.FacesContext context,
String forInput,
String styleClass,
String style,
boolean colon) |
protected boolean |
detectError(javax.faces.context.FacesContext context) |
protected InputControl |
detectInputControl(String controlType,
DataType dataType,
boolean hasOptions) |
void |
encodeBegin() |
protected Column |
findColumn() |
protected Column |
findColumnFromValue()
Checks whether the value attribute contains a column reference and returns it
|
protected Object |
findRecord() |
Object |
findRecordComponent() |
protected javax.el.ValueExpression |
findValueExpression(String attribute,
boolean allowLiteral) |
Object |
getAttributeValueEx(String name) |
protected Object |
getBeanPropertyValue(Object bean,
String property) |
Column |
getColumn() |
String |
getColumnName() |
protected String |
getContextStyleClass(String addlStyle) |
protected String |
getDataTypeClass(DataType type) |
Object |
getDataValue(boolean evalExpression) |
InputControl.DisabledType |
getDisabled() |
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() |
Boolean |
getRecordReadOnly() |
String |
getTagAttributeString(String name) |
String |
getTagAttributeString(String name,
String defValue) |
String |
getTagAttributeStringEx(String name) |
Object |
getTagAttributeValue(String name) |
static Object |
getTagAttributeValue(javax.faces.component.UIComponent comp,
String name) |
String |
getTagStyleClass() |
String |
getTagStyleClass(DataType dataType,
String addlStyle) |
String |
getTagStyleClass(DataType dataType,
String addlStyle,
String userStyle) |
String |
getTagStyleClass(String addlStyle) |
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() |
protected boolean |
isDetectFieldChange() |
boolean |
isInsideUIData() |
boolean |
isPartialSubmit(javax.faces.context.FacesContext ctx) |
boolean |
isReadOnly() |
boolean |
isRecordReadOnly() |
boolean |
isRenderValueComponent() |
boolean |
isSkipValidation() |
boolean |
isTempoaryNullable()
used for partial submits to detect whether the value of this field can be set to null
|
boolean |
isValueModified() |
boolean |
isValueRequired() |
boolean |
isVisible() |
void |
prepareData() |
void |
resetComponentId(javax.faces.component.UIComponent comp) |
void |
restoreComponentId(javax.faces.component.UIComponent comp) |
void |
saveComponentId(javax.faces.component.UIComponent comp) |
protected void |
setBeanPropertyValue(Object bean,
String property,
Object value) |
void |
setColumn(Column column) |
void |
setDataValue(Object value) |
void |
setRecord(Object record) |
protected Column |
unwrapColumn(Column col) |
protected ColumnExpr |
unwrapColumnExpr(Column col) |
void |
updateLabelComponent(javax.faces.context.FacesContext context,
javax.faces.component.html.HtmlOutputLabel label,
String forInput) |
boolean |
validateNullValue() |
void |
writeAttribute(javax.faces.context.ResponseWriter writer,
String attribute,
Object value) |
public static final String ORIGINAL_COMPONENT_ID
public static final String COLATTR_TOOLTIP
public static final String COLATTR_ABBR_TITLE
protected final javax.faces.component.UIOutput component
protected final String cssStyleClass
protected Column column
protected Object record
protected RecordTag recordTag
protected javax.faces.component.UIData uiDataTag
protected Boolean hasValueExpr
protected InputControl control
protected TextResolver textResolver
protected Object mostRecentValue
protected boolean skipValidation
protected boolean hasError
protected Boolean insideUIData
protected static final String PH_COLUMN_NAME
protected static final String PH_COLUMN_FULL
protected static final String CC_ATTR_EXPR
public static final String CSS_DATA_TYPE_NONE
public static final String CSS_DATA_TYPE_IDENT
public static final String CSS_DATA_TYPE_NUMBER
public static final String CSS_DATA_TYPE_TEXT
public static final String CSS_DATA_TYPE_LONGTEXT
public static final String CSS_DATA_TYPE_DATE
public static final String CSS_DATA_TYPE_BOOL
protected TagEncodingHelper(javax.faces.component.UIOutput component, String cssStyleClass)
public void encodeBegin()
public void prepareData()
public InputControl getInputControl()
protected InputControl detectInputControl(String controlType, DataType dataType, boolean hasOptions)
protected void checkRecord()
public InputControl.ValueInfo getValueInfo(javax.faces.context.FacesContext ctx)
public InputControl.InputInfo getInputInfo(javax.faces.context.FacesContext ctx)
public boolean isPartialSubmit(javax.faces.context.FacesContext ctx)
public boolean isSkipValidation()
public boolean hasColumn()
public Column getColumn()
public String getColumnName()
public void setColumn(Column column)
public Object getRecord()
public void setRecord(Object record)
public Object findRecordComponent()
protected boolean isDetectFieldChange()
public Object getDataValue(boolean evalExpression)
public void setDataValue(Object value)
public boolean isRenderValueComponent()
public boolean isRecordReadOnly()
public Boolean getRecordReadOnly()
public boolean isVisible()
public boolean isReadOnly()
public InputControl.DisabledType getDisabled()
public boolean isValueRequired()
public boolean isValueModified()
public boolean validateNullValue()
public boolean isTempoaryNullable()
protected Column findColumn()
protected Column findColumnFromValue()
protected Column createColumnExprWrapper(ColumnExpr colExpr)
protected ColumnExpr unwrapColumnExpr(Column col)
protected Object findRecord()
protected boolean hasValueExpression()
protected javax.el.ValueExpression findValueExpression(String attribute, boolean allowLiteral)
protected Options getValueOptions()
protected void setBeanPropertyValue(Object bean, String property, Object value)
public boolean hasFormat(String format)
public boolean hasFormat(InputControl.ValueInfo vi, String format)
public void writeAttribute(javax.faces.context.ResponseWriter writer, String attribute, Object value) throws IOException
IOException
public TextResolver getTextResolver(javax.faces.context.FacesContext context)
protected boolean detectError(javax.faces.context.FacesContext context)
public void addErrorMessage(javax.faces.context.FacesContext context, Exception e)
public static Object getTagAttributeValue(javax.faces.component.UIComponent comp, String name)
public javax.faces.component.html.HtmlOutputLabel createLabelComponent(javax.faces.context.FacesContext context, String forInput, String styleClass, String style, boolean colon)
public void updateLabelComponent(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutputLabel label, String forInput)
protected String completeLabelStyleClass(String styleClass, boolean required)
protected void addRequiredMark(javax.faces.component.html.HtmlOutputLabel label)
public static final String assembleStyleClassString(String tagCssStyle, String typeClass, String addlStyle, String userStyle)
public String getTagStyleClass(DataType dataType, String addlStyle, String userStyle)
public final String getTagStyleClass()
public boolean isInsideUIData()
public void saveComponentId(javax.faces.component.UIComponent comp)
public void restoreComponentId(javax.faces.component.UIComponent comp)
public void resetComponentId(javax.faces.component.UIComponent comp)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.