|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UICommand
ilog.views.faces.component.IlvImageButton
ilog.views.faces.dhtml.component.IlvDHTMLImageButton
public class IlvDHTMLImageButton
This class defines a DHTML button that is represented by images depending on
its state (normal, highlighted, selected).
The size of the button is
determined by the style set through the style and
styleClass properties.
If the button is in "button" type, the JavaScript onclick action is executed.
| Field Summary | |
|---|---|
static Boolean |
DO_ACTION_ON_BG_DESELECT_DEFAULT_VALUE
Default value of doActionOnBGDeselect property |
| Fields inherited from class ilog.views.faces.component.IlvImageButton |
|---|
ENABLED_DEFAULT_VALUE, SELECTED_DEFAULT_VALUE, TOGGLE_DEFAULT_VALUE |
| Fields inherited from class javax.faces.component.UICommand |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
IlvDHTMLImageButton()
Creates a new IlvDHTMLImageButton instance. |
|
| Method Summary | |
|---|---|
static String |
getComponentType()
Returns the type of this component. |
String |
getFamily()
|
IlvMessageBox |
getMessageBox()
Returns the message box. |
String |
getMessageBoxId()
Returns the message box identifier. |
String |
getOnclick()
Returns the onclick action of the button. |
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 |
getType()
Returns the type of the button. |
boolean |
isDoActionOnBGDeselect()
Returns whether the button should execute its action when it's deselected by its button group. |
void |
restoreState(FacesContext context,
Object stateObj)
Restores the state of this component from the state parameter. |
Object |
saveState(FacesContext context)
Returns the state of this component. |
void |
setDoActionOnBGDeselect(boolean doActionOnBGDeselect)
Sets whether the button should execute its action when it's deselected by its button group. |
void |
setMessageBox(IlvMessageBox messageBox)
The message box property. |
void |
setMessageBoxId(String messageBoxId)
The message box identifier property. |
void |
setOnclick(String onclick)
Sets the onclick action of the button. |
void |
setStyle(String style)
The inline client style of this component. |
void |
setStyleClass(String styleClass)
The client CSS class(es) of this component. |
void |
setTitle(String title)
The title of the button. |
void |
setType(String type)
Sets the type of the button. |
void |
updateModel(FacesContext context)
This method updates the referenced values with the local values of the component if these values were updated from the client. |
| Methods inherited from class ilog.views.faces.component.IlvImageButton |
|---|
clearDecodedPropertyMap, createFacesComponent, getAttributes, getButtonGroupId, getCursor, getImage, getMessage, getOrCreateButtonGroup, getRolloverImage, getSelectedImage, getValue, isDecodedProperty, isEnabled, isSelected, isToggle, processUpdates, resetDecodedProperties, setButtonGroupId, setCursor, setDecodedProperty, setEnabled, setImage, setMessage, setRolloverImage, setSelected, setSelectedImage, setToggle, setValue |
| Methods inherited from class javax.faces.component.UICommand |
|---|
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Boolean DO_ACTION_ON_BG_DESELECT_DEFAULT_VALUE
| Constructor Detail |
|---|
public IlvDHTMLImageButton()
IlvDHTMLImageButton instance.
| Method Detail |
|---|
public String getFamily()
getFamily in class UICommandpublic static String getComponentType()
public String getStyle()
public void setStyle(String style)
style - The style to set.public String getStyleClass()
styleClass.public void setStyleClass(String styleClass)
styleClass - The styleClass to set.public String getTitle()
public void setTitle(String title)
title - The title to set.public String getType()
"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 IlvMessageBox getMessageBox()
public void setMessageBox(IlvMessageBox messageBox)
messageBox - The message box to set.public String getMessageBoxId()
public void setMessageBoxId(String messageBoxId)
messageBoxId - The message box ID to set.public void setType(String type)
"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 getOnclick()
public void setOnclick(String onclick)
onclick - The onclick action to be to set on this button.public boolean isDoActionOnBGDeselect()
public void setDoActionOnBGDeselect(boolean doActionOnBGDeselect)
doActionOnBGDeselect - The doActionOnBGDeselect to set.public void updateModel(FacesContext context)
updateModel in class IlvImageButtoncontext - The current faces context.public Object saveState(FacesContext context)
state of this component.
saveState in interface IlvFacesComponentsaveState in interface StateHoldersaveState in class IlvImageButtoncontext - The current faces context.
state of this component.
public void restoreState(FacesContext context,
Object stateObj)
state parameter.
restoreState in interface IlvFacesComponentrestoreState in interface StateHolderrestoreState in class IlvImageButtoncontext - The current faces context.stateObj - The previously saved state of this component.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||