/** Set whether this field element is a version field or not. * @param flag - if <code>true</code>, the field element is marked * as a version field; otherwise, it is not * @exception ModelException if impossible */ public void setVersion (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isVersion()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_VERSION_FIELD, old, newFlag); _isVersion = flag; firePropertyChange(PROP_VERSION_FIELD, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set whether this field element is a version field or not. * @param flag - if <code>true</code>, the field element is marked * as a version field; otherwise, it is not * @exception ModelException if impossible */ public void setVersion (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isVersion()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_VERSION_FIELD, old, newFlag); _isVersion = flag; firePropertyChange(PROP_VERSION_FIELD, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }