Search in sources :

Example 1 with DetailsComponent

use of com.intellij.openapi.ui.DetailsComponent in project intellij-community by JetBrains.

the class ProjectConfigurable method createOptionsPanel.

@Override
public JComponent createOptionsPanel() {
    myDetailsComponent = new DetailsComponent(false, false);
    myDetailsComponent.setContent(myPanel);
    myDetailsComponent.setText(getBannerSlogan());
    //reload changed jdks
    myProjectJdkConfigurable.createComponent();
    return myDetailsComponent.getComponent();
}
Also used : DetailsComponent(com.intellij.openapi.ui.DetailsComponent)

Example 2 with DetailsComponent

use of com.intellij.openapi.ui.DetailsComponent in project android by JetBrains.

the class ProjectProfileSelectionDialog method createConflictsPanel.

@NotNull
private JComponent createConflictsPanel() {
    createConflictTree();
    myConflictDetails = new DetailsComponent();
    myConflictDetails.setText("Conflict Detail");
    myConflictDetails.setContent(createTreePanel(myConflictTree));
    removeEmptyBorder(myConflictDetails);
    createConflictsTable();
    myConflictsTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting()) {
                return;
            }
            showConflictDetail();
        }
    });
    Splitter splitter = new Splitter(true, .25f);
    splitter.setHonorComponentsMinimumSize(true);
    DetailsComponent details = new DetailsComponent();
    details.setText("Variant Selection Conflicts");
    details.setContent(ScrollPaneFactory.createScrollPane(myConflictsTable));
    removeEmptyBorder(details);
    splitter.setFirstComponent(details.getComponent());
    splitter.setSecondComponent(myConflictDetails.getComponent());
    return splitter;
}
Also used : DetailsComponent(com.intellij.openapi.ui.DetailsComponent) Splitter(com.intellij.openapi.ui.Splitter) ListSelectionEvent(javax.swing.event.ListSelectionEvent) ListSelectionListener(javax.swing.event.ListSelectionListener) NotNull(org.jetbrains.annotations.NotNull)

Example 3 with DetailsComponent

use of com.intellij.openapi.ui.DetailsComponent in project android by JetBrains.

the class ProjectProfileSelectionDialog method createProjectStructurePanel.

@NotNull
private JComponent createProjectStructurePanel() {
    createProjectStructureTree();
    DetailsComponent details = new DetailsComponent();
    details.setText("Project Structure");
    details.setContent(createTreePanel(myProjectStructureTree));
    removeEmptyBorder(details);
    return details.getComponent();
}
Also used : DetailsComponent(com.intellij.openapi.ui.DetailsComponent) NotNull(org.jetbrains.annotations.NotNull)

Example 4 with DetailsComponent

use of com.intellij.openapi.ui.DetailsComponent in project intellij-community by JetBrains.

the class IntentionSettingsPanel method initUi.

@Override
public void initUi() {
    myDetailsComponent = new DetailsComponent();
    myDetailsComponent.setContent(myDescriptionPanel);
}
Also used : DetailsComponent(com.intellij.openapi.ui.DetailsComponent)

Aggregations

DetailsComponent (com.intellij.openapi.ui.DetailsComponent)4 NotNull (org.jetbrains.annotations.NotNull)2 Splitter (com.intellij.openapi.ui.Splitter)1 ListSelectionEvent (javax.swing.event.ListSelectionEvent)1 ListSelectionListener (javax.swing.event.ListSelectionListener)1