Object obj = GfrBasicLayerFactory.s_createComponent(caps, params);
if (obj == null)
return null;
GfrLyrWMSTiledImageLayer objLayer = (GfrLyrWMSTiledImageLayer) obj;
String strErrorCheck = objLayer.getErrorCheck();
if (strErrorCheck != null)
{
GfrSetRlrTopSecOgcWmss._LOGGER_.warning(strErrorCheck);
return null;
}
LayerList llt = super._cnv.getModel().getLayers();
llt.add(objLayer);
objLayer.setIdParent(strIdParent);
objLayer.setUniqueIdGtr(strId);
boolean blnEnable = false;
boolean blnIsCheckedParent = GfrWrpBasPrsDspPrjObjSecMltTogCbx.getInstance().isEnabled(super._strIdViewer, strIdParent);
boolean blnIsCheckedThis = GfrWrpBasPrsDspPrjObjSecMltTogCbx.getInstance().isEnabled(super._strIdViewer, strId);
if (blnIsCheckedParent)
{
if (blnIsCheckedThis)
{
blnEnable = true;
}
}
objLayer.setEnabled(blnEnable);
objLayer.setDisplayStateThis(blnIsCheckedThis); // !!
return obj;
}