protected Label createEntityLabel(String caption) { Label entityLabel = componentsFactory.createComponent(Label.class); entityLabel.setValue(caption); entityLabel.setStyleName("h2"); entityLabel.setWidth("200px"); return entityLabel; }
public Label createLabel(ReportInputParameter parameter, Field field) { Label label = componentsFactory.createComponent(Label.class); label.setAlignment(field instanceof TokenList ? Alignment.TOP_LEFT : Alignment.MIDDLE_LEFT); label.setWidth(Component.AUTO_SIZE); label.setValue(parameter.getLocName()); return label; }
private BoxLayout createFirstRowAttrsLayout() { BoxLayout firstRowAttrsLayout = wizard.componentsFactory.createComponent(HBoxLayout.class); firstRowAttrsLayout.setSpacing(true); Label regionLbl = wizard.componentsFactory.createComponent(Label.class); regionLbl.setStyleName(BOLD_LABEL_STYLE); regionLbl.setValue(wizard.getMessage("region")); Label regionValueLbl = wizard.componentsFactory.createComponent(Label.class); regionValueLbl.setValue(currentReportRegionGeneratedColumn.getName()); regionValueLbl.setWidth(WIDTH_PERCENT_100); firstRowAttrsLayout.add(regionLbl); firstRowAttrsLayout.add(regionValueLbl); return firstRowAttrsLayout; }
private BoxLayout createSecondRowAttrsLayout() { BoxLayout secondRowAttrsLayout = wizard.componentsFactory.createComponent(HBoxLayout.class); secondRowAttrsLayout.setSpacing(true); Label entityLbl = wizard.componentsFactory.createComponent(Label.class); entityLbl.setStyleName(BOLD_LABEL_STYLE); entityLbl.setValue(wizard.getMessage("entity")); Label entityValueLbl = wizard.componentsFactory.createComponent(Label.class); entityValueLbl.setValue(wizard.messageTools.getEntityCaption(currentReportRegionGeneratedColumn.getRegionPropertiesRootNode().getWrappedMetaClass())); entityValueLbl.setWidth(WIDTH_PERCENT_100); secondRowAttrsLayout.add(entityLbl); secondRowAttrsLayout.add(entityValueLbl); return secondRowAttrsLayout; }
ackLab.setWidth("420px"); ackLab.setHtmlEnabled(true); ackLab.setValue(acknowledgements.toString());