Package org.geoforge.guillc.popupmenu

Source Code of org.geoforge.guillc.popupmenu.GfrPmuCtlCtrLeafLloVarRenDelCopViewRdrPdf

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.guillc.popupmenu;

import java.awt.event.ActionListener;
import org.geoforge.guillc.handler.IGfrHandlerDisplayObjectLloVar;
import org.geoforge.guillc.menuitem.GfrMimTrsAlrTloViewDftRdrPdfLloPdf;
import org.geoforge.guillc.menuitem.GfrMimTrsAlrAbs;
import org.geoforge.guillc.tree.GfrTreAbs;
import org.geoforge.java.awt.container.GfrUtilContainer;

/**
*
* @author bill
*/
public class GfrPmuCtlCtrLeafLloVarRenDelCopViewRdrPdf extends GfrPmuCtlCtrLeafLloVarRenDelCop
{
    private GfrMimTrsAlrAbs _mimViewInDefaultPdfReader_ = null;
   
    public GfrPmuCtlCtrLeafLloVarRenDelCopViewRdrPdf(
            ActionListener alrController,
         String strUniqueId,
         GfrTreAbs tree,
         String strIdParent,
         String strValueKindTargetWindow,
         IGfrHandlerDisplayObjectLloVar enuValueObjectLlo) throws Exception
    {
        super(alrController, strUniqueId, tree, strIdParent, strValueKindTargetWindow, enuValueObjectLlo);
       
        this._mimViewInDefaultPdfReader_ = new GfrMimTrsAlrTloViewDftRdrPdfLloPdf(
            alrController,
            strIdParent,
            strUniqueId,
            enuValueObjectLlo.getNameThisDisplayObjectLloVar());
    }
   
    @Override
   public boolean init()
   {
      if (!super.init())
         return false;

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

      int intPos = GfrUtilContainer.s_getPosition(this, super._mimSettings);
      intPos++;
     
      super.add(this._mimViewInDefaultPdfReader_, intPos);

      return true;
   }

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

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

   @Override
   public void loadTransient() throws Exception
   {
      super.loadTransient();

      this._mimViewInDefaultPdfReader_.loadTransient();
   }

   @Override
   public void releaseTransient() throws Exception
   {
      super.releaseTransient();

      this._mimViewInDefaultPdfReader_.releaseTransient();
   }
}
TOP

Related Classes of org.geoforge.guillc.popupmenu.GfrPmuCtlCtrLeafLloVarRenDelCopViewRdrPdf

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.