Box hBox = Box.createHorizontalBox();
hBox.setOpaque(false);
if (implementations != null && !implementations.isEmpty()) {
FlatButton impButton =
new FlatButton(new ImplementationSelectionAction<>(implementations,
this, editor));
hBox.add(impButton);
}
if ((v != null || editor.canHandleNull())
&& editor.supportsExternalEditing()) {
final FlatButton externalButton = new FlatButton();
if (editor.asDialog()) {
externalButton.addActionListener(new ExternalButtonWithDialogListener(
row, table, column));
externalButton.setText("...");
} else {
externalButton.addActionListener(new ExternalButtonPopupListener(row,
column, table, externalButton));
Icon icon = IconManager.getIcon(IconIdentifier.RIGHT_SMALL, ">");
externalButton.setIcon(icon);
}
hBox.add(externalButton);
// in case there is now inplace editor use the paintcomponent if
// there is