Search in sources :

Example 1 with BaseInfoApp

use of org.geosdi.geoplatform.gui.client.action.toolbar.BaseInfoApp in project geoplatform-base-app by geosdi.

the class BaseAppActions method addActionToolbar.

public static void addActionToolbar() {
    ToolbarActionRegistar toolbarRegistar = BasicGinInjector.MainInjector.getInstance().getToolbarActionRegistar();
    toolbarRegistar.put("GeoPlatformInfoApp", new ToolbarActionCreator() {

        @Override
        public ToolbarApplicationAction createActionTool(GeoPlatformMap mapWidget) {
            return new BaseInfoApp();
        }
    });
    toolbarRegistar.put("changeBaseLayer", new ToolbarActionCreator() {

        @Override
        public ToolbarAction createActionTool(GeoPlatformMap mapWidget) {
            return new ChangeBaseLayerAction(mapWidget);
        }
    });
}
Also used : ToolbarApplicationAction(org.geosdi.geoplatform.gui.action.ToolbarApplicationAction) ToolbarActionCreator(org.geosdi.geoplatform.gui.action.ToolbarActionCreator) ToolbarAction(org.geosdi.geoplatform.gui.action.ToolbarAction) BaseInfoApp(org.geosdi.geoplatform.gui.client.action.toolbar.BaseInfoApp) GeoPlatformMap(org.geosdi.geoplatform.gui.impl.map.GeoPlatformMap) ChangeBaseLayerAction(org.geosdi.geoplatform.gui.client.action.toolbar.ChangeBaseLayerAction) ToolbarActionRegistar(org.geosdi.geoplatform.gui.action.ToolbarActionRegistar)

Aggregations

ToolbarAction (org.geosdi.geoplatform.gui.action.ToolbarAction)1 ToolbarActionCreator (org.geosdi.geoplatform.gui.action.ToolbarActionCreator)1 ToolbarActionRegistar (org.geosdi.geoplatform.gui.action.ToolbarActionRegistar)1 ToolbarApplicationAction (org.geosdi.geoplatform.gui.action.ToolbarApplicationAction)1 BaseInfoApp (org.geosdi.geoplatform.gui.client.action.toolbar.BaseInfoApp)1 ChangeBaseLayerAction (org.geosdi.geoplatform.gui.client.action.toolbar.ChangeBaseLayerAction)1 GeoPlatformMap (org.geosdi.geoplatform.gui.impl.map.GeoPlatformMap)1