org.wicketstuff.openlayers3.component
Class MarkerPopover

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.markup.html.WebMarkupContainer
              extended by org.apache.wicket.markup.html.panel.Panel
                  extended by org.apache.wicket.markup.html.panel.GenericPanel<org.wicketstuff.openlayers3.api.util.Color>
                      extended by org.wicketstuff.openlayers3.component.Marker
                          extended by org.wicketstuff.openlayers3.component.MarkerPopover
All Implemented Interfaces:
Serializable, Iterable<org.apache.wicket.Component>, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.IConverterLocator, org.apache.wicket.IGenericComponent<org.wicketstuff.openlayers3.api.util.Color>, org.apache.wicket.markup.html.IHeaderContributor, org.apache.wicket.request.component.IRequestableComponent, org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>, org.apache.wicket.util.io.IClusterable

public class MarkerPopover
extends Marker

Provides a marker linked to a popover. When the marker is clicked, the popover will have it's content updated and then be displayed.

See Also:
Serialized Form

Field Summary
static String DEFAULT_PLACEMENT
          Default placement for the popover.
static org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning DEFAULT_POSITIONING
          Default positioning of the marker.
 
Fields inherited from class org.apache.wicket.markup.html.panel.Panel
PANEL
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
 
Constructor Summary
MarkerPopover(String id, org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.util.Color> colorModel, PopoverPanel popoverPanel, org.apache.wicket.model.IModel<String> titleModel, org.apache.wicket.model.IModel<String> contentModel, org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.coordinate.LongLat> positionModel)
          Creates a new marker that is linked to the provided popover panel.
MarkerPopover(String id, org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.util.Color> colorModel, PopoverPanel popoverPanel, org.apache.wicket.model.IModel<String> titleModel, org.apache.wicket.model.IModel<String> contentModel, org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.coordinate.LongLat> positionModel, org.apache.wicket.model.IModel<String> placementModel)
          Creates a new marker that is linked to the provided popover panel.
 
Method Summary
 org.apache.wicket.model.IModel<String> getContentModel()
          Returns the content model used to populate the popover panel.
 org.apache.wicket.model.IModel<String> getPlacementModel()
          Returns the model used to position the popover panel relative to the marker.
 PopoverPanel getPopoverPanel()
          Returns the popover panel for this marker.
 org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.coordinate.LongLat> getPositionModel()
          Returns the model used to position the marker.
 org.apache.wicket.model.IModel<String> getTitleModel()
          Returns the title model used to populate the popover panel.
protected  void onInitialize()
           
 
Methods inherited from class org.wicketstuff.openlayers3.component.Marker
renderHead
 
Methods inherited from class org.apache.wicket.markup.html.panel.GenericPanel
getModel, getModelObject, setModel, setModelObject
 
Methods inherited from class org.apache.wicket.markup.html.panel.Panel
newMarkupSourcingStrategy
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PLACEMENT

public static final String DEFAULT_PLACEMENT
Default placement for the popover.

See Also:
Constant Field Values

DEFAULT_POSITIONING

public static final org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning DEFAULT_POSITIONING
Default positioning of the marker.

Constructor Detail

MarkerPopover

public MarkerPopover(String id,
                     org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.util.Color> colorModel,
                     PopoverPanel popoverPanel,
                     org.apache.wicket.model.IModel<String> titleModel,
                     org.apache.wicket.model.IModel<String> contentModel,
                     org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.coordinate.LongLat> positionModel)
Creates a new marker that is linked to the provided popover panel.

Parameters:
id - Wicket element ID
colorModel - Color model for the marker
popoverPanel - Popover panel for display detail when marker is clicked
titleModel - Title model for the popover panel
contentModel - Content model for the popover panel
positionModel - Location of the marker on the map

MarkerPopover

public MarkerPopover(String id,
                     org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.util.Color> colorModel,
                     PopoverPanel popoverPanel,
                     org.apache.wicket.model.IModel<String> titleModel,
                     org.apache.wicket.model.IModel<String> contentModel,
                     org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.coordinate.LongLat> positionModel,
                     org.apache.wicket.model.IModel<String> placementModel)
Creates a new marker that is linked to the provided popover panel.

Parameters:
id - Wicket element ID
colorModel - Color model for the marker
popoverPanel - Popover panel for display detail when marker is clicked
titleModel - Title model for the popover panel
contentModel - Content model for the popover panel
positionModel - Location of the marker on the map
placementModel - Position of the popover relative to the marker
Method Detail

onInitialize

protected void onInitialize()
Overrides:
onInitialize in class Marker

getPopoverPanel

public PopoverPanel getPopoverPanel()
Returns the popover panel for this marker.

Returns:
Popover panel instance

getTitleModel

public org.apache.wicket.model.IModel<String> getTitleModel()
Returns the title model used to populate the popover panel.

Returns:
Model with title

getContentModel

public org.apache.wicket.model.IModel<String> getContentModel()
Returns the content model used to populate the popover panel.

Returns:
Model with content

getPositionModel

public org.apache.wicket.model.IModel<org.wicketstuff.openlayers3.api.coordinate.LongLat> getPositionModel()
Returns the model used to position the marker.

Returns:
Model with position for the marker

getPlacementModel

public org.apache.wicket.model.IModel<String> getPlacementModel()
Returns the model used to position the popover panel relative to the marker.

Returns:
Model with the placement of the popover panel relative to the marker


Copyright © 2014–2015. All rights reserved.