use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLGenerateDatesStep method setStopDefinition.
public void setStopDefinition(XMLVector<String> stopDefinition) {
this.stopDefinition = stopDefinition;
stopSource = new StepSource(this, stopDefinition);
}
use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLGenerateDatesStep method setStartDefinition.
public void setStartDefinition(XMLVector<String> startDefinition) {
this.startDefinition = startDefinition;
startSource = new StepSource(this, startDefinition);
}
use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLGenerateDatesStep method getSpecificLabel.
@Override
protected String getSpecificLabel() throws EngineException {
StepSource stepSource = null;
String startLabel = "";
String stopLabel = "";
String daysLabel = "";
String label = "";
stepSource = getStartSource();
if (stepSource != null) {
startLabel = stepSource.getLabel();
if (startLabel.equals("! broken source !"))
return " (! broken source in Start !)";
}
stepSource = getStopSource();
if (stepSource != null) {
stopLabel = stepSource.getLabel();
if (stopLabel.equals("! broken source !"))
return " (! broken source in Stop !)";
}
stepSource = getDaysSource();
if (stepSource != null) {
daysLabel = stepSource.getLabel();
if (daysLabel.equals("! broken source !"))
return " (! broken source in Days !)";
}
daysLabel = daysLabel.equals("") ? "??" : daysLabel;
label = "(" + "@(" + daysLabel + "),..." + ")";
return label;
}
use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLGenerateDatesStep method stepMoved.
@Override
public void stepMoved(StepEvent stepEvent) {
StepSource stepSource = null;
stepSource = getStartSource();
if (stepSource != null) {
stepSource.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
}
stepSource = getStopSource();
if (stepSource != null) {
stepSource.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
}
stepSource = getDaysSource();
if (stepSource != null) {
stepSource.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
}
}
use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLGenerateDatesStep method setDaysDefinition.
public void setDaysDefinition(XMLVector<String> daysDefinition) {
this.daysDefinition = daysDefinition;
daysSource = new StepSource(this, daysDefinition);
}
Aggregations