Search in sources :

Example 1 with TreeMenuActionRegistar

use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionRegistar 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 2 with TreeMenuActionRegistar

use of org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionRegistar 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)2 MenuAction (org.geosdi.geoplatform.gui.action.menu.MenuAction)2 TreeMenuActionCreator (org.geosdi.geoplatform.gui.action.tree.menu.TreeMenuActionCreator)2 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 ShowFeaturesWFSAction (org.geosdi.geoplatform.gui.client.action.menu.showfeatures.ShowFeaturesWFSAction)1 GPTreePanel (org.geosdi.geoplatform.gui.client.widget.tree.GPTreePanel)1