/** * Creates a property label. * * @param propertyViewDescriptor * the property view descriptor. * @param propertyComponent * the property component. * @param translationProvider * the translation provider. * @param locale * the locale. * @return the created property label. */ protected JLabel createPropertyLabel(IPropertyViewDescriptor propertyViewDescriptor, JComponent propertyComponent, ITranslationProvider translationProvider, Locale locale) { JLabel propertyLabel = createJLabel(propertyViewDescriptor, false); String labelText = propertyViewDescriptor.getI18nName(translationProvider, locale); propertyLabel.setText(labelText); propertyLabel.setLabelFor(propertyComponent); configurePropertyLabel(propertyLabel, propertyViewDescriptor); return propertyLabel; }
/** * Creates a property label. * * @param propertyViewDescriptor * the property view descriptor. * @param propertyComponent * the property component. * @param translationProvider * the translation provider. * @param locale * the locale. * @return the created property label. */ protected RLabel createPropertyLabel(IPropertyViewDescriptor propertyViewDescriptor, RComponent propertyComponent, ITranslationProvider translationProvider, Locale locale) { RLabel propertyLabel = createRLabel(null, false); String labelText = propertyViewDescriptor.getI18nName(translationProvider, locale); propertyLabel.setLabel(labelText); configurePropertyLabel(propertyLabel, propertyViewDescriptor); return propertyLabel; }
SLabel propertyLabel = createSLabel(false); StringBuffer labelText = new StringBuffer( propertyViewDescriptor.getI18nName(translationProvider, locale)); if (propertyDescriptor.isMandatory() && !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) {
.getPropertyDescriptor(propertyName); StringBuffer columnName = new StringBuffer( columnViewDescriptor.getI18nName(actionHandler, locale)); if (propertyDescriptor.isMandatory()) { columnName.append("*");
column.setIdentifier(computeColumnIdentifier(viewDescriptor, columnViewDescriptor)); IPropertyDescriptor propertyDescriptor = rowDescriptor.getPropertyDescriptor(propertyName); String columnName = columnViewDescriptor.getI18nName(actionHandler, locale); if (!columnViewDescriptor.isReadOnly() && propertyDescriptor.isMandatory() && !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) {