/** * Add a subproperties to a properties. */ public void addSubproperties(String type, Properties subproperties) { if(subproperties.getType()!=null && !subproperties.getType().equals(type)) throw new IllegalArgumentException("Incompatible types: "+subproperties.getType()+", "+type); subproperties.setType(type); addSubproperties(subproperties); }
public void customResultAvailable(Properties sub) { // Properties sub = (Properties)result; props.removeSubproperties(panel.getId()); if(sub!=null) { sub.setType(panel.getId()); props.addSubproperties(sub); } ret.setResult(props); }; });