Examples of showLabel()


Examples of org.olat.core.gui.components.form.flexible.elements.TextElement.showLabel()

        uifactory.addStaticTextElement("customField_label" + customFieldIndex, null, customField.getName(), formLayout);//null > no label
        TextElement textElement = uifactory.addTextElement("customField_" + customFieldIndex, "", 157, project.getCustomFieldValue(customFieldIndex), formLayout);
        textElement.setDisplaySize(157);
        //        textElement.setTranslator(null);
        //        textElement.setLabel(customField.getName(), null);
        textElement.showLabel(false);
        customfieldElementList.add(textElement);
      } else {
        // values define => dropdown selection
        List<String> valueList = new ArrayList<String>();
        while (tok.hasMoreTokens()) {
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.TextElement.showLabel()

        // no value define => Text-input
        // Add StaticTextElement as workaroung for non translated label
        uifactory.addStaticTextElement("customField_label" + customFieldIndex, customField.getName(), formLayout);
        TextElement textElement = uifactory.addTextElement("customField_" + customFieldIndex, "", 20, project.getCustomFieldValue(customFieldIndex), formLayout);
//        textElement.setLabelComponent(null, null);
        textElement.showLabel(false);
//        textElement.setTranslator(null);
//        textElement.setLabel(customField.getName(), null);
       
        customfieldElementList.add(textElement);
      } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.