filreDownZoomjCheckBox.setEnabled(false);
}
}
public void setWaves(AgregatorItem waves){
WaveModel oldWaveModel = waveModel;
if (waves == null) {
waveModel = null;
}
else {
waveModel = waves.getWaveModel();
}
if (waveModel != oldWaveModel){
for (TypedChangeListener<WaveModel.Params> listener: controlList) {
if (oldWaveModel != null) {
oldWaveModel.removeChangeListener(listener.getType(), listener);
}
if (waveModel != null) {
waveModel.addChangeListener(listener.getType(), listener);
}
listener.stateChanged(null);
}
if (oldWaveModel != null) {
oldWaveModel.removeChangeListener(null, this);
}
if (waveModel != null) {
waveModel.addChangeListener(null, this);
}
stateChanged(null);