/** * Stores if option is restricted or not * * @param resOpt Option is restricted */ public void setRestricted(boolean resOpt) { // Set restriction to actual option this.restrictedOption = resOpt; getLogger().debug("Setting restricted screen: {0}", new Object[]{this.getName()}); // Set restriction to children option if (this.getElementList() != null) { for (Element element : this.getElementList()) { Option option = (Option) element; option.setRestricted(resOpt); } } }