Search in sources :

Example 1 with TreeMenuActionCreator

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);
        }
    });
}
Also used : MenuAction(org.geosdi.geoplatform.gui.action.menu.MenuAction) TreeMenuActionCreator(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator) TreePanel(com.extjs.gxt.ui.client.widget.treepanel.TreePanel) GPTreePanel(org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel)

Example 2 with TreeMenuActionCreator

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);
        }
    });
}
Also used : MenuAction(org.geosdi.geoplatform.gui.action.menu.MenuAction) TreeMenuActionCreator(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator) TreePanel(com.extjs.gxt.ui.client.widget.treepanel.TreePanel) GPTreePanel(org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel)

Example 3 with TreeMenuActionCreator

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);
        }
    });
}
Also used : MenuAction(org.geosdi.geoplatform.gui.action.menu.MenuAction) AddModifyCQLFilterAction(org.geosdi.geoplatform.gui.client.action.menu.cqlfilter.AddModifyCQLFilterAction) GPTreePanel(org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel) TreeMenuActionRegistar(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionRegistar) RemoveCQLFilterAction(org.geosdi.geoplatform.gui.client.action.menu.cqlfilter.RemoveCQLFilterAction) TreeMenuActionCreator(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator) GPTreePanel(org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel) TreePanel(com.extjs.gxt.ui.client.widget.treepanel.TreePanel)

Example 4 with TreeMenuActionCreator

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);
        }
    });
}
Also used : GPTreePanel(org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel) TreeMenuActionCreator(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator) GetLegendGraphicsBox(org.geosdi.geoplatform.gui.client.action.menu.legend.GetLegendGraphicsBox) AddModifyTimeFilterAction(org.geosdi.geoplatform.gui.client.action.menu.time.AddModifyTimeFilterAction) MenuAction(org.geosdi.geoplatform.gui.action.menu.MenuAction) TreePanel(com.extjs.gxt.ui.client.widget.treepanel.TreePanel) GPTreePanel(org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel) RemoveTimeFilterAction(org.geosdi.geoplatform.gui.client.action.menu.time.RemoveTimeFilterAction)

Example 5 with TreeMenuActionCreator

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);
        }
    });
}
Also used : MenuAction(org.geosdi.geoplatform.gui.action.menu.MenuAction) TreeMenuActionRegistar(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionRegistar) TreeMenuActionCreator(org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator) EditWFSAction(org.geosdi.geoplatform.gui.client.action.menu.edit.EditWFSAction) TreePanel(com.extjs.gxt.ui.client.widget.treepanel.TreePanel) ShowFeaturesWFSAction(org.geosdi.geoplatform.gui.client.action.menu.showfeatures.ShowFeaturesWFSAction)

Aggregations

TreePanel (com.extjs.gxt.ui.client.widget.treepanel.TreePanel)5 MenuAction (org.geosdi.geoplatform.gui.action.menu.MenuAction)5 TreeMenuActionCreator (org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator)5 GPTreePanel (org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel)4 TreeMenuActionRegistar (org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionRegistar)2 AddModifyCQLFilterAction (org.geosdi.geoplatform.gui.client.action.menu.cqlfilter.AddModifyCQLFilterAction)1 RemoveCQLFilterAction (org.geosdi.geoplatform.gui.client.action.menu.cqlfilter.RemoveCQLFilterAction)1 EditWFSAction (org.geosdi.geoplatform.gui.client.action.menu.edit.EditWFSAction)1 GetLegendGraphicsBox (org.geosdi.geoplatform.gui.client.action.menu.legend.GetLegendGraphicsBox)1 ShowFeaturesWFSAction (org.geosdi.geoplatform.gui.client.action.menu.showfeatures.ShowFeaturesWFSAction)1 AddModifyTimeFilterAction (org.geosdi.geoplatform.gui.client.action.menu.time.AddModifyTimeFilterAction)1 RemoveTimeFilterAction (org.geosdi.geoplatform.gui.client.action.menu.time.RemoveTimeFilterAction)1