Esempio n. 1
0
 protected MultilineLabel createMultilineLabel(String text, Color background) {
   MultilineLabel label = new MultilineLabel(text);
   label.setBackground(background);
   Border emptyBorder = new EmptyBorder(PropertyCardsConfig.labelInsets);
   label.setBorder(emptyBorder);
   return label;
 }
Esempio n. 2
0
  /**
   * Creates and returns a styled label for the table body.
   *
   * @param text
   * @return
   */
  protected MultilineLabel createBodyLabel(String text) {
    MultilineLabel label = createMultilineLabel(text, PropertyCardsConfig.bodyLabelBgColor);
    label.setFocusable(true);

    return label;
  }