/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.guillcogc.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.guillc.toolbar.GfrTbrHlpWinViewerRunIfrSubCtrsAbs;
import org.geoforge.io.awt.image.GfrFactoryIconAppGfr;
import org.geoforge.java.util.logging.filehandler.FileHandlerLogger;
/**
*
* @author robert
*/
public class GfrTbrHlpWinViewerRunIfrSubCtrsImgLgdLyrWms extends GfrTbrHlpWinViewerRunIfrSubCtrsAbs
{
// ----
// begin: instantiate logger for this class
final static private Logger _LOGGER_ = Logger.getLogger(GfrTbrHlpWinViewerRunIfrSubCtrsImgLgdLyrWms.class.getName());
static
{
GfrTbrHlpWinViewerRunIfrSubCtrsImgLgdLyrWms._LOGGER_.addHandler(FileHandlerLogger.s_getInstance());
}
// end: instantiate logger for this class
// ----
private GfrBcnPrintAbs _btnPrint_ = null;
public GfrTbrHlpWinViewerRunIfrSubCtrsImgLgdLyrWms(
ActionListener alrParentComponent,
MouseListener mlrEffectsBorder) throws Exception
{
super();
super._btnHelpPartThisFrame = new GfrBcnJhpOflOthXSmall(mlrEffectsBorder, "_ogc_win_view_legends_ctrs_");
this._btnPrint_ = new GfrBcnPrintPartPanel(
mlrEffectsBorder,
alrParentComponent,
GfrFactoryIconAppGfr.INT_SIZE_XSMALL);
}
@Override
public boolean init()
{
if (! super.init())
return false;
if (! this._btnPrint_.init())
{
GfrTbrHlpWinViewerRunIfrSubCtrsImgLgdLyrWms._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;
}
}
}