org.wicketstuff.openlayers3.component
Class PopoverPanel

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.wicketstuff.openlayers3.component.PopoverPanel
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.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 PopoverPanel
extends org.apache.wicket.markup.html.panel.Panel

Provides Wicket panel attached to a map popover overlay.

See Also:
Serialized Form

Field Summary
 
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
PopoverPanel(String id)
          Creates a new instance.
PopoverPanel(String id, org.apache.wicket.model.IModel<String> titleModel)
          Creates a new instance.
PopoverPanel(String id, org.apache.wicket.model.IModel<String> titleModel, org.apache.wicket.model.IModel<String> contentModel)
          Creates a new instance.
 
Method Summary
 de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior getBehavior()
          Returns the behavior that implements the Bootstrap popover.
 org.apache.wicket.model.IModel<String> getContentModel()
          Returns the model used to populate the content of the popover.
 Popover getPopover()
          Returns the map overlay for the popover.
 org.apache.wicket.model.IModel<String> getTitleModel()
          Returns the model used to populate the title of the popover.
 void hide(org.apache.wicket.ajax.AjaxRequestTarget target)
          Hides the popover from view.
protected  void onInitialize()
           
 void setPlacement(String placement)
          Sets the placement of the popover relative to the position.
 void setPosition(org.wicketstuff.openlayers3.api.coordinate.LongLat position)
          Sets the position of the popover.
 void setPositioning(org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning positioning)
          Sets the placement of the panel relative to the position.
 void show(org.apache.wicket.ajax.AjaxRequestTarget target)
          Shows the popover.
 
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, 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
 

Constructor Detail

PopoverPanel

public PopoverPanel(String id)
Creates a new instance.

Parameters:
id - Wicket element ID for the panel

PopoverPanel

public PopoverPanel(String id,
                    org.apache.wicket.model.IModel<String> titleModel)
Creates a new instance.

Parameters:
id - Wicket element ID for the panel
titleModel - Model used to populate the title of the popover

PopoverPanel

public PopoverPanel(String id,
                    org.apache.wicket.model.IModel<String> titleModel,
                    org.apache.wicket.model.IModel<String> contentModel)
Creates a new instance.

Parameters:
id - Wicket element ID for the panel
titleModel - Model used to populate the title of the popover
contentModel - Model used to populate the content of the popover
Method Detail

onInitialize

protected void onInitialize()
Overrides:
onInitialize in class org.apache.wicket.Component

getTitleModel

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

Returns:
Model with the title

getContentModel

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

Returns:
Model with popover content

getBehavior

public de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior getBehavior()
Returns the behavior that implements the Bootstrap popover.

Returns:
Behavior for the Bootstrap popover

getPopover

public Popover getPopover()
Returns the map overlay for the popover.

Returns:
Map overlay for the popover

hide

public void hide(org.apache.wicket.ajax.AjaxRequestTarget target)
Hides the popover from view.

Parameters:
target - Ajax request target

show

public void show(org.apache.wicket.ajax.AjaxRequestTarget target)
Shows the popover.

Parameters:
target - Ajax request target

setPosition

public void setPosition(org.wicketstuff.openlayers3.api.coordinate.LongLat position)
Sets the position of the popover.

Parameters:
position - LongLat with the position

setPositioning

public void setPositioning(org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning positioning)
Sets the placement of the panel relative to the position.

Parameters:
positioning - Position placement of the panel relative to the position.

setPlacement

public void setPlacement(String placement)
Sets the placement of the popover relative to the position.

Parameters:
placement - Placement of the popover relative to the position


Copyright © 2014–2015. All rights reserved.