/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.guillc.panel;
import org.geoforge.guillc.scrollpane.GfrScr;
import org.geoforge.guillc.textarea.GfrTaa;
/**
*
* @author bantchao
*/
abstract public class GfrPnlAboutCopyrightAppAbs extends GfrPnl
{
private GfrTaa _taa_ = null;
private GfrScr _scr_;
protected GfrPnlAboutCopyrightAppAbs(String strContents)
{
super();
this._taa_ = new GfrTaa();
this._taa_.setColumns(46);
this._scr_ = new GfrScr(this._taa_);
this._taa_.setText(strContents);
}
@Override
public boolean init()
{
if (! super.init())
return false;
if (!this._scr_.init())
return false;
if (! this._taa_.init())
return false;
this._taa_.setEditable(false);
//this._scr_.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
super.add(this._scr_);
return true;
}
@Override
public void destroy()
{
super.destroy();
if (this._scr_ != null)
{
this._scr_.destroy();
this._scr_ = null;
}
if (this._taa_ != null)
{
this._taa_.destroy();
this._taa_ = null;
}
}
}