Exemplo n.º 1
0
 /**
  * Marks the style of this layer given by its name as selected. If this layer has no style with
  * this name, then the layer is marked as none selected.
  *
  * @param style name
  */
 public void setSelectedStyleByName(String styName) {
   if (styName == null || styName.equals("")) setSelectedStyleByIndex(-1);
   for (int i = 0; i < styles.size(); i++) {
     FMapWMSStyle sty = (FMapWMSStyle) styles.get(i);
     if (sty.name.equals(styName)) {
       setSelectedStyleByIndex(i);
       return;
     }
   }
   setSelectedStyleByIndex(-1);
 }