private void setLabel(Label label, String value, Component associatedComponent) { label.setValue(value); label.setVisible(value != null && !value.isEmpty()); if (associatedComponent != null) { associatedComponent.setVisible(label.isVisible()); } }
private void setLabel(Label label, String value, Component associatedComponent) { label.setValue(value); label.setVisible(value != null && !value.isEmpty()); if (associatedComponent != null) { associatedComponent.setVisible(label.isVisible()); } }