// mappingHolder expects an MWMapping public static JCheckBox buildReadOnlyCheckBox( ValueModel mappingHolder, ApplicationContext context) { JCheckBox checkBox = buildCheckBox( "MAPPING_READ_ONLY_CHECK_BOX", new CheckBoxModelAdapter(buildReadOnlyHolder(mappingHolder)), context.getResourceRepository()); context.getHelpManager().addTopicID(checkBox, "mapping.readOnly"); return checkBox; }
/** mappingHolder expects a MWAbstractAnyMapping */ public static JCheckBox buildWildcardCheckBox( ValueModel mappingHolder, ApplicationContext context) { JCheckBox checkBox = buildCheckBox( "WILDCARD_CHECK_BOX", new CheckBoxModelAdapter(buildWildcardHolder(mappingHolder)), context.getResourceRepository()); context.getHelpManager().addTopicID(checkBox, "mapping.wildcard"); return checkBox; }