{
if (! bln)
{
for (int i=0; i<super.getComponentCount(); i++)
{
GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc pnlCur = (GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc) super.getComponent(i);
String strIdCur = pnlCur.getIdLegendLayer();
if (strIdCur.compareTo(strIdLgdToHandle) != 0)
continue;
super.remove(pnlCur);
pnlCur.destroy();
if (super.getComponentCount() == 0)
super.setSize(super.getMinimumSize());
return;
}
return;
}
// bln = true
String[] strsIdLyrLeaf = GfrWrpBasTopSynOgcWmss.getInstance().getIdsLayerLeaf();
if (strsIdLyrLeaf!=null && strsIdLyrLeaf.length>0)
{
for (String strIdLyrCur: strsIdLyrLeaf)
{
String strIdLgdCur = GfrWrpBasDatObjNameTloWms.s_getIdChildLegendFromIdOwnerLayer(strIdLyrCur);
if (strIdLgdCur.compareTo(strIdLgdToHandle) != 0)
continue;
String strIdTlo = GfrWrpBasTopSynOgcWmss.getInstance().getIdTloOwnerFromLayerLeaf(strIdLyrCur);
String strTitle = GfrWrpBasSynObjNameTloWms.getInstance().getNameImageLegendLayerLeaf(strIdLgdToHandle);
GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc pnlDsp = _addLegend(strIdTlo, strIdLgdToHandle, strTitle);
super.setSelectedComponent(pnlDsp);
return;
} // end of for
}
String[] strsIdLyrFolder = GfrWrpBasTopSynOgcWmss.getInstance().getIdsLayerFolder();
if (strsIdLyrFolder!=null && strsIdLyrFolder.length>0)
{
for (String strIdLyrCur: strsIdLyrFolder)
{
String strIdLgdCur = GfrWrpBasDatObjNameTloWms.s_getIdChildLegendFromIdOwnerLayer(strIdLyrCur);
if (strIdLgdCur.compareTo(strIdLgdToHandle) != 0)
continue;
String strIdTlo = GfrWrpBasTopSynOgcWmss.getInstance().getIdTloOwnerFromLayerFolder(strIdLyrCur);
String strTitle = GfrWrpBasSynObjNameTloWms.getInstance().getNameImageLegendLayerFolder(strIdLgdToHandle);
GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc pnlDsp = _addLegend(strIdTlo, strIdLgdToHandle, strTitle);
super.setSelectedComponent(pnlDsp);
} // end of for
}
}