/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.guillcogceclgsi.treenode;
import java.awt.event.ActionListener;
import org.geoforge.guillc.tree.GfrTreAbs;
import org.geoforge.guillc.treenode.GfrNodAbs;
import org.geoforge.guillcogcecl.treenode.GfrNodCtrFixFolderTopPrjLblSctsRunAbs;
import org.geoforge.wrpbasprsdsp.state.singleton.selecttlo.GfrWrpObjSttSngSelTlo;
import org.geoforge.wrpbasprssynecl.GfrWrpBasTopSynEclScts;
/**
*
* @author robert
*/
public class GfrNodCtrFixFolderTopPrjLblSctsRunGsi extends GfrNodCtrFixFolderTopPrjLblSctsRunAbs
{
public GfrNodCtrFixFolderTopPrjLblSctsRunGsi(
ActionListener alrControllerSpcPrj,
ActionListener alrControllerPrs,
GfrTreAbs tre,
ActionListener alrParentPanelMvc) throws Exception
{
super(alrControllerSpcPrj,
alrControllerPrs,
tre,
alrParentPanelMvc);
}
@Override
public void addAllObjects() throws Exception
{
String[] strsUniqueId =
GfrWrpBasTopSynEclScts.getInstance().getSelectedIdsTlo();
if (strsUniqueId == null || strsUniqueId.length < 1)
return;
for (int i = 0; i < strsUniqueId.length; i++)
{
GfrNodAbs nod = new GfrNodCtrMovFolderLblTloPrjImgsTloSctRunGsi(
super._alrControllerSpace,
super._alrControllerPerspective,
strsUniqueId[i],
super._tree,
super._alrParentPanelMvc_);
super._addObjectVariableNode(nod);
}
}
@Override
public Object addObjectVariable(String strId) throws Exception
{
if (! GfrWrpBasTopSynEclScts.getInstance().containsTlo(strId))
return null;
if (! GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strId))
return null;
GfrNodAbs nod = new GfrNodCtrMovFolderLblTloPrjImgsTloSctRunGsi(
super._alrControllerSpace,
super._alrControllerPerspective,
strId,
super._tree,
super._alrParentPanelMvc_);
super._addObjectVariableNode(nod);
return nod;
}
}