return name;
}
+ /**
+ * The name of this {@link Progress} step.
+ *
+ * @param name
+ * the new name
+ */
+ public void setName(String name) {
+ this.name = name;
+ // will fire an action event:
+ setProgress(this.localProgress);
+ }
+
/**
* The minimum progress value.
*
this.listeners.add(l);
}
+ /**
+ * Remove a {@link ProgressListener} that would trigger on progress changes.
+ *
+ * @param l
+ * the listener
+ *
+ * @return TRUE if it was found (and removed)
+ */
+ public boolean removeProgressListener(ProgressListener l) {
+ return this.listeners.remove(l);
+ }
+
/**
* Add a child {@link Progress} of the given weight.
*