|
||||||||||
| PREV CLASS Documentation homepage 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
ilog.views.faces.taglib.IlvSizedTag
ilog.views.faces.dhtml.taglib.IlvDHTMLSizedTag
ilog.views.faces.dhtml.taglib.IlvDHTMLViewTag
public abstract class IlvDHTMLViewTag
This class defines the custom tag handler for a DHTML view 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 | |
|---|---|
IlvDHTMLViewTag()
Creates a new IlvDHTMLViewTag instance. |
|
| Method Summary | |
|---|---|
String |
getData()
Returns the data to be displayed by this component |
protected int |
getDoStartValue()
Returns the value used by doStartTag
This implemetation returns EVAL_BODY_INCLUDE. |
String |
getImageFormat()
Returns the desired format of the generated image by the servlet. |
String |
getMessageBox()
Returns the binding to a message box linked to this component. |
String |
getMessageBoxId()
Returns the identifier of the associated message box. |
String |
getServlet()
Returns the servlet that will generate the image displayed by the view. |
String |
getWaitingImage()
Returns the path to the image displayed when the view loads the image. |
void |
setData(String data)
Sets the data to be displayed by this component. |
void |
setImageFormat(String imageFormat)
Sets the desired format of the generated image by the servlet. |
void |
setMessageBox(String messageBox)
Sets the binding to a message box linked to this component. |
void |
setMessageBoxId(String messageBoxId)
Sets a message box identifier to this view component. |
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
protected void setProperties(UIComponent component) {
super.setProperties(component);
if (foo != null) {
component.setAttribute("foo", foo);
}
if (bar != null) {
component.setAttribute("bar", bar);
}
}
|
void |
setServlet(String servlet)
Sets the servlet that will generate the image displayed by the view. |
void |
setWaitingImage(String waitingImage)
Sets the path of the image displayed when the view loads the image. |
| Methods inherited from class ilog.views.faces.dhtml.taglib.IlvDHTMLSizedTag |
|---|
getStyle, getStyleClass, setStyle, setStyleClass |
| Methods inherited from class ilog.views.faces.taglib.IlvSizedTag |
|---|
getHeight, getWidth, setHeight, setWidth |
| Methods inherited from class ilog.views.faces.taglib.IlvBaseTag |
|---|
getComponentType, getRendererType, setProperty, setVBProperty, testSetProperties |
| Methods inherited from class javax.faces.webapp.UIComponentBodyTag |
|---|
doAfterBody, doInitBody, getBodyContent, getDoAfterBodyValue, 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 |
|---|
public IlvDHTMLViewTag()
IlvDHTMLViewTag instance.
| Method Detail |
|---|
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 IlvDHTMLSizedTagcomponent - The component whose properties are to be
overriddenpublic String getImageFormat()
public String getMessageBoxId()
public String getWaitingImage()
public void setImageFormat(String imageFormat)
JPEG and PNG.
imageFormat - The desired image format of the image displayed by the
view.public void setMessageBoxId(String messageBoxId)
messageBoxId - The ID of the message box to set to the view.public void setWaitingImage(String waitingImage)
waitingImage - The path of the image displayed when the view loads the
image.public void setServlet(String servlet)
setValue. The servlet parameter could be a URL to
the servlet or a fully qualified servlet class that will be instantiated
to generate the image.
servlet - The image generating the servlet.public String getServlet()
public String getMessageBox()
public void setMessageBox(String messageBox)
messageBox - The binding expression to a message box.
protected int getDoStartValue()
throws javax.servlet.jsp.JspException
Returns the value used by doStartTag
This implemetation returns EVAL_BODY_INCLUDE.
getDoStartValue in class UIComponentBodyTagEVAL_BODY_INCLUDE.
javax.servlet.jsp.JspExceptionpublic String getData()
public void setData(String data)
data - The data to displayed.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||