private JLabel createFormPropertyLabel(IActionHandler actionHandler, Locale locale, IPropertyViewDescriptor propertyViewDescriptor, IPropertyDescriptor propertyDescriptor, IView<JComponent> propertyView, boolean forbidden) { JLabel propertyLabel = createPropertyLabel(propertyViewDescriptor, propertyView.getPeer(), actionHandler, locale); if (!propertyViewDescriptor.isReadOnly() && propertyDescriptor != null && propertyDescriptor.isMandatory() && !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) { if (propertyViewDescriptor.getLabelForeground() == null) { propertyLabel.setForeground(createColor(getFormLabelMandatoryPropertyColorHex())); } propertyLabel.setText(decorateMandatoryPropertyLabel(propertyLabel.getText())); } if (forbidden) { propertyLabel.setText(" "); propertyLabel.setIcon(null); } return propertyLabel; }
private void configurePropertyLabel(JLabel propertyLabel, IPropertyViewDescriptor propertyViewDescriptor) { if (propertyViewDescriptor.getLabelFont() != null) { propertyLabel.setFont(createFont(propertyViewDescriptor.getLabelFont(), propertyLabel.getFont())); } if (propertyViewDescriptor.getLabelForeground() != null) { propertyLabel.setForeground(createColor(propertyViewDescriptor.getLabelForeground())); } if (propertyViewDescriptor.getLabelBackground() != null) { propertyLabel.setBackground(createColor(propertyViewDescriptor.getLabelBackground())); } if (propertyViewDescriptor.getIcon() != null) { propertyLabel.setIcon( getIconFactory().getIcon(propertyViewDescriptor.getIcon(), getIconFactory().getTinyIconSize())); } }
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())); } }
propertyLabel.getFont())); if (propertyViewDescriptor.getLabelForeground() != null) { propertyLabel.setForeground(createColor(propertyViewDescriptor .getLabelForeground()));
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; }
if (!columnViewDescriptor.isReadOnly() && propertyDescriptor.isMandatory() && !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) { if (columnViewDescriptor.getLabelForeground() == null) { headerLabel.setForeground(getTableHeaderMandatoryPropertyColorHex());
configurePropertyLabel(headerRenderer, columnViewDescriptor); if (propertyDescriptor.isMandatory() && !(propertyDescriptor instanceof IBooleanPropertyDescriptor)) { if (columnViewDescriptor.getLabelForeground() == null) { headerRenderer.setForeground(createColor(getTableHeaderMandatoryPropertyColorHex()));
dest.setLabelBackground(source.getLabelBackground()); dest.setLabelFont(source.getLabelFont()); dest.setLabelForeground(source.getLabelForeground()); dest.setModelDescriptor(source.getModelDescriptor()); dest.setName(source.getName());