/*
* 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.GfrNodCtrFixFolderTopPrjLblAresRunAbs;
import org.geoforge.wrpbasprsdsp.state.singleton.selecttlo.GfrWrpObjSttSngSelTlo;
import org.geoforge.wrpbasprssynecl.GfrWrpBasTopSynEclAres;
/**
*
* @author robert
*/
public class GfrNodCtrFixFolderTopPrjLblAresRunGsi extends GfrNodCtrFixFolderTopPrjLblAresRunAbs
{
public GfrNodCtrFixFolderTopPrjLblAresRunGsi(
ActionListener alrControllerSpcPrj,
ActionListener alrControllerPrs,
GfrTreAbs tre,
ActionListener alrParentPanelMvc) throws Exception
{
super(alrControllerSpcPrj,
alrControllerPrs,
tre,
alrParentPanelMvc);
}
@Override
public void addAllObjects() throws Exception
{
String[] strsUniqueId =
GfrWrpBasTopSynEclAres.getInstance().getSelectedIdsTlo();
if (strsUniqueId == null || strsUniqueId.length < 1)
return;
for (int i = 0; i < strsUniqueId.length; i++)
{
GfrNodAbs nod = new GfrNodCtrMovFolderLblTloPrjImgsTloAreRunGsi(
super._alrControllerSpace,
super._alrControllerPerspective,
strsUniqueId[i],
super._tree,
super._alrParentPanelMvc_);
super._addObjectVariableNode(nod);
}
}
@Override
public Object addObjectVariable(String strId) throws Exception
{
if (! GfrWrpBasTopSynEclAres.getInstance().containsTlo(strId))
return null;
if (! GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strId))
return null;
GfrNodAbs nod = new GfrNodCtrMovFolderLblTloPrjImgsTloAreRunGsi(
super._alrControllerSpace,
super._alrControllerPerspective,
strId,
super._tree,
super._alrParentPanelMvc_);
super._addObjectVariableNode(nod);
return nod;
}
}