private RLabel createFormPropertyLabel(IActionHandler actionHandler, Locale locale, IPropertyViewDescriptor propertyViewDescriptor, IPropertyDescriptor propertyDescriptor, IView<RComponent> propertyView, boolean forbidden) { RLabel propertyLabel = createPropertyLabel(propertyViewDescriptor, propertyView.getPeer(), actionHandler, locale); if (!propertyViewDescriptor.isReadOnly() && propertyDescriptor != null && propertyDescriptor.isMandatory() && !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) { if (propertyViewDescriptor.getLabelForeground() == null) { propertyLabel.setForeground(getFormLabelMandatoryPropertyColorHex()); } propertyLabel.setLabel(decorateMandatoryPropertyLabel(propertyLabel.getLabel())); } if (forbidden) { propertyLabel.setLabel(" "); propertyLabel.setIcon(null); } return propertyLabel; }
private void configurePropertyLabel(RLabel propertyLabel, IPropertyViewDescriptor propertyViewDescriptor) { if (propertyViewDescriptor.getLabelFont() != null) { propertyLabel.setFont(createFont(propertyViewDescriptor.getLabelFont())); } if (propertyViewDescriptor.getLabelForeground() != null) { propertyLabel.setForeground(propertyViewDescriptor.getLabelForeground()); } if (propertyViewDescriptor.getLabelBackground() != null) { propertyLabel.setBackground(propertyViewDescriptor.getLabelBackground()); } if (propertyViewDescriptor.getIcon() != null) { propertyLabel.setIcon( getIconFactory().getIcon(propertyViewDescriptor.getIcon(), getIconFactory().getTinyIconSize())); } }
&& !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) { if (columnViewDescriptor.getLabelForeground() == null) { headerLabel.setForeground(getTableHeaderMandatoryPropertyColorHex());