edit.addItem().addFigure(contextPath + "/themes/Reference/images/information.png", "javascript:void(0)", cclicensefield.getDescription(), "information"); List subList = div.addList("sublist", List.TYPE_SIMPLE, "horizontalVanilla"); Radio radio = subList.addItem().addRadio(cclicensefield.getId() + "_chooser"); radio.setRequired(); Iterator fieldMapIterator = cclicensefield.getEnum().entrySet().iterator();
Radio source = harvestSource.addItem().addRadio("source"); source.addOption(hc == null || harvestLevelValue == -1, "source_normal", T_source_normal); source.addOption(hc != null, "source_harvested", T_source_harvested); Radio harvestLevel = harvestOptions.addItem().addRadio("harvest_level"); harvestLevel.addOption(harvestLevelValue == 1, 1, T_option_md_only); harvestLevel.addOption(harvestLevelValue == 2, 2, T_option_md_and_ref);
listField = form.addItem().addRadio(fieldName);
Radio actionSelect = actionSelectItem.addRadio("action_id"); actionSelect.setLabel(T_label_action);
Radio source = harvestSource.addItem().addRadio("source"); source.addOption(hc == null, "source_normal", T_source_normal); source.addOption(hc != null, "source_harvested", T_source_harvested);
Radio source = harvestSource.addItem().addRadio("source"); source.addOption(false, "source_normal", T_source_normal); // was hc == null - always false source.addOption(true, "source_harvested", T_source_harvested); // was hc != null - always true