Пример #1
0
  public PadGroup clone(PadGroup pg) {

    if (pg == null) return null;

    PadGroup newPadGroup = new PadGroup();

    if (pg.getName() != null) newPadGroup.setName(pg.getName());

    return newPadGroup;
  }
Пример #2
0
 public static boolean existGroup(Pads cfg, String groupName) {
   for (PadGroup g : cfg.getPadGroup()) {
     if (groupName.equals(g.getName())) return true;
   }
   return false;
 }
Пример #3
0
  public static PadGroup getPadGroup(Pads cfg, String groupName) {

    for (PadGroup g : cfg.getPadGroup()) if (groupName.equals(g.getName())) return g;

    return null;
  }