/** The name of the “name” property. */
public static final String PROPERTY_NAME = "name";
+ /** The name of the “insert” property. */
+ public static final String PROPERTY_INSERT = "insert";
+
/** The name of the “content type” property. */
public static final String PROPERTY_CONTENT_TYPE = "contentType";
/** The name of the file. */
private String name;
+ /** Whether to insert the file. */
+ private boolean insert;
+
/** The content type of the file. */
private String contentType;
/**
* {@inheritDoc}
*/
+ public boolean isInsert() {
+ return insert;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setInsert(boolean insert) {
+ boolean oldInsert = this.insert;
+ this.insert = insert;
+ fireIfPropertyChanged(PROPERTY_INSERT, oldInsert, insert);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public String getContentType() {
return contentType;
}