private String configurableExpandedPropertyKey(@NotNull Configurable configurable) { String keyName = "configurable " + configurable.getDisplayName() + " is expanded".toLowerCase(Locale.US); return StringUtil.replaceChar(keyName, ' ', '.'); }
private String configurableExpandedPropertyKey(@NotNull Configurable configurable) { String keyName = "configurable " + configurable.getDisplayName() + " is expanded".toLowerCase(Locale.US); return StringUtil.replaceChar(keyName, ' ', '.'); }
String displayName = ((Configurable)configurable).getDisplayName(); ListenableHideableDecorator decorator = new ListenableHideableDecorator(hideablePanel, displayName, configurableComponent); decorator.addListener(new MyHideableDecoratorListener(layoutManager, hideablePanel,
String displayName = ((Configurable) configurable).getDisplayName(); ListenableHideableDecorator decorator = new ListenableHideableDecorator(hideablePanel, displayName, configurableComponent);
@Nullable @Override public JComponent createComponent() { if (myConfigurables.size() == 1) { return myConfigurables.get(0).createComponent(); } JBTabbedPane tabbedPane = new JBTabbedPane() { @NotNull @Override protected Insets getInsetsForTabComponent() { return JBUI.emptyInsets(); } }; myConfigurables.forEach(configurable -> { JComponent configurableComponent = configurable.createComponent(); JBScrollPane scrollPane = new JBScrollPane(configurableComponent, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane.setBorder(new JBEmptyBorder(JBUI.emptyInsets())); tabbedPane.add(configurable.getDisplayName(), scrollPane); }); return tabbedPane; }