Package org.geoforge.guillc.dialog

Source Code of org.geoforge.guillc.dialog.GfrDlgNewSettingsTloNamAbsAbs

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

import javax.swing.JFrame;
import org.geoforge.guillc.handler.IGfrHandlerDisplayableObjectsSet;
import org.geoforge.guillc.panel.GfrPnlGrpSngTaa;
import org.geoforge.guillc.panel.GfrPnlGrpTxfFullEditableYes;
import org.geoforge.lang.util.GfrResBundleLang;

/**
*
* @author Amadeus.Sowerby
*
* email: Amadeus.Sowerby_AT_gmail.com
* ... please remove "_AT_" from the above string to get the right email address
*/
/*
* "Abs" means "Abstact", the object short description
*/
abstract public class GfrDlgNewSettingsTloNamAbsAbs extends GfrDlgNewSettingsTloNamAbs
{

   //--
   //-- beg private fields
   private GfrPnlGrpSngTaa _pnlShortDesc_;
   private GfrPnlGrpTxfFullEditableYes _pnlValueClient_;
   private GfrPnlGrpTxfFullEditableYes _pnlValueAuthor_;
   private GfrPnlGrpTxfFullEditableYes _pnlValueTitle_;
   //--end private fields
   //--
  
   public String getValueTloAbstract()
   {
      return this._pnlShortDesc_.getContent();
   }
  
   public String getValueTloClient()
   {
      return this._pnlValueClient_.getValue();
   }
  
   public String getValueTloAuthor()
   {
      return this._pnlValueAuthor_.getValue();
   }

   public String getValueTloTitle()
   {
      return this._pnlValueTitle_.getValue();
   }

   protected GfrDlgNewSettingsTloNamAbsAbs(
           JFrame frmOwner,
           IGfrHandlerDisplayableObjectsSet enuValueTlo,
           String[] strsExistingItems)
   {
      super(
              frmOwner,
              enuValueTlo,
              strsExistingItems);

      this._pnlShortDesc_ = new GfrPnlGrpSngTaa(
              GfrResBundleLang.s_getInstance().getValue("word.abstract"));
     
      this._pnlValueClient_ = new GfrPnlGrpTxfFullEditableYes("Client");
     
      this._pnlValueAuthor_ = new GfrPnlGrpTxfFullEditableYes("Author");
     
      this._pnlValueTitle_ = new GfrPnlGrpTxfFullEditableYes("Title");

      super.addToListResizable(this._pnlShortDesc_);
      super.addToListResizable(this._pnlValueClient_);
      super.addToListResizable(this._pnlValueAuthor_);
      super.addToListResizable(this._pnlValueTitle_);
   }

   @Override
   public boolean init()
   {
      if (!super.init())
         return false;

      if (!this._pnlShortDesc_.init())
         return false;

      if (!this._pnlValueClient_.init())
         return false;
     
      if (!this._pnlValueAuthor_.init())
         return false;
     
      if (!this._pnlValueTitle_.init())
         return false;

      //Panel General
      super._pnlGeneral.addWithSpace(this._pnlShortDesc_);
      super._pnlGeneral.addWithSpace(this._pnlValueClient_);
      super._pnlGeneral.addWithSpace(this._pnlValueAuthor_);
      super._pnlGeneral.addWithSpace(this._pnlValueTitle_);

      return true;
   }

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

      if (this._pnlShortDesc_ != null)
      {
         this._pnlShortDesc_.destroy();
         this._pnlShortDesc_ = null;
      }
     
      if (this._pnlValueClient_ != null)
      {
         this._pnlValueClient_.destroy();
         this._pnlValueClient_ = null;
      }
     
      if (this._pnlValueAuthor_ != null)
      {
         this._pnlValueAuthor_.destroy();
         this._pnlValueAuthor_ = null;
      }
     
      if (this._pnlValueTitle_ != null)
      {
         this._pnlValueTitle_.destroy();
         this._pnlValueTitle_ = null;
      }
   }
}
TOP

Related Classes of org.geoforge.guillc.dialog.GfrDlgNewSettingsTloNamAbsAbs

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.