@Override
    public void setProperties(Property[] newProperties) {
        // unregister the listeners from previous properties
        for (Property prop : properties) {
            prop.removePropertyChangeListener(this);
        }

        // replace the current properties
        properties.clear();
        properties.addAll(Arrays.asList(newProperties));

        // add listeners
        for (Property prop : properties) {
            prop.addPropertyChangeListener(this);
        }

        buildModel();
    }
@ Override public void setProperties ( Property [ ] newProperties ) { for ( Property prop : properties ) { prop . removePropertyChangeListener ( this ) ; } properties . clear ( ) ; properties . addAll ( Arrays . asList ( newProperties ) ) ; for ( Property prop : properties ) { prop . addPropertyChangeListener ( this ) ; } buildModel ( ) ; }
/* (non-Javadoc)
@see com.l2fprod.common.propertysheet.PropertySheet#setProperties(com.l2fprod.common.propertysheet.Property[])