private void updateValues(String[] props, Object[] vals, PropertyChange propchg) { for (int i = 0; i < props.length; i++) { if (propchg.getName().lastIndexOf(props[i]) >= 0) { if (propchg.getOp() == PropertyChangeOp.remove) { vals[i] = ""; } else { vals[i] = propchg.getVal(); } } } }
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) { for (int i = 0; i < props.length; i++) { if (propchg.getName().equals(props[i])) { if (propchg.getOp() == PropertyChangeOp.REMOVE) { vals[i] = null; } else { vals[i] = propchg.getVal(); } } } }
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) { for (int findi = 0; findi < props.length; findi++) { if (propchg.getName().lastIndexOf(props[findi]) >= 0) { if (propchg.getOp() == PropertyChangeOp.REMOVE) { vals[findi] = ""; } else { vals[findi] = propchg.getVal(); } } } }
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) { for (int findi = 0; findi < props.length; findi++) { if (propchg.getName().lastIndexOf(props[findi]) >= 0) { vals[findi] = propchg.getOp() == PropertyChangeOp.REMOVE ? Constants.EMPTY : propchg.getVal(); } } }
private static void updateValues(String[] props, Object[] vals, PropertyChange propertyChange) { for (int findi = 0; findi < props.length; findi++) { if (propertyChange.getName().lastIndexOf(props[findi]) >= 0) { if (propertyChange.getOp() == PropertyChangeOp.REMOVE) { vals[findi] = ""; } else { vals[findi] = propertyChange.getVal(); } } } }