/** Add a property set. If the set does not yet exist in the sheet, * inserts a new set with the implied name. Otherwise the old set is replaced * by the new one. * * @param set to add * @return the previous set with the same name, or <code>null</code> if this is a fresh insertion */ public synchronized Set put(Set set) { int indx = findIndex(set.getName()); Set removed = null; if (indx == -1) { sets.add(set); } else { removed = sets.set(indx, set); removed.removePropertyChangeListener(propL); } set.addPropertyChangeListener(propL); refresh(); return removed; }
ProxyProperty pp = createProxyProperty(copy, p[j].getName(), res.getName()); res.put(pp);
res.getName() ); res.put(pp);
res.getName() ); res.put(pp);
/** Add a property set. If the set does not yet exist in the sheet, * inserts a new set with the implied name. Otherwise the old set is replaced * by the new one. * * @param set to add * @return the previous set with the same name, or <code>null</code> if this is a fresh insertion */ public synchronized Set put (Set set) { int indx = findIndex (set.getName ()); Set removed; if (indx == -1) { sets.add (set); removed = null; } else { removed = (Set)sets.set (indx, set); } set.removePropertyChangeListener (propL); if (removed == null) { set.addPropertyChangeListener (propL); } refresh (); return removed; }
/** Add a property set. If the set does not yet exist in the sheet, * inserts a new set with the implied name. Otherwise the old set is replaced * by the new one. * * @param set to add * @return the previous set with the same name, or <code>null</code> if this is a fresh insertion */ public synchronized Set put (Set set) { int indx = findIndex (set.getName ()); Set removed; if (indx == -1) { sets.add (set); removed = null; } else { removed = (Set)sets.set (indx, set); } set.removePropertyChangeListener (propL); if (removed == null) { set.addPropertyChangeListener (propL); } refresh (); return removed; }