Class GMap
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
com.webmethods.caf.faces.component.gmap.GMap
- All Implemented Interfaces:
IDynamicComponent
,EventListener
,EditableValueHolder
,PartialStateHolder
,StateHolder
,TransientStateHolder
,ValueHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
Google map control.
The data model for this input control is a
GMapState
object.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
protected static final Integer
protected static final Double
Fields inherited from class javax.faces.component.UIInput
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
double
double
Convenience cast of map value toGMapState
.getType()
getWidth()
int
getZoom()
protected void
handleUpdateModelException
(FacesContext context, Exception e) Handle an exception inupdateModel(FacesContext)
.void
Perform the initial programmatic manipulation of the component tree.void
void
setInitialAddress
(String initialAddress) void
setInitialCountry
(String initialCountry) void
void
setLatitude
(double latitude) void
setLongitude
(double longitude) void
void
void
void
setZoom
(int zoom) void
updateModel
(FacesContext context) Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValueChangeListener, validate, validateValue
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
-
Field Details
-
TYPE
- See Also:
-
MAP_TYPE_NORMAL
- See Also:
-
MAP_TYPE_SATELLITE
- See Also:
-
MAP_TYPE_HYBRID
- See Also:
-
MAP_TYPES
-
ZERO
-
ZERO_POINT_ZERO
-
-
Constructor Details
-
GMap
public GMap()
-
-
Method Details
-
setValue
- Specified by:
setValue
in interfaceValueHolder
- Overrides:
setValue
in classUIInput
-
updateModel
- Overrides:
updateModel
in classUIInput
-
getMapState
Convenience cast of map value toGMapState
. Returns null if map value not set. -
handleUpdateModelException
Handle an exception inupdateModel(FacesContext)
. -
getHeight
-
setHeight
-
getWidth
-
setWidth
-
getLatitude
public double getLatitude() -
setLatitude
public void setLatitude(double latitude) -
getLongitude
public double getLongitude() -
setLongitude
public void setLongitude(double longitude) -
getInitialAddress
-
setInitialAddress
-
getInitialCountry
-
setInitialCountry
-
getType
-
setType
-
getZoom
public int getZoom() -
setZoom
public void setZoom(int zoom) -
getKey
-
setKey
-
populateInitialComponents
public void populateInitialComponents()Description copied from interface:IDynamicComponent
Perform the initial programmatic manipulation of the component tree.- Specified by:
populateInitialComponents
in interfaceIDynamicComponent
-