|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.webapp.UIComponentTag
javax.faces.webapp.UIComponentBodyTag
ilog.views.faces.taglib.IlvBaseTag
public abstract class IlvBaseTag
The IlvBaseTag is the base class for the tag handlers of JViews faces components.
The methods provide an easy way to set properties on the component.
| Field Summary |
|---|
| Fields inherited from class javax.faces.webapp.UIComponentBodyTag |
|---|
bodyContent |
| Fields inherited from class javax.faces.webapp.UIComponentTag |
|---|
pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
protected |
IlvBaseTag()
Creates a new IlvBaseTag instance. |
| Method Summary | |
|---|---|
String |
getComponentType()
Returns the component type for the component that is or will be bound to this tag. |
String |
getRendererType()
Return the rendererType property that selects the
Renderer to be used for encoding this component, or
null to ask the component to render itself directly. |
protected void |
setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. |
protected void |
setProperty(UIComponent component,
String propertyId,
String propertyValue)
Sets a property on the component. |
protected boolean |
setVBProperty(UIComponent component,
String propertyId,
String propertyValue)
Sets the property on the component if the property value is a referenced value. |
void |
testSetProperties(UIComponent component)
|
| Methods inherited from class javax.faces.webapp.UIComponentBodyTag |
|---|
doAfterBody, doInitBody, getBodyContent, getDoAfterBodyValue, getDoStartValue, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.faces.webapp.UIComponentTag |
|---|
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
doEndTag, doStartTag, getParent, setPageContext, setParent |
| Constructor Detail |
|---|
protected IlvBaseTag()
IlvBaseTag instance.
| Method Detail |
|---|
public String getComponentType()
Returns the component type for the component that is or will be bound to this tag.
This implementation returns null, subclasses must
override this method to return the appropriate value.
getComponentType in class UIComponentTagpublic String getRendererType()
Return the rendererType property that selects the
Renderer to be used for encoding this component, or
null to ask the component to render itself directly.
This implementation return null, subclasses must override
this method to return the appropriate value.
getRendererType in class UIComponentTag
protected boolean setVBProperty(UIComponent component,
String propertyId,
String propertyValue)
component - The component to customize.propertyId - The name of the property to set.propertyValue - The value of the property.
true If the property is a referenced value and was set, false
otherwise.
protected void setProperty(UIComponent component,
String propertyId,
String propertyValue)
component - The component to customize.propertyId - The name of the property to set.propertyValue - The value of the property.public void testSetProperties(UIComponent component)
component - The component to test.protected void setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified component was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the component is added to the view.
Tag subclasses that want to support additional set properties
must ensure that the base class setProperties()
method is still called. A typical implementation that supports
extra properties foo and bar would look
something like this:
protected void setProperties(UIComponent component) {
super.setProperties(component);
if (foo != null) {
component.setAttribute("foo", foo);
}
if (bar != null) {
component.setAttribute("bar", bar);
}
}
setProperties in class UIComponentTagcomponent - The component whose properties are to be
overridden
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||