Package org.geoforge.guillc.tabbedpane

Source Code of org.geoforge.guillc.tabbedpane.GfrTabCntPrefsAppPrsRun

/*
*  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 2
*  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, write to the Free Software
*  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
package org.geoforge.guillc.tabbedpane;

import java.awt.event.ActionListener;
import javax.swing.Icon;
import org.geoforge.guillc.panel.GfrPnlTabsAbs;
import org.geoforge.guillc.panel.GfrPnlTabsOptionsPrsRun;
import org.geoforge.guillc.panel.GfrPnlTabsOptionsPrsSel;

/**
*
* @author bantchao
*/
public class GfrTabCntPrefsAppPrsRun extends GfrTabCntPrefsAppPrsAbs
{
   private GfrPnlTabsAbs _pnlPerspectiveThis_ = null;
  
    public GfrTabCntPrefsAppPrsRun(ActionListener alrParent)
            throws Exception
    {
        super(alrParent);
       
        this._pnlPerspectiveThis_ = new GfrPnlTabsOptionsPrsRun(alrParent);
    }
   
    @Override
    public void doTaskTabDialog() throws Exception
    {
        super.doTaskTabDialog();
        this._pnlPerspectiveThis_.doTaskTabDialog();
    }
   
    @Override
    public boolean hasChangedValue()
    {
       if (super.hasChangedValue())
          return true;
      
       if (this._pnlPerspectiveThis_.hasChangedValue())
          return true;
      
       return false;
    }
   
    @Override
    public boolean init()
    {
        if (! super.init())
            return false;

        if (! this._pnlPerspectiveThis_.init())
            return false;
       
        super.addTab(GfrPnlTabsOptionsPrsSel.STR_TITLE, (Icon) null, this._pnlPerspectiveThis_);

        return true;
    }

    @Override
    public void destroy()
    {
        super.destroy();

        if (this._pnlPerspectiveThis_ != null)
        {
            this._pnlPerspectiveThis_.destroy();
            this._pnlPerspectiveThis_ = null;
        }
       
    }
}
TOP

Related Classes of org.geoforge.guillc.tabbedpane.GfrTabCntPrefsAppPrsRun

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.