use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator in project geo-platform by geosdi.
the class TreeMenuActionFactory method buildCompositeMenuActions.
private static void buildCompositeMenuActions() {
registar.put("PASTE_MENU", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return LayerModuleInjector.MainInjector.getInstance().getPasteLayerAction();
}
});
registar.put("RENAME_FOLDER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ShowFolderRenameAction(treePanel);
}
});
registar.put("CREATE_FOLDER_VIEWPORT", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new CreateFolderViewportAction(treePanel);
}
});
}
use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator in project geo-platform by geosdi.
the class TreeMenuActionFactory method buildRootMenuActions.
private static void buildRootMenuActions() {
registar.put("ADD_FOLDER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new AddFolderMenuAction(treePanel);
}
});
registar.put("SHARE_PROJECT", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return LayerModuleInjector.MainInjector.getInstance().getShareProjectMenuAction();
}
});
registar.put("PROJECT_PROPERTIES", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ShowProjectPropertiesMenuAction(treePanel);
}
});
registar.put("CLONE_PROJECT", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new CloneProjectMenuAction(treePanel);
}
});
}
use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator in project geo-platform by geosdi.
the class LayerFiltersWidgetUI method onModuleLoad.
/**
* (non-Javadoc)
*
* @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
*/
@Override
public void onModuleLoad() {
TreeMenuActionRegistar registar = TreeMenuGinInjector.MainInjector.getInstance().getTreeMenuActionRegistar();
registar.put("ADD_MODIFY_CQL_FILTER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new AddModifyCQLFilterAction((GPTreePanel<GPBeanTreeModel>) treePanel);
}
});
registar.put("REMOVE_CQL_FILTER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new RemoveCQLFilterAction((GPTreePanel<GPBeanTreeModel>) treePanel);
}
});
}
use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator in project geo-platform by geosdi.
the class TreeMenuActionFactory method buildLeafMenuActions.
private static void buildLeafMenuActions() {
registar.put("ZOOM_TO_EXTEND", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ZoomToLayerExtentAction(treePanel);
}
});
registar.put("GET_LEGEND", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new GetLegendGraphicsBox(treePanel);
}
});
registar.put("EXPORT_TO_KML", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToKML(treePanel);
}
});
registar.put("EXPORT_TO_PDF", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToPDF(treePanel);
}
});
registar.put("EXPORT_TO_TIFF", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToTIFF(treePanel);
}
});
registar.put("EXPORT_TO_SHP_ZIP", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToShpZip(treePanel);
}
});
registar.put("EXPORT_GML_2", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToGML2(treePanel);
}
});
registar.put("EXPORT_GML_3_1", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToGML3_1(treePanel);
}
});
registar.put("EXPORT_GML_3_2", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToGML3_2(treePanel);
}
});
registar.put("EXPORT_TO_CSV", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToCSV(treePanel);
}
});
registar.put("EXPORT_TO_GEOJSON", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToGeoJSON(treePanel);
}
});
registar.put("EXPORT_TO_RSS", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ExportoToGeoRSS(treePanel);
}
});
registar.put("ADD_MODIFY_TIME_FILTER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new AddModifyTimeFilterAction((GPTreePanel<GPBeanTreeModel>) treePanel);
}
});
registar.put("REMOVE_TIME_FILTER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new RemoveTimeFilterAction((GPTreePanel<GPBeanTreeModel>) treePanel);
}
});
registar.put("CREATE_LAYER_VIEWPORT", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new CreateLayerViewportAction(treePanel);
}
});
registar.put("COPY_LAYER", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return LayerModuleInjector.MainInjector.getInstance().getCopyLayerAction();
}
});
registar.put("LAYER_PROPERTIES", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ShowLayerPropertiesAction(treePanel);
}
});
}
use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator in project geo-platform by geosdi.
the class WFSWidgetUI method onModuleLoad.
/**
* (non-Javadoc)
*
* @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
*/
@Override
public void onModuleLoad() {
TreeMenuActionRegistar registar = TreeMenuGinInjector.MainInjector.getInstance().getTreeMenuActionRegistar();
registar.put("EDIT_FEATURE", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new EditWFSAction(treePanel);
}
});
registar.put("SHOW_FEATURES", new TreeMenuActionCreator() {
@Override
public MenuAction createAction(TreePanel treePanel) {
return new ShowFeaturesWFSAction(treePanel);
}
});
}
Aggregations