org.wicketstuff.openlayers3.api.overlay
Class Popover

java.lang.Object
  extended by org.wicketstuff.openlayers3.api.overlay.Overlay
      extended by org.wicketstuff.openlayers3.api.overlay.Popover
All Implemented Interfaces:
Serializable, org.wicketstuff.openlayers3.api.IJavascriptObject

public class Popover
extends org.wicketstuff.openlayers3.api.overlay.Overlay

Provides an object that models an overlay containing a popover.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.wicketstuff.openlayers3.api.overlay.Overlay
org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning
 
Field Summary
 
Fields inherited from class org.wicketstuff.openlayers3.api.overlay.Overlay
DEFAULT_POSITIONING, DEFAULT_STOP_EVENT, element, position, positioning, stopEvent
 
Constructor Summary
Popover(org.apache.wicket.Component component, org.apache.wicket.model.IModel<String> titleModel, org.apache.wicket.model.IModel<String> model)
          Creates a new instance.
 
Method Summary
 Popover element(org.apache.wicket.Component element)
          Sets the element tied to this popover.
 boolean getHtml()
          Returns the value of the HTML flag for this popover.
 String getJsId()
           
 org.apache.wicket.model.IModel<String> getModel()
          Returns the model for this popover.
 String getPlacement()
          Returns the placement of this popover.
 Popover hide(org.apache.wicket.ajax.AjaxRequestTarget target)
          Hides this popover.
 Popover html(boolean html)
          Sets the value of the HTML flag for this popover.
 Popover model(org.apache.wicket.model.IModel<String> model)
          Sets the model for this popover.
 Popover placement(String placement)
          Sets the placement of this popover.
 Popover position(org.wicketstuff.openlayers3.api.coordinate.LongLat position)
          Sets the position of the overlay.
 Popover positioning(org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning positioning)
          Sets the positioning of this overlay.
 void setHtml(boolean html)
          Sets the value of the HTML flag for this popover.
 void setModel(org.apache.wicket.model.IModel<String> model)
          Sets the model for this popover.
 void setPlacement(String placement)
          Sets the placement of this popover.
 Popover show(org.apache.wicket.ajax.AjaxRequestTarget target)
          Displays the popover.
 Popover stopEvent(Boolean stopEvent)
          Sets the stopEvent value.
 
Methods inherited from class org.wicketstuff.openlayers3.api.overlay.Overlay
escapeQuoteJs, getElement, getJsType, getPosition, getPositioning, getStopEvent, renderAttributesJs, renderJs, setElement, setPosition, setPositioning, setStopEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Popover

public Popover(org.apache.wicket.Component component,
               org.apache.wicket.model.IModel<String> titleModel,
               org.apache.wicket.model.IModel<String> model)
Creates a new instance.

Parameters:
component - Target component for the overlay
Method Detail

getPlacement

public String getPlacement()
Returns the placement of this popover.

Returns:
String with placement value

setPlacement

public void setPlacement(String placement)
Sets the placement of this popover.

Parameters:
placement - New value

placement

public Popover placement(String placement)
Sets the placement of this popover.

Parameters:
placement - New value
Returns:
This instance

getHtml

public boolean getHtml()
Returns the value of the HTML flag for this popover.

Returns:
Value of the HTML flag

setHtml

public void setHtml(boolean html)
Sets the value of the HTML flag for this popover.

Parameters:
html - New value

html

public Popover html(boolean html)
Sets the value of the HTML flag for this popover.

Parameters:
html - New value
Returns:
This instance

getModel

public org.apache.wicket.model.IModel<String> getModel()
Returns the model for this popover.

Returns:
Backing model for the popover

setModel

public void setModel(org.apache.wicket.model.IModel<String> model)
Sets the model for this popover.

Parameters:
model - New value

model

public Popover model(org.apache.wicket.model.IModel<String> model)
Sets the model for this popover.

Parameters:
model - New value
Returns:
This instance

position

public Popover position(org.wicketstuff.openlayers3.api.coordinate.LongLat position)
Sets the position of the overlay.

Overrides:
position in class org.wicketstuff.openlayers3.api.overlay.Overlay
Parameters:
position - Coordinate for the overlay's position
Returns:
This instance

positioning

public Popover positioning(org.wicketstuff.openlayers3.api.overlay.Overlay.Positioning positioning)
Sets the positioning of this overlay.

Overrides:
positioning in class org.wicketstuff.openlayers3.api.overlay.Overlay
Parameters:
positioning - New value
Returns:
This instance

element

public Popover element(org.apache.wicket.Component element)
Sets the element tied to this popover.

Overrides:
element in class org.wicketstuff.openlayers3.api.overlay.Overlay
Parameters:
element - Wicket component
Returns:
This instance

stopEvent

public Popover stopEvent(Boolean stopEvent)
Sets the stopEvent value.

Overrides:
stopEvent in class org.wicketstuff.openlayers3.api.overlay.Overlay
Parameters:
stopEvent - New value
Returns:
this instance

show

public Popover show(org.apache.wicket.ajax.AjaxRequestTarget target)
Displays the popover.

Parameters:
target - Ajax request target
Returns:
This instance

hide

public Popover hide(org.apache.wicket.ajax.AjaxRequestTarget target)
Hides this popover.

Parameters:
target - Ajax request target
Returns:
This instance

getJsId

public String getJsId()
Specified by:
getJsId in interface org.wicketstuff.openlayers3.api.IJavascriptObject
Overrides:
getJsId in class org.wicketstuff.openlayers3.api.overlay.Overlay


Copyright © 2014–2015. All rights reserved.