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 | Constructor and Description |
---|---|
protected |
TagEncodingHelper(javax.faces.component.UIOutput component,
String cssStyleClass)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorMessage(javax.faces.context.FacesContext context,
Exception e) |
protected void |
addRequiredMark(javax.faces.component.html.HtmlOutputLabel label) |
protected String |
assembleStyleClassString(String... styles) |
boolean |
beginUpdateModel(javax.faces.context.FacesContext ctx,
Object value) |
boolean |
beginValidateValue(javax.faces.context.FacesContext ctx,
Object value) |
static String |
buildComponentId(String s) |
protected void |
checkRecord() |
String |
completeInputTagId(String id) |
protected String |
completeLabelStyleClass(String styleClasses,
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) |
protected boolean |
detectInsideUIData() |
protected boolean |
detectReadOnly() |
protected Options |
detectValueOptions() |
protected boolean |
detectValueRequired() |
void |
encodeBegin()
Called from UIComponent.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 |
getColumnFullName() |
String |
getColumnName() |
String |
getContextStyleClass() |
ControlRenderInfo |
getControlRenderInfo() |
protected String |
getDataTypeClass(DataType type)
Deprecated.
|
Object |
getDataValue(boolean evalExpression) |
InputControl.DisabledType |
getDisabled() |
String |
getDisplayText(String text) |
protected FormGridTag |
getFormGrid() |
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 |
getSimpleStyleClass() |
String |
getSimpleStyleClass(String userStyle) |
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 addlStyle) |
String |
getTagStyleClass(String typeClass,
String addlStyle) |
String |
getTagStyleClass(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 |
hasComponentId() |
static boolean |
hasComponentId(String id) |
boolean |
hasFormat(InputControl.ValueInfo vi,
String format) |
boolean |
hasFormat(String format) |
protected boolean |
hasValueExpression() |
protected boolean |
isDetectFieldChange() |
boolean |
isInsideUIData() |
boolean |
isReadOnly() |
boolean |
isRecordReadOnly() |
boolean |
isRenderValueComponent() |
boolean |
isSkipValidation() |
boolean |
isValueModified() |
boolean |
isValueRequired() |
boolean |
isVisible() |
protected String |
nullIf(String value,
char nullChar) |
void |
prepareData()
Prepares the control for decoding, validating and updating
|
void |
reset() |
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) |
void |
writeComponentId(javax.faces.context.ResponseWriter writer) |
void |
writeComponentId(javax.faces.context.ResponseWriter writer,
boolean renderAutoId) |
void |
writeStyleClass(javax.faces.context.ResponseWriter writer) |
void |
writeStyleClass(javax.faces.context.ResponseWriter writer,
String... styleClasses) |
String |
writeWrapperTag(javax.faces.context.FacesContext context,
boolean renderId,
boolean renderValue) |
public static final String FACES_ID_PREFIX
public static boolean CSS_STYLE_USE_INPUT_TYPE_INSTEAD_OF_DATA_TYPE
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 FormGridTag formGridTag
protected InputControl control
protected TextResolver textResolver
protected byte hasValueExpr
protected byte insideUIData
protected byte readOnly
protected byte valueRequired
protected boolean optionsDetected
protected Options options
protected InputControl.ValueInfo valueInfo
protected boolean skipValidation
protected Object mostRecentValue
public static final char PH_COLUMN_NAME
public static final char PH_COLUMN_FULL
public static final char PH_COLUMN_SMART
public static final char[] ALLOWED_COLUMN_PH
protected static final String CC_ATTR_EXPR
public static final String CSS_DATA_TYPE_NONE
public static final String CSS_DATA_TYPE_INT
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_DATETIME
public static final String CSS_DATA_TYPE_BOOL
protected TagEncodingHelper(javax.faces.component.UIOutput component, String cssStyleClass)
component
- the UIComponentcssStyleClass
- the basic cssStyleClasspublic void encodeBegin()
public void prepareData()
public InputControl getInputControl()
protected InputControl detectInputControl(String controlType, DataType dataType)
protected void checkRecord()
public InputControl.ValueInfo getValueInfo(javax.faces.context.FacesContext ctx)
public InputControl.InputInfo getInputInfo(javax.faces.context.FacesContext ctx)
public boolean isSkipValidation()
public boolean hasColumn()
public Column getColumn()
public String getColumnName()
public String getColumnFullName()
public void setColumn(Column column)
public Object getRecord()
public void setRecord(Object record)
public void reset()
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 final boolean isReadOnly()
protected boolean detectReadOnly()
public final boolean isValueRequired()
protected boolean detectValueRequired()
public InputControl.DisabledType getDisabled()
public boolean isValueModified()
public boolean validateNullValue()
public boolean beginValidateValue(javax.faces.context.FacesContext ctx, Object value)
public boolean beginUpdateModel(javax.faces.context.FacesContext ctx, Object value)
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 final Options getValueOptions()
protected Options detectValueOptions()
protected void setBeanPropertyValue(Object bean, String property, Object value)
public boolean hasFormat(String format)
public boolean hasFormat(InputControl.ValueInfo vi, String format)
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 boolean hasComponentId()
public static boolean hasComponentId(String id)
public static Object getTagAttributeValue(javax.faces.component.UIComponent comp, String name)
public void writeAttribute(javax.faces.context.ResponseWriter writer, String attribute, Object value) throws IOException
IOException
public void writeComponentId(javax.faces.context.ResponseWriter writer, boolean renderAutoId) throws IOException
IOException
public void writeComponentId(javax.faces.context.ResponseWriter writer) throws IOException
IOException
public void writeStyleClass(javax.faces.context.ResponseWriter writer, String... styleClasses) throws IOException
IOException
public void writeStyleClass(javax.faces.context.ResponseWriter writer) throws IOException
IOException
public String writeWrapperTag(javax.faces.context.FacesContext context, boolean renderId, boolean renderValue) throws IOException
IOException
protected FormGridTag getFormGrid()
public ControlRenderInfo getControlRenderInfo()
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 styleClasses, boolean required)
protected void addRequiredMark(javax.faces.component.html.HtmlOutputLabel label)
@Deprecated protected String getDataTypeClass(DataType type)
public String getSimpleStyleClass()
public String getTagStyleClass(String typeClass, String addlStyle, String userStyle)
public String getContextStyleClass()
public final boolean isInsideUIData()
protected boolean detectInsideUIData()
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–2023 Apache Software Foundation. All rights reserved.