|
|
@ -53,7 +53,7 @@ import java.util.regex.Pattern; |
|
|
|
* defs.define("config_with_validator", Type.INT, 42, Range.atLeast(0), "Configuration with user provided validator."); |
|
|
|
* defs.define("config_with_validator", Type.INT, 42, Range.atLeast(0), "Configuration with user provided validator."); |
|
|
|
* defs.define("config_with_dependents", Type.INT, "Configuration with dependents.", "group", 1, "Config With Dependents", Arrays.asList("config_with_default","config_with_validator")); |
|
|
|
* defs.define("config_with_dependents", Type.INT, "Configuration with dependents.", "group", 1, "Config With Dependents", Arrays.asList("config_with_default","config_with_validator")); |
|
|
|
* |
|
|
|
* |
|
|
|
* Map<String, String> props = new HashMap<>(); |
|
|
|
* Map<String, String> props = new HashMap<>(); |
|
|
|
* props.put("config_with_default", "some value"); |
|
|
|
* props.put("config_with_default", "some value"); |
|
|
|
* props.put("config_with_dependents", "some other value"); |
|
|
|
* props.put("config_with_dependents", "some other value"); |
|
|
|
* |
|
|
|
* |
|
|
@ -1133,7 +1133,7 @@ public class ConfigDef { |
|
|
|
* If <code>dynamicUpdateModes</code> is non-empty, a "Dynamic Update Mode" column |
|
|
|
* If <code>dynamicUpdateModes</code> is non-empty, a "Dynamic Update Mode" column |
|
|
|
* will be included n the table with the value of the update mode. Default |
|
|
|
* will be included n the table with the value of the update mode. Default |
|
|
|
* mode is "read-only". |
|
|
|
* mode is "read-only". |
|
|
|
* @param dynamicUpdateModes Config name -> update mode mapping |
|
|
|
* @param dynamicUpdateModes Config name -> update mode mapping |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String toHtmlTable(Map<String, String> dynamicUpdateModes) { |
|
|
|
public String toHtmlTable(Map<String, String> dynamicUpdateModes) { |
|
|
|
boolean hasUpdateModes = !dynamicUpdateModes.isEmpty(); |
|
|
|
boolean hasUpdateModes = !dynamicUpdateModes.isEmpty(); |
|
|
|