form.addLabel(T_error); form.addItem(T_error_duplicate_field); form.addLabel(T_error); form.addItem(T_error_element_empty); form.addLabel(T_error); form.addItem(T_error_element_badchar); form.addLabel(T_error); form.addItem(T_error_element_tolong); form.addLabel(T_error); form.addItem(T_error_qualifier_tolong); form.addLabel(T_error); form.addItem(T_error_qualifier_badchar);
list.addLabel(T_JAVA_VERSION); list.addItem(System.getProperty("java.version")); list.addLabel(T_JAVA_VENDOR); list.addItem(System.getProperty("java.vendor")); list.addLabel(T_OS_NAME); list.addItem(System.getProperty("os.name")); list.addLabel(T_OS_ARCH); list.addItem(System.getProperty("os.arch")); list.addLabel(T_OS_VERSION); list.addItem(System.getProperty("os.version")); runtime.addLabel(T_RUNTIME_PROCESSORS); runtime.addItem(String.valueOf(processors)); runtime.addLabel(T_RUNTIME_MAX); runtime.addItem(String.valueOf(maxMemory) + " MiB"); runtime.addLabel(T_RUNTIME_TOTAL); runtime.addItem(String.valueOf(totalMemory) + " MiB"); runtime.addLabel(T_RUNTIME_USED); runtime.addItem(String.valueOf(usedMemory) + " MiB"); runtime.addLabel(T_RUNTIME_FREE); runtime.addItem(String.valueOf(freeMemory) + " MiB");
dspace.addLabel(T_DSPACE_VERSION); dspace.addItem(Util.getSourceVersion()); dspace.addLabel(T_DSPACE_DIR); dspace.addItem(ConfigurationManager.getProperty("dspace.dir")); dspace.addLabel(T_DSPACE_URL); dspace.addItem(ConfigurationManager.getProperty("dspace.url")); dspace.addLabel(T_DSPACE_HOST_NAME); dspace.addItem(ConfigurationManager.getProperty("dspace.hostname")); dspace.addLabel(T_DSPACE_NAME); dspace.addItem(ConfigurationManager.getProperty("dspace.name")); dspace.addLabel(T_DB_NAME); dspace.addItem(ConfigurationManager.getProperty("db.name")); dspace.addLabel(T_DB_URL); dspace.addItem(ConfigurationManager.getProperty("db.url")); dspace.addLabel(T_DB_DRIVER); dspace.addItem(ConfigurationManager.getProperty("db.driver")); dspace.addLabel(T_DB_MAX_CONN); dspace.addItem(ConfigurationManager.getProperty("db.maxconnections")); dspace.addLabel(T_DB_MAX_WAIT); dspace.addItem(ConfigurationManager.getProperty("db.maxwait"));
cocoon.setHead(T_COCOON_HEAD); cocoon.addLabel(T_COCOON_VERSION); cocoon.addItem(org.apache.cocoon.Constants.VERSION); cocoon.addLabel(T_COCOON_WORK_DIR); cocoon.addItem(this.settings.getWorkDirectory()); cocoon.addLabel(T_COCOON_CACHE_DIR); cocoon.addItem(this.settings.getCacheDirectory()); cocoon.addLabel(T_COCOON_MAIN_CACHE_SIZE.parameterize(storeName + ", 0x" + Integer.toHexString(this.storeDefault.hashCode()))); cocoon.addLabel(T_COCOON_PERSISTENT_CACHE_SIZE.parameterize(storeName + ", 0x" + Integer.toHexString(this.storePersistent.hashCode()))); cocoon.addItem(String.valueOf(this.storePersistent.size())); cocoon.addLabel(T_COCOON_TRANS_CACHE_SIZE.parameterize(storeName + ", 0x" + Integer.toHexString(store.hashCode()))); cocoon.addItem(String.valueOf(store.size()));
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division contact = body.addDivision("contact","primary"); contact.setHead(T_head); String name = ConfigurationManager.getProperty("dspace.name"); contact.addPara(T_para1.parameterize(name)); List list = contact.addList("contact"); list.addLabel(T_feedback_label); list.addItem().addXref(contextPath+"/feedback",T_feedback_link); list.addLabel(T_email); String email = ConfigurationManager.getProperty("mail.admin"); list.addItem().addXref("mailto:"+email,email); } }
metadataList.addLabel(T_label_name); Text name = metadataList.addItem().addText("name"); name.setSize(40); metadataList.addLabel(T_label_short_description); Text short_description = metadataList.addItem().addText("short_description"); short_description.setSize(40); metadataList.addLabel(T_label_introductory_text); TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setSize(6, 40); metadataList.addLabel(T_label_copyright_text); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setSize(6, 40); metadataList.addLabel(T_label_side_bar_text); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setSize(6, 40); metadataList.addLabel(T_label_license); TextArea license = metadataList.addItem().addTextArea("license"); license.setSize(6, 40); metadataList.addLabel(T_label_provenance_description); TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description"); provenance_description.setSize(6, 40); metadataList.addLabel(T_label_logo);
metadataList.addLabel(T_label_name); Text name = metadataList.addItem().addText("name"); name.setSize(40); metadataList.addLabel(T_label_short_description); Text short_description = metadataList.addItem().addText("short_description"); short_description.setSize(40); metadataList.addLabel(T_label_introductory_text); TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setSize(6, 40); metadataList.addLabel(T_label_copyright_text); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setSize(6, 40); metadataList.addLabel(T_label_side_bar_text); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setSize(6, 40); metadataList.addLabel(T_label_logo); metadataList.addItem().addFile("logo");
form.addLabel(T_email_address); form.addItem(email);
curationTaskList.addLabel(T_taskgroup_label_name); //needs to check for >=1 group configured Select groupSelect = curationTaskList.addItem().addSelect("select_curate_group"); groupSelect = FlowCurationUtils.getGroupSelectOptions(groupSelect); curationTaskList.addLabel(T_label_name); Select taskSelect = curationTaskList.addItem().addSelect("curate_task"); taskSelect = FlowCurationUtils.getTaskSelectOptions(taskSelect, curateGroup);
curationTaskList.addLabel(T_taskgroup_label_name); //needs to check for >=1 group configured Select groupSelect = curationTaskList.addItem().addSelect("select_curate_group"); groupSelect = FlowCurationUtils.getGroupSelectOptions(groupSelect); curationTaskList.addLabel(T_label_name); Select taskSelect = curationTaskList.addItem().addSelect("curate_task"); taskSelect = FlowCurationUtils.getTaskSelectOptions(taskSelect, curateGroup);
actionsList.addLabel(T_actions_policyGroup); Select groupSelect = actionsList.addItem().addSelect("group_id"); groupSelect.setMultiple(true); actionsList.addLabel(T_actions_policyAction); Select actionSelect = actionsList.addItem().addSelect("action_id"); for( int i = 0; i < Constants.actionText.length; i++ ) actionsList.addLabel(T_actions_policyResource); Select resourceSelect = actionsList.addItem().addSelect("resource_id"); resourceSelect.addOption(true, Constants.ITEM, "item"); actionsList.addLabel(T_actions_policyCollections); Select collectionsSelect = actionsList.addItem().addSelect("collection_id"); collectionsSelect.setMultiple(true);
password.setLabel(T_password); list.addLabel(); Item submit = list.addItem("login-in", null); submit.addButton("submit").setValue(T_submit);
item.addXref(contextPath + "/forgot", T_forgot_link); list.addLabel(); Item submit = list.addItem("login-in", null); submit.addButton("submit").setValue(T_submit);
addFieldErrors(form, errors); form.addLabel(T_name); Highlight item =form.addItem().addHighlight("big");
harvestSource.addLabel(T_label_source); Radio source = harvestSource.addItem().addRadio("source"); source.addOption(hc == null, "source_normal", T_source_normal);
form.addLabel(T_name); Highlight item =form.addItem().addHighlight("big");