xq.gwt.mvc.model.EntityArrayPropertyModel Maven / Gradle / Ivy
package xq.gwt.mvc.model;
public class EntityArrayPropertyModel extends AbstractPropertyModel {
private static final long serialVersionUID = 1213206971164348529L;
private EntityModel[] value;
private EntityModel prototype;
@Override
public Object getObjectValue() {
return getValue();
}
@SuppressWarnings("rawtypes")
@Override
public Class getPropertyType() {
return EntityModel[].class;
}
public EntityModel[] getValue() {
return value;
}
public void setValue(EntityModel[] value) {
EntityModel[] oldValue = this.value;
this.value = value;
notifyPropertyChanged(oldValue, this.value);
}
@Override
public String getText() {
String text = null;
if(value != null){
text = value.toString();
}
return text;
}
@Override
public void setText(String text) throws ConversionException {
//To nothing;
}
public EntityModel getPrototype() {
return prototype;
}
public void setPrototype(EntityModel prototype) {
this.prototype = prototype;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy