/*
* Copyright (C) 2011-2014 GeoForge Project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.geoforge.guillc.popupmenu;
import org.geoforge.guillc.action.ActionChildCloneProject;
import org.geoforge.guillc.action.ActionChildDeleteProject;
import org.geoforge.guillc.action.ActionChildExportProject;
import org.geoforge.guillc.action.ActionChildRenameProject;
import org.geoforge.guillc.menuitem.GfrMimActCopySpaceProjectApp;
import org.geoforge.guillc.menuitem.GfrMimActDeleteSpaceProjectApp;
import org.geoforge.guillc.menuitem.GfrMimActExportSpaceProjectApp;
import org.geoforge.guillc.menuitem.GfrMimActRenameSpaceProjectApp;
import org.geoforge.guillc.table.GfrTblAbs;
import org.geoforge.guillc.table.GfrTblPopHeightRowFixManChildrenSpcAppAbs;
/**
*
* @author bantchao
*
* email: bantchao_AT_gmail.com
* ... please remove "_AT_" from the above string to get the right email address
*
*/
public class GfrPmuTblDelManChildrenSpcPrj extends GfrPmuTblDelManChildrenSpcAbs
{
public GfrPmuTblDelManChildrenSpcPrj(GfrTblAbs tbl)
{
super(tbl);
super._mimChildCopy = new GfrMimActCopySpaceProjectApp();
super._mimChildRename = new GfrMimActRenameSpaceProjectApp();
super._mimChildDelete = new GfrMimActDeleteSpaceProjectApp();
super._mimChildExport = new GfrMimActExportSpaceProjectApp();
}
@Override
public void setSelectedRow(int intRow)
{
super.setSelectedRow(intRow);
if (super._tbl == null)
return;
if (this._tbl.getModel() == null)
return;
String strSource = (String) super._tbl.getModel().getValueAt(super._intRow,
((GfrTblPopHeightRowFixManChildrenSpcAppAbs) super._tbl).getIdColNumber());
ActionChildCloneProject.s_getInstance().setChild(strSource);
ActionChildRenameProject.s_getInstance().setChild(strSource);
ActionChildDeleteProject.s_getInstance().setChild(strSource);
// ---
ActionChildExportProject.s_getInstance().setChild(strSource);
}
}