use of com.twinsoft.convertigo.beans.core.SequenceEvent in project convertigo by convertigo.
the class AbstractSequenceComposite method checkEventSource.
protected boolean checkEventSource(EventObject event) {
boolean isSourceFromSequence = false;
Object source = event.getSource();
if (event instanceof SequenceEvent) {
if ((source instanceof Sequence) || (source instanceof Step)) {
Sequence sequence = null;
if (source instanceof Sequence)
sequence = (Sequence) source;
if (source instanceof Step)
sequence = ((Step) source).getParentSequence();
if ((sequence != null) && (sequence.equals(this.sequence) || sequence.getOriginal().equals(this.sequence)))
isSourceFromSequence = true;
}
}
return isSourceFromSequence;
}
use of com.twinsoft.convertigo.beans.core.SequenceEvent in project convertigo by convertigo.
the class AbstractSequenceCompositeWrap method checkEventSource.
protected boolean checkEventSource(EventObject event) {
boolean isSourceFromSequence = false;
Object source = event.getSource();
if (event instanceof SequenceEvent) {
if ((source instanceof Sequence) || (source instanceof Step)) {
Sequence sequence = null;
if (source instanceof Sequence)
sequence = (Sequence) source;
if (source instanceof Step)
sequence = ((Step) source).getParentSequence();
if ((sequence != null) && (sequence.equals(this.sequence) || sequence.getOriginal().equals(this.sequence)))
isSourceFromSequence = true;
}
}
return isSourceFromSequence;
}
Aggregations