|
|||||||||
| PREV CLASS 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
com.esri.adf.web.faces.component.ButtonControl
public class ButtonControl
A button control executes the server side action and/or action listener method for the control its associated with.
| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT_FAMILY
The standard component family for this component. |
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component. |
| Constructor Summary | |
|---|---|
ButtonControl()
Instantiates an object of ButtonControl. |
|
| Method Summary | |
|---|---|
void |
execute(javax.faces.context.FacesContext context)
Executes the server action associated with this button. |
void |
execute(MapEvent event)
Executes the server action associated with this button. |
java.lang.String |
getClientAction()
Gets the client action of the button, should be a javascript method. |
java.lang.String |
getCollectionId()
Gets the collectionId of the ButtonControl. |
java.lang.String |
getDefaultImage()
Returns the default image that is set for this control. |
java.lang.String |
getFamily()
Returns the family of this control. |
java.lang.String |
getHoverImage()
Returns the hover image that is set for this control. |
java.lang.String |
getMapId()
Returns the map control id associated with the control. |
java.lang.String |
getOnclick()
Gets the onclick event of the button. |
java.lang.String |
getSelectedImage()
Gets the selected image that is set for this control. |
java.lang.String |
getServerAction()
Gets the server action of the button, should be a backing bean method. |
java.lang.String |
getStyle()
Gets the CSS style of the button. |
java.lang.String |
getStyleClass()
Gets the CSS style class of the ButtonControl. |
java.lang.String |
getToolTip()
Gets the toolTip of the button. |
java.lang.String |
getType()
Gets the type of the button. |
java.lang.String |
getValue()
Gets the text value of the button. |
boolean |
isDisabled()
Returns true if the button is disabled. |
void |
registerMapToolItem(javax.faces.context.FacesContext facesContext)
Registers the button as a MapToolItem. |
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setClientAction(java.lang.String clientAction)
Sets the client action of the button, should be a javascript method. |
void |
setCollectionId(java.lang.String collectionId)
Sets the collectionId of the ButtonControl. |
void |
setDefaultImage(java.lang.String defaultImage)
Sets the default image that is set for this control. |
void |
setDisabled(boolean disabled)
Sets to true if the button is disabled. |
void |
setHoverImage(java.lang.String hoverImage)
Sets the hover image that is set for this control. |
void |
setMapId(java.lang.String mapId)
Sets the map control id associated with the control. |
void |
setOnclick(java.lang.String onclick)
Sets the onclick event of the button. |
void |
setSelectedImage(java.lang.String selectedImage)
Sets the selected image that is set for this control. |
void |
setServerAction(java.lang.String serverAction)
Sets the server action of the button, should be a backing bean method. |
void |
setStyle(java.lang.String style)
Sets the CSS style of the button. |
void |
setStyleClass(java.lang.String styleClass)
Sets the CSS style class of the ButtonControl. |
void |
setToolTip(java.lang.String toolTip)
Sets the toolTip of the button. |
void |
setType(java.lang.String type)
Sets the type of the button. |
void |
setValue(java.lang.String value)
Sets the text value of the button. |
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
Sets the value binding. |
| Methods inherited from class javax.faces.component.UICommand |
|---|
addActionListener, broadcast, getAction, getActionListener, getActionListeners, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMPONENT_FAMILY
public static final java.lang.String COMPONENT_TYPE
| Constructor Detail |
|---|
public ButtonControl()
| Method Detail |
|---|
public java.lang.String getFamily()
getFamily in class javax.faces.component.UICommandString- the COMPONENT_FAMILYpublic java.lang.String getMapId()
public void setMapId(java.lang.String mapId)
mapId - The mapId to set.public java.lang.String getDefaultImage()
public void setDefaultImage(java.lang.String defaultImage)
defaultImage - The defaultImage to set.public java.lang.String getStyleClass()
public void setStyleClass(java.lang.String styleClass)
styleClass - The styleClass to set.public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled - The disabled to set.public java.lang.String getHoverImage()
public void setHoverImage(java.lang.String hoverImage)
hoverImage - The hoverImage to set.public java.lang.String getSelectedImage()
public void setSelectedImage(java.lang.String selectedImage)
selectedImage - The selectedImage to set.public java.lang.String getClientAction()
public void setClientAction(java.lang.String clientAction)
clientAction - The clientAction to set.public java.lang.String getServerAction()
public void setServerAction(java.lang.String serverAction)
serverAction - The serverAction to set.public java.lang.String getValue()
getValue in class javax.faces.component.UICommandpublic void setValue(java.lang.String value)
value - The value to set.public java.lang.String getType()
public void setType(java.lang.String type)
type - The type to set.public java.lang.String getStyle()
public void setStyle(java.lang.String style)
style - The style to set.public java.lang.String getToolTip()
public void setToolTip(java.lang.String toolTip)
toolTip - The toolTip to set.public java.lang.String getOnclick()
public void setOnclick(java.lang.String onclick)
onclick - The onclick to set.public java.lang.String getCollectionId()
public void setCollectionId(java.lang.String collectionId)
collectionId - The collectionId to set.
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UICommandpublic java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UICommand
public void execute(MapEvent event)
throws java.lang.Exception
execute in interface MapToolActionevent - the MapEvent to execute this tool
java.lang.Exception - if an error happens while executing the tool. The
MapControl aborts processing the current event when this
happens.public void registerMapToolItem(javax.faces.context.FacesContext facesContext)
public void execute(javax.faces.context.FacesContext context)
public void setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
setValueBinding in class javax.faces.component.UIComponentBasename - the name of the attribute or property for which to set a ValueBindingbinding - the ValueBinding to set. If null, remove any currently set ValueBinding.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||