/** * Reads the specified properties from the supplied cursor into the model. This will clear any user-set values. */ public void readPropertiesFromCursor(SquidCursor<?> cursor, Property<?>... properties) { prepareToReadProperties(); for (Property<?> field : properties) { readFieldIntoModel(cursor, field); } }
/** * Reads all properties from the supplied cursor into the model. This will clear any user-set values. */ public void readPropertiesFromCursor(SquidCursor<?> cursor) { prepareToReadProperties(); for (Field<?> field : cursor.getFields()) { readFieldIntoModel(cursor, field); } }
/** * Copies values from the given {@link ValuesStorage} into the model. The values will be added to the model as read * values (i.e. will not be considered set values or mark the model as dirty). */ public void readPropertiesFromValuesStorage(ValuesStorage values, Property<?>... properties) { prepareToReadProperties(); if (values != null) { for (Property<?> property : properties) { if (values.containsKey(property.getName())) { this.values.put(property.getName(), getFromValues(property, values), true); } } } }
/** * Reads the specified properties from the supplied cursor into the model. This will clear any user-set values. */ public void readPropertiesFromCursor(SquidCursor<?> cursor, Property<?>... properties) { prepareToReadProperties(); for (Property<?> field : properties) { readFieldIntoModel(cursor, field); } }
/** * Reads all properties from the supplied cursor into the model. This will clear any user-set values. */ public void readPropertiesFromCursor(SquidCursor<?> cursor) { prepareToReadProperties(); for (Field<?> field : cursor.getFields()) { readFieldIntoModel(cursor, field); } }
/** * Copies values from the given {@link ValuesStorage} into the model. The values will be added to the model as read * values (i.e. will not be considered set values or mark the model as dirty). */ public void readPropertiesFromValuesStorage(ValuesStorage values, Property<?>... properties) { prepareToReadProperties(); if (values != null) { for (Property<?> property : properties) { if (values.containsKey(property.getName())) { this.values.put(property.getName(), getFromValues(property, values), true); } } } }