|
||||||||||
| 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.dhtml.taglib.IlvImageButtonTag
public class IlvImageButtonTag
This class defines the custom tag handler for the DHTML image button 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 | |
|---|---|
IlvImageButtonTag()
Creates a new IlvImageButtonTag instance. |
|
| Method Summary | |
|---|---|
String |
getAction()
Returns the MethodBinding pointing at an action listener method to be invoked, if this
UIComponent is activated by the user, during the
Apply Request Values
or Invoke Application phase of the request processing
lifecycle, depending upon the value of the immediate property. |
String |
getActionListener()
Returns the MethodBinding pointing at an action listener method to be
invoked, if this UIComponent is activated by the user, during the
Apply Request Values or Invoke Application
phase of the request processing lifecycle, depending upon the value of the
immediate property. |
String |
getButtonGroupId()
Returns the identifier of the button group. |
String |
getComponentType()
Returns the component type for the component that is or will be bound to this tag. |
String |
getCursor()
Returns the cursor displayed when the mouse is on the button. |
String |
getDoActionOnBGDeselect()
Returns whether the button should execute its action when it's deselected by its button group. |
String |
getEnabled()
Returns the enabled state of this button. |
String |
getImage()
Returns the URL of the image representing the button. |
String |
getImmediate()
Returns a flag indicating that the default ActionListener provided by the
JavaServer Faces implementation should be executed immediately (that is,
during the Apply Request Values phase of the request processing
lifecycle), rather than waiting until the Invoke Application
phase. |
String |
getMessage()
Returns the message that can be displayed when the cursor is on the button. |
String |
getMessageBox()
Returns the binding to a message box linked to this component. |
String |
getMessageBoxId()
The identifier of the associated message box. |
String |
getOnclick()
Returns the onclick action of the button. |
String |
getRendererType()
Return the |
String |
getRolloverImage()
Returns the URL of the image representing the button when the cursor is over the button. |
String |
getSelected()
Returns the selection state of this button. |
String |
getSelectedImage()
Returns the URL of the image representing the button when this button is selected. |
String |
getStyle()
Returns the inline client style of this component. |
String |
getStyleClass()
Returns the client CSS class(es) of this component. |
String |
getTitle()
Returns the title of the button. |
String |
getToggle()
Returns the toggle state of this button. |
String |
getType()
Returns the type of the button. |
void |
setAction(String action)
Sets the MethodBinding pointing at the application action to be invoked, if
this UIComponent is activated by the user, during the
Apply Request Values or Invoke Application
phase of the request processing lifecycle, depending on the value of the
immediate property. |
void |
setActionListener(String actionListener)
Sets the MethodBinding pointing at the application action to be invoked, if
this UIComponent is activated by the user, during the
Apply Request Values or Invoke Application
phase of the request processing lifecycle, depending on the value of the
immediate property. |
void |
setButtonGroupId(String buttonGroupId)
Sets the identifier of the button group linked to this button. |
void |
setCursor(String cursor)
Sets the cursor displayed when the mouse is on the button. |
void |
setDoActionOnBGDeselect(String doActionOnBGDeselect)
Sets whether the button should execute its action when it's deselected by its button group. |
void |
setEnabled(String enabled)
Sets whether this button is a enabled or not. |
void |
setImage(String image)
Sets the URL of the image representing the button. |
void |
setImmediate(String immediate)
Sets the "immediate execution" flag for this UIComponent. |
void |
setMessage(String message)
Sets the message that can be displayed when the cursor is on the button. |
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. |
void |
setOnclick(String onclick)
Sets The onclick action of the button. |
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. |
void |
setRolloverImage(String rolloverImage)
Sets the URL of the image representing the button when the cursor is over the button. |
void |
setSelected(String selected)
Sets the selection state of this button, if this button is a toggle button. |
void |
setSelectedImage(String selectedImage)
Sets the URL of the image representing the button when this button is selected. |
void |
setStyle(String style)
Sets the inline client style of this component. |
void |
setStyleClass(String styleClass)
Sets the client CSS class(es) of this component. |
void |
setTitle(String title)
Sets the title of the button. |
void |
setToggle(String toggle)
Sets whether this button is a toggle button or not. |
void |
setType(String type)
Sets the type of the button. |
| Methods inherited from class ilog.views.faces.taglib.IlvBaseTag |
|---|
setProperty, setVBProperty, testSetProperties |
| 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 |
|---|
public IlvImageButtonTag()
IlvImageButtonTag 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 IlvBaseTagpublic 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 IlvBaseTagprotected 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 IlvBaseTagcomponent - The component whose properties are to be
overriddenpublic String getMessageBoxId()
public void setMessageBoxId(String messageBoxId)
messageBoxId - The ID of the message box to set to the view.public String getMessageBox()
public void setMessageBox(String messageBox)
messageBox - The binding to a message box.public String getButtonGroupId()
public void setButtonGroupId(String buttonGroupId)
buttonGroupId - The identifier of the button group.public String getCursor()
public void setCursor(String cursor)
cursor - The cursor to be set.public String getImage()
public void setImage(String image)
image - The image URL to be set on this button.public String getMessage()
public void setMessage(String message)
message - The message that can be displayed when the cursor is on the
button.public String getOnclick()
onclick action of the button. This JavaScript action will be
executed when the button is clicked.
onclick action.public void setOnclick(String onclick)
onclick action of the button. This JavaScript action will be
executed when the button is clicked.
onclick - The onclick action to be to set on this button.public String getRolloverImage()
public void setRolloverImage(String rolloverImage)
rolloverImage - The URL of the rollover image to be set.public String getSelected()
public void setSelected(String selected)
selected - The selection state to be set to this button.public String getSelectedImage()
public void setSelectedImage(String selectedImage)
selectedImage - The URL of the image to be set.public String getStyle()
style of this component.
style.public void setStyle(String style)
style of this component.
style - The style to set.public String getStyleClass()
styleClass.public void setStyleClass(String styleClass)
styleClass - The styleClass to set.public String getTitle()
title of the button.
title.public void setTitle(String title)
title of the button.
title - The title to set.public String getEnabled()
enabled state of this button.
enabled state of this button.public void setEnabled(String enabled)
enabled - The enabled state to be set on this button.public String getToggle()
toggle state of this button. If the button is a toggle button,
it has two selection states (selected and not selected).
toggle state of this button.public void setToggle(String toggle)
toggle - The toggle state to be set on this button.public String getType()
type of the button. Valid values are submit or
button. A submit button will submit
a new request to the server. A button set in button type
will execute the onclick action without requesting the server.
public void setType(String type)
type of the button. Valid values are submit or
button. A submit button will submit
a new request to the server. A button set in button type
will execute the onclick action without requesting the server.
type - The button type to be set.public String getAction()
MethodBinding pointing at an action listener method to be invoked, if this
UIComponent is activated by the user, during the
Apply Request Values
or Invoke Application phase of the request processing
lifecycle, depending upon the value of the immediate property.
public void setAction(String action)
MethodBinding pointing at the application action to be invoked, if
this UIComponent is activated by the user, during the
Apply Request Values or Invoke Application
phase of the request processing lifecycle, depending on the value of the
immediate property.
Any method referenced by such an expression must be public, with a return
type ofString, and accept no parameters.
action - The method binding reference or a constant outcome.public String getActionListener()
MethodBinding pointing at an action listener method to be
invoked, if this UIComponent is activated by the user, during the
Apply Request Values or Invoke Application
phase of the request processing lifecycle, depending upon the value of the
immediate property.
public void setActionListener(String actionListener)
MethodBinding pointing at the application action to be invoked, if
this UIComponent is activated by the user, during the
Apply Request Values or Invoke Application
phase of the request processing lifecycle, depending on the value of the
immediate property.
Any method referenced by such an expression must be public, with a return
type of String, and accept no parameters.
actionListener - The method binding reference.public String getImmediate()
ActionListener provided by the
JavaServer Faces implementation should be executed immediately (that is,
during the Apply Request Values phase of the request processing
lifecycle), rather than waiting until the Invoke Application
phase. The default value for this property must be false.
public void setImmediate(String immediate)
UIComponent.
public String getDoActionOnBGDeselect()
"true" if the button should execute it's javascript action when i'ts deselected,
"false" otherwise. Or a value binding expression to the boolean property.public void setDoActionOnBGDeselect(String doActionOnBGDeselect)
doActionOnBGDeselect - The string representation the boolean value or a value binding expression.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||