/*
* 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.guillcogcecl.panel;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import org.geoforge.guillc.panel.GfrPnlStatusBarSec;
import org.geoforge.guillc.panel.GfrPnlPrintableSctAwtCtrTreTogChkPrjSecCatAbs;
import org.geoforge.guillcogcecl.toolbar.GfrTbrHlpSubCtrTreCatChkEclSecWwdEarth;
import org.geoforge.mdldatecl.util.GfrUtlMdlDatCatTlosEcl;
/**
*
* @author bantchao
*/
abstract public class GfrPnlPrintableSctAwtCtrTreTogChkPrjSecCatEclWwdEarthAbs extends GfrPnlPrintableSctAwtCtrTreTogChkPrjSecCatAbs
{
protected GfrPnlPrintableSctAwtCtrTreTogChkPrjSecCatEclWwdEarthAbs(
ActionListener alrParentPanelMvc,
MouseListener mlrParentCad,
GfrPnlStatusBarSec pnlStatusBar,
String strIdViewer) throws Exception
{
super(pnlStatusBar);
super._tbr = new GfrTbrHlpSubCtrTreCatChkEclSecWwdEarth(
(ActionListener) this,
(MouseListener) super.getBorder());
}
@Override
public void openSpaceAny(ActionListener alrController) throws Exception
{
super.openSpaceAny(alrController);
GfrUtlMdlDatCatTlosEcl.getInstance().addObserver(this);
}
@Override
public void closeSpace() throws Exception
{
super.closeSpace();
GfrUtlMdlDatCatTlosEcl.getInstance().deleteObserver(this);
}
@Override
public void destroy()
{
super.destroy();
GfrUtlMdlDatCatTlosEcl.getInstance().deleteObserver(this);
}
}