001 package com.google.gwt.maps.client.mvc;
002
003 import com.google.gwt.core.client.JavaScriptObject;
004 import com.google.gwt.user.client.ui.Widget;
005
006 /**
007 * top class to emulate MVCObject Jso Overlay
008 */
009 public abstract class MVCObjectWidget<T extends JavaScriptObject> extends Widget {
010
011 /**
012 * JSO instance
013 */
014 protected T impl;
015
016 /**
017 * top class for the map widgets
018 */
019 protected MVCObjectWidget() {
020 }
021
022 /**
023 * Convenience method to get the JSO/MVC object (MapWidget, StreetViewPanoRamaWidget, AdUnitWidget, ...?)
024 */
025 public T getMVCObject() {
026 return impl;
027 }
028
029 // TODO add mvc methods here?
030
031 }