/*
* 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.plgbackuprestore4gfr.swing.popupmenu;
import org.geoforge.guillc.table.GfrTblPopHeightRowFixAbs;
import org.geoforge.plgbackuprestore4gfr.action.ActionChildBckSpcWrk;
import org.geoforge.plgbackuprestore4gfr.swing.menuitem.GfrMimActChildBckSpcWrk;
import org.geoforge.plgbackuprestore4gfr.swing.table.GfrTblPopHeightRowFixBckRstSpcAbs;
/**
*
* @author bantchao
*
* email: bantchao_AT_gmail.com
* ... please remove "_AT_" from the above string to get the right email address
*
*/
public class GfrPmuTblBckRstSpcWrk extends GfrPmuTblBckRstSpcAbs
{
public GfrPmuTblBckRstSpcWrk(GfrTblPopHeightRowFixAbs tbl)
{
super(tbl);
super._mimChildBackup = new GfrMimActChildBckSpcWrk();
}
@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,
((GfrTblPopHeightRowFixBckRstSpcAbs) super._tbl).getIdColNumber());
ActionChildBckSpcWrk.s_getInstance().setChild(strSource);
}
}