Mercurial > hg > thermostat-tools-eclipse
view com.redhat.thermostat.tools.eclipse.plugin/src/com/redhat/thermostat/tools/eclipse/plugin/model/Group.java @ 108:fde496a78a98
Add UI for editing options
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Thu, 27 Feb 2014 15:40:52 -0500 |
parents | 4356c844cff9 |
children |
line wrap: on
line source
package com.redhat.thermostat.tools.eclipse.plugin.model; import java.util.ArrayList; import java.util.List; public class Group { private boolean required; private List<Option> options = new ArrayList<>(); public Group() { // empty default constructor } public Group(Group other) { this.required = other.required; this.options = new ArrayList<>(other.options.size()); for (Option opt : other.options) { this.options.add(new Option(opt)); } } public boolean getRequired() { return required; } public void setRequired(boolean required) { this.required = required; } public List<Option> getOptions() { return this.options; } public void setOptions(List<Option> options) { this.options = options; } }