public PadGroup clone(PadGroup pg) { if (pg == null) return null; PadGroup newPadGroup = new PadGroup(); if (pg.getName() != null) newPadGroup.setName(pg.getName()); return newPadGroup; }
public static boolean existGroup(Pads cfg, String groupName) { for (PadGroup g : cfg.getPadGroup()) { if (groupName.equals(g.getName())) return true; } return false; }
public static PadGroup getPadGroup(Pads cfg, String groupName) { for (PadGroup g : cfg.getPadGroup()) if (groupName.equals(g.getName())) return g; return null; }