com.sysord.mad.ui.swt.widget.custom
Class GoogleMapWidget
java.lang.Object
com.sysord.mad.widget.AbstractSpecificWidget
com.sysord.mad.ui.swt.widget.AbstractSWTWidget
com.sysord.mad.ui.swt.widget.custom.GoogleMapWidget
- All Implemented Interfaces:
- com.sysord.mad.widget.SpecificWidget
public class GoogleMapWidget
- extends AbstractSWTWidget
Creates a composite containing a web browser for google Map.
This widget is intented to be use with a String OutputWidget
where the value is
a String representing the latitude and longitude of the initial position on the Map and
a zoom value (or none).
example of value : "43.975275::2.992272::14"
Where 43.975275
is the latitude, 2.992272
is the longitude and
14
the zoom.
- Author:
- Fabien Vignal
Method Summary |
protected void |
checkMadWidget(com.sysord.mad.widget.Widget<?> widget)
Checks the widget type and raises an exception if the type is not valid for this
specific widget. |
protected org.eclipse.swt.widgets.Control |
createSpecificWidget(com.sysord.mad.widget.Widget<?> madWidget)
Creates the SWT widget. |
static java.lang.String |
genGoogleContent(java.lang.String latitude,
java.lang.String longitude,
java.lang.String zoom)
|
Methods inherited from class com.sysord.mad.widget.AbstractSpecificWidget |
candidatesToElementList, createLabelColumn, createSelection, createSelection, getFormatExprEvaluationService, getId, getInjector, getLogger, getMao, getValidationService, getViewBuilder, setId, toCandidateElement, toCandidateList, validate, widgetValueEqualsCandidate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoogleMapWidget
public GoogleMapWidget()
checkMadWidget
protected void checkMadWidget(com.sysord.mad.widget.Widget<?> widget)
- Description copied from class:
AbstractSWTWidget
- Checks the widget type and raises an exception if the type is not valid for this
specific widget.
- Specified by:
checkMadWidget
in class AbstractSWTWidget
createSpecificWidget
protected org.eclipse.swt.widgets.Control createSpecificWidget(com.sysord.mad.widget.Widget<?> madWidget)
- Description copied from class:
AbstractSWTWidget
- Creates the SWT widget.
This method is called after #checkMadWidget()
, the widget can be casted
with
- Specified by:
createSpecificWidget
in class AbstractSWTWidget
- Returns:
- the created SWT widget.
genGoogleContent
public static java.lang.String genGoogleContent(java.lang.String latitude,
java.lang.String longitude,
java.lang.String zoom)