public CompositeActiveComponent(@NotNull ActiveComponent... components) { myComponents = components; myComponent = new JPanel(new FlowLayout(FlowLayout.CENTER, 2, 4)); myComponent.setBorder(null); myComponent.setOpaque(false); for (ActiveComponent component : components) { myComponent.add(component.getComponent()); } }
public CompositeActiveComponent(@NotNull ActiveComponent... components) { myComponents = components; myComponent = new JPanel(new FlowLayout()); myComponent.setOpaque(false); for (ActiveComponent component : components) { myComponent.add(component.getComponent()); } }
public CompositeActiveComponent(@Nonnull ActiveComponent... components) { myComponents = components; myComponent = new JPanel(new FlowLayout()); myComponent.setOpaque(false); for (ActiveComponent component : components) { myComponent.add(component.getComponent()); } }
@NotNull ComponentPopupBuilder setCommandButton(@NotNull ActiveComponent commandButton);
@Override @NotNull public ComponentPopupBuilder setCommandButton(@NotNull ActiveComponent button) { myCommandButton = button; return this; }
@Override public void setActive(boolean active) { for (ActiveComponent component : myComponents) { component.setActive(active); } }
public PopupChooserBuilder setCommandButton(@NotNull ActiveComponent commandButton) { myCommandButton = commandButton; return this; }
public PopupChooserBuilder setCommandButton(@Nonnull ActiveComponent commandButton) { myCommandButton = commandButton; return this; }
@Nonnull ComponentPopupBuilder setCommandButton(@Nonnull ActiveComponent commandButton);
@Override @Nonnull public ComponentPopupBuilder setCommandButton(@Nonnull ActiveComponent button) { myCommandButton = button; return this; }