/** Is called when the new value should be saved after the save button has been clicked */ @Override public void saveOrUpdate() { if (checkBox.getValue() && dsTable.getValue() != null) { final DistributionSetIdName ds = (DistributionSetIdName) dsTable.getValue(); updateTargetFilterQueryDS(tfqId, ds.getId()); } else if (!checkBox.getValue()) { updateTargetFilterQueryDS(tfqId, null); } }
public DistributionSetIdName getValue() { if (checkBox.getValue()) { return (DistributionSetIdName) dsTable.getValue(); } return null; }
/** * Is triggered when the save button is clicked * * @return whether the click should be allowed */ @Override public boolean canWindowSaveOrUpdate() { return !checkBox.getValue() || dsTable.getValue() != null; }