|
|||||||||
| 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
com.esri.adf.web.faces.component.ContextControl
public class ContextControl
The context control establishes a working environment with a GIS server. Based on the specified value binding a
connection to a GIS server is established and maintained.
The ContextControl works with WebContext object. The ContextTag class
wraps the functionality of the ContextControl and enables the use of the context tag in a JSP page.
| 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. |
static java.lang.String |
CONTEXT_IDS_LIST
The client IDs of the ContextControls on the page are stored under this list. |
| Constructor Summary | |
|---|---|
ContextControl()
Creates a new ContextControl. |
|
| Method Summary | |
|---|---|
void |
encodeBegin(javax.faces.context.FacesContext facesContext)
Performs the initialization required when encoding of the control begins. |
java.lang.String |
getFamily()
Returns the family of this control. |
java.lang.Object |
getValue()
|
WebContext |
getWebContext()
Returns the WebContext associated with this control. |
boolean |
isInit()
Returns whether or not a control is initialized. |
boolean |
isPreserve()
Returns whether or not the previous context should be preserved when the resource is changed. |
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
Restores the state of the control. |
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
Saves the state of this control. |
void |
setInit(boolean init)
Sets the control to be initialized. |
void |
setPreserve(boolean preserve)
Sets whether or not the previous context should be preserved when the resource is changed. |
void |
setValue(java.lang.Object value)
|
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
Sets the value binding. |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, 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, queueEvent, 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
public static final java.lang.String CONTEXT_IDS_LIST
| Constructor Detail |
|---|
public ContextControl()
| Method Detail |
|---|
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.public void setValue(java.lang.Object value)
public java.lang.Object getValue()
public void encodeBegin(javax.faces.context.FacesContext facesContext)
WebContext
in session scope. The WebContext can be retrieved from session using the ID of the context control.
encodeBegin in class javax.faces.component.UIComponentBasefacesContext - the FacesContextpublic WebContext getWebContext()
WebContext associated with this control.
WebContext- the WebContextpublic boolean isPreserve()
public void setPreserve(boolean preserve)
preserve - if true, the context is preserved. The default is true.public void setInit(boolean init)
init - if true, perform the initializationpublic boolean isInit()
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentString- the COMPONENT_FAMILYpublic java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBasefacesContext - the associated FacesContext
Object- the object to be saved
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBasefacesContext - the associated FacesContextstate - the object to restore the state of the control from
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||