// FIXME [VISTALL] support other borders?
private void bordersChanged() {
    JComponent component = (JComponent)toAWTComponent();
    component.setBorder(JBUI.Borders.empty());
    Collection<BorderInfo> borders = dataObject().getBorders();
    Map<BorderPosition, Integer> emptyBorders = new LinkedHashMap<>();
    for (BorderInfo border : borders) {
      if (border.getBorderStyle() == BorderStyle.EMPTY) {
        emptyBorders.put(border.getBorderPosition(), border.getWidth());
      }
    }
    if (!emptyBorders.isEmpty()) {
      component.setBorder(JBUI.Borders.empty(getBorderSize(emptyBorders, BorderPosition.TOP), getBorderSize(emptyBorders, BorderPosition.LEFT), getBorderSize(emptyBorders, BorderPosition.BOTTOM),
                                             getBorderSize(emptyBorders, BorderPosition.RIGHT)));
      return;
    }
    // FIXME [VISTALL] support other borders?
  }
return;
}
// FIXME [VISTALL] support other borders?
}
for (BorderInfo border : borders) {
if (border.getBorderStyle() == BorderStyle.EMPTY) {
emptyBorders.put(border.getBorderPosition(), border.getWidth());
}
}
if (!emptyBorders.isEmpty()) {
component.setBorder(JBUI.Borders.empty(getBorderSize(emptyBorders, BorderPosition.TOP), getBorderSize(emptyBorders, BorderPosition.LEFT), getBorderSize(emptyBorders, BorderPosition.BOTTOM),
getBorderSize(emptyBorders, BorderPosition.RIGHT)));
return;
}
// FIXME [VISTALL] support other borders?
}
private void bordersChanged() {
JComponent component = (JComponent)toAWTComponent();
component.setBorder(JBUI.Borders.empty());
Collection<BorderInfo> borders = dataObject().getBorders();
Map<BorderPosition, Integer> emptyBorders = new LinkedHashMap<>();
for (BorderInfo border : borders) {
if (border.getBorderStyle() == BorderStyle.EMPTY) {
emptyBorders.put(border.getBorderPosition(), border.getWidth());
}
}
if (!emptyBorders.isEmpty()) {
component.setBorder(JBUI.Borders.empty(getBorderSize(emptyBorders, BorderPosition.TOP), getBorderSize(emptyBorders, BorderPosition.LEFT), getBorderSize(emptyBorders, BorderPosition.BOTTOM),
getBorderSize(emptyBorders, BorderPosition.RIGHT)));
return;
}
// FIXME [VISTALL] support other borders?
}