Package org.geoforge.guillc.toolbar

Source Code of org.geoforge.guillc.toolbar.GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs

/*
* 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.toolbar;

import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.util.logging.Logger;
import org.geoforge.guillc.button.GfrBcnJhpOflOthXSmall;
import org.geoforge.guillc.button.GfrBcnPrintAbs;
import org.geoforge.guillc.button.GfrBcnPrintPartPanel;
import org.geoforge.io.awt.image.GfrFactoryIconAppGfr;
import org.geoforge.java.util.logging.filehandler.FileHandlerLogger;

/**
*
* @author robert
*/
abstract public class GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs extends GfrTbrHlpWinViewerRunIfrSubCtrsAbs
{
   // ----
    // begin: instantiate logger for this class
    final static private Logger _LOGGER_ = Logger.getLogger(GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs.class.getName());

    static
    {
        GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs._LOGGER_.addHandler(FileHandlerLogger.s_getInstance());
    }

    // end: instantiate logger for this class
    // ----
  
   private GfrBcnPrintAbs _btnPrint_ = null;
  
  
   protected GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs(
           MouseListener mlrEffectsBorder,
           ActionListener alrParentComponent,
           String strIdHelp
           ) throws Exception
   {
      super();
     
      super._btnHelpPartThisFrame = new GfrBcnJhpOflOthXSmall(mlrEffectsBorder, strIdHelp);  
     
     
      this._btnPrint_ = new GfrBcnPrintPartPanel(
              mlrEffectsBorder,
              alrParentComponent,
              GfrFactoryIconAppGfr.INT_SIZE_XSMALL);
   }
  
   @Override
    public boolean init()
    {
        if (! super.init())
            return false;

        if (! this._btnPrint_.init())
         {
            GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs._LOGGER_.severe("! this._btnPrint_.init()");
            return false;
         }

        super.add(this._btnPrint_, 0);
        return true;
    }
   
    @Override
    public void destroy()
    {
        super.destroy();
       
        if (this._btnPrint_ != null)
        {
            this._btnPrint_.destroy();
            this._btnPrint_ = null;
        }
    }
}
TOP

Related Classes of org.geoforge.guillc.toolbar.GfrTbrHlpWinViewerRunIfrSubCtrsPrnAbs

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.