org.bidib.wizard.dmx.client.model.ConfigureDmxTimelineConfigModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-dmx-client Show documentation
Show all versions of bidibwizard-dmx-client Show documentation
jBiDiB BiDiB Wizard DMX client POM
package org.bidib.wizard.dmx.client.model;
import java.util.List;
import com.jgoodies.binding.beans.Model;
import com.jgoodies.binding.value.ValueHolder;
import com.jgoodies.binding.value.ValueModel;
import com.jgoodies.common.collect.ArrayListModel;
public class ConfigureDmxTimelineConfigModel extends Model {
private static final long serialVersionUID = 1L;
public static final String PROPERTY_DMX_TIMELINE_CONFIG_LIST = "dmxTimelineConfigList";
public static final String PROPERTY_LISTCHANGED = "listChanged";
private final ArrayListModel dmxTimelineConfigList;
private final ValueModel listChanged = new ValueHolder(false);
public ConfigureDmxTimelineConfigModel(final List dmxTimelineConfigList) {
this.dmxTimelineConfigList = new ArrayListModel<>();
this.dmxTimelineConfigList.addAll(dmxTimelineConfigList);
}
public ArrayListModel getDmxTimelineConfigList() {
return dmxTimelineConfigList;
}
public void setListChanged(boolean listChanged) {
Boolean oldValue = (Boolean) this.listChanged.getValue();
this.listChanged.setValue(listChanged);
firePropertyChange(PROPERTY_LISTCHANGED, oldValue, Boolean.valueOf(listChanged));
}
public boolean isListChanged() {
return (Boolean) this.listChanged.getValue();
}
}