private JLabel createPropertyLabel(IPropertyDescriptor propertyDescriptor, JComponent propertyComponent, Locale locale) { JLabel propertyLabel = createJLabel(); StringBuffer labelText = new StringBuffer(propertyDescriptor.getI18nName( getTranslationProvider(), locale)); if (propertyDescriptor.isMandatory()) { labelText.append("*"); propertyLabel.setForeground(Color.RED); } propertyLabel.setText(labelText.toString()); propertyLabel.setLabelFor(propertyComponent); return propertyLabel; }
private SLabel createPropertyLabel(IPropertyDescriptor propertyDescriptor, @SuppressWarnings("unused") SComponent propertyComponent, Locale locale) { SLabel propertyLabel = createSLabel(); StringBuffer labelText = new StringBuffer(propertyDescriptor.getI18nName( getTranslationProvider(), locale)); if (propertyDescriptor.isMandatory()) { labelText.append("*"); propertyLabel.setForeground(Color.RED); } propertyLabel.setText(labelText.toString()); return propertyLabel; }
private ULCLabel createPropertyLabel(IPropertyDescriptor propertyDescriptor, ULCComponent propertyComponent, Locale locale) { ULCLabel propertyLabel = createULCLabel(); StringBuffer labelText = new StringBuffer(propertyDescriptor.getI18nName( getTranslationProvider(), locale)); if (propertyDescriptor.isMandatory()) { labelText.append("*"); propertyLabel.setForeground(Color.red); } propertyLabel.setText(labelText.toString()); propertyLabel.setLabelFor(propertyComponent); return propertyLabel; }
.getPropertyDescriptor(propertyName); StringBuffer columnName = new StringBuffer(propertyDescriptor .getI18nName(getTranslationProvider(), locale)); if (propertyDescriptor.isMandatory()) { columnName.append("*");
.getPropertyDescriptor(propertyName); StringBuffer columnName = new StringBuffer(propertyDescriptor .getI18nName(getTranslationProvider(), locale)); if (propertyDescriptor.isMandatory()) { columnName.append("*");
.getPropertyDescriptor(propertyName); StringBuffer columnName = new StringBuffer(propertyDescriptor .getI18nName(getTranslationProvider(), locale)); if (propertyDescriptor.isMandatory()) { columnName.append("*");
RComponent peer = propertyView.getPeer(); if (propertyDescriptor != null && propertyDescriptor.getName() != null) { peer.setLabel(propertyDescriptor.getI18nName(actionHandler, locale));