Class ContentChooser<Data>


  • public abstract class ContentChooser<Data>
    extends com.intellij.openapi.ui.DialogWrapper
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.intellij.openapi.ui.DialogWrapper

        com.intellij.openapi.ui.DialogWrapper.CancelAction, com.intellij.openapi.ui.DialogWrapper.DialogStyle, com.intellij.openapi.ui.DialogWrapper.DialogWrapperAction, com.intellij.openapi.ui.DialogWrapper.DialogWrapperExitAction, com.intellij.openapi.ui.DialogWrapper.DoNotAskOption, com.intellij.openapi.ui.DialogWrapper.HelpAction, com.intellij.openapi.ui.DialogWrapper.IdeModalityType, com.intellij.openapi.ui.DialogWrapper.OkAction
    • Field Summary

      • Fields inherited from class com.intellij.openapi.ui.DialogWrapper

        CANCEL_EXIT_CODE, CLOSE_EXIT_CODE, DEFAULT_ACTION, DIALOG_CONTENT_PANEL_PROPERTY, ERROR_FOREGROUND_COLOR, FOCUSED_ACTION, IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY, myCancelAction, myCheckBoxDoNotShowDialog, myDisposable, myHelpAction, myOKAction, myPerformAction, myPreferredFocusedComponent, NEXT_USER_EXIT_CODE, OK_EXIT_CODE
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentChooser​(com.intellij.openapi.project.Project project, java.lang.String title, javax.swing.Icon icon, boolean useIdeaEditor)  
      ContentChooser​(com.intellij.openapi.project.Project project, java.lang.String title, javax.swing.Icon icon, boolean useIdeaEditor, boolean allowMultipleSelections)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.JComponent createCenterPanel()  
      protected com.intellij.openapi.editor.Editor createIdeaEditor​(java.lang.String text)  
      void dispose()  
      protected void doOKAction()  
      protected @Nullable javax.swing.JComponent getAboveEditorComponent()  
      java.util.List<Data> getAllContents()  
      protected abstract java.util.List<Data> getContents()  
      protected java.lang.String getDimensionServiceKey()  
      protected javax.swing.Icon getListEntryIcon​(Data data)  
      javax.swing.JComponent getPreferredFocusedComponent()  
      int getSelectedIndex()  
      @org.jetbrains.annotations.NotNull int[] getSelectedIndices()  
      @NotNull java.lang.String getSelectedText()  
      protected @NotNull java.lang.String getShortStringFor​(Data content, java.lang.String fullString)  
      protected @NotNull java.lang.String getShortStringTooLongSuffix​(Data content)  
      protected abstract java.lang.String getStringRepresentationFor​(Data content)  
      protected void listItemDeleted()  
      protected void listKeyPressed​(java.awt.event.KeyEvent event)  
      protected abstract void removeContentAt​(Data content)  
      void setContentIcon​(@Nullable javax.swing.Icon icon)  
      void setSelectedIndex​(int index)  
      void setSelectedIndices​(int[] indices)  
      void setSplitterOrientation​(boolean vertical)  
      void updateListContents​(boolean focusList)  
      protected void updateViewerForSelection​(@NotNull com.intellij.openapi.editor.Editor editor, @NotNull java.util.List<Data> allContents, @org.jetbrains.annotations.NotNull int[] selectedIndices)  
      • Methods inherited from class com.intellij.openapi.ui.DialogWrapper

        addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, continuousValidation, createActions, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createNorthPanel, createPeer, createPeer, createPeer, createPeer, createPeer, createRootLayout, createSouthAdditionalPanel, createSouthPanel, createTitlePane, disposeIfNeeded, doCancelAction, doCancelAction, doHelpAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, fitToScreen, getButton, getButtonMap, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDisposable, getDoNotShowMessage, getErrorTextAlignment, getExitCode, getHelpAction, getHelpId, getHorizontalStretch, getInitialLocation, getInitialSize, getLocation, getOKAction, getOwner, getPeer, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, init, initValidation, isAutoAdjustable, isDisposed, isModal, isModalProgress, isMoveHelpButtonLeft, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isTypeAheadEnabled, isVisible, layoutButtonsPanel, pack, performOKAction, postponeValidation, processDoNotAskOnOk, repaint, setAutoAdjustable, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setDoNotAskOption, setErrorInfoAll, setErrorText, setErrorText, setHelpTooltip, setHorizontalStretch, setInitialLocationCallback, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonMnemonic, setOKButtonText, setOKButtonTooltip, setResizable, setSize, setTitle, setUndecorated, setValidationDelay, setVerticalStretch, shouldAddErrorNearButtons, shouldCloseOnCross, show, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContentChooser

        public ContentChooser​(com.intellij.openapi.project.Project project,
                              java.lang.String title,
                              javax.swing.Icon icon,
                              boolean useIdeaEditor)
      • ContentChooser

        public ContentChooser​(com.intellij.openapi.project.Project project,
                              java.lang.String title,
                              javax.swing.Icon icon,
                              boolean useIdeaEditor,
                              boolean allowMultipleSelections)
    • Method Detail

      • setContentIcon

        public void setContentIcon​(@Nullable
                                   @Nullable javax.swing.Icon icon)
      • setSplitterOrientation

        public void setSplitterOrientation​(boolean vertical)
      • getPreferredFocusedComponent

        public javax.swing.JComponent getPreferredFocusedComponent()
        Overrides:
        getPreferredFocusedComponent in class com.intellij.openapi.ui.DialogWrapper
      • listKeyPressed

        protected void listKeyPressed​(java.awt.event.KeyEvent event)
      • listItemDeleted

        protected void listItemDeleted()
      • createCenterPanel

        protected javax.swing.JComponent createCenterPanel()
        Specified by:
        createCenterPanel in class com.intellij.openapi.ui.DialogWrapper
      • removeContentAt

        protected abstract void removeContentAt​(Data content)
      • updateListContents

        public void updateListContents​(boolean focusList)
      • getDimensionServiceKey

        protected java.lang.String getDimensionServiceKey()
        Overrides:
        getDimensionServiceKey in class com.intellij.openapi.ui.DialogWrapper
      • doOKAction

        protected void doOKAction()
        Overrides:
        doOKAction in class com.intellij.openapi.ui.DialogWrapper
      • updateViewerForSelection

        protected void updateViewerForSelection​(@NotNull
                                                @NotNull com.intellij.openapi.editor.Editor editor,
                                                @NotNull
                                                @NotNull java.util.List<Data> allContents,
                                                @NotNull
                                                @org.jetbrains.annotations.NotNull int[] selectedIndices)
      • getAboveEditorComponent

        @Nullable
        protected @Nullable javax.swing.JComponent getAboveEditorComponent()
      • createIdeaEditor

        protected com.intellij.openapi.editor.Editor createIdeaEditor​(java.lang.String text)
      • dispose

        public void dispose()
        Overrides:
        dispose in class com.intellij.openapi.ui.DialogWrapper
      • getShortStringFor

        @NotNull
        protected @NotNull java.lang.String getShortStringFor​(Data content,
                                                              java.lang.String fullString)
      • getShortStringTooLongSuffix

        @NotNull
        protected @NotNull java.lang.String getShortStringTooLongSuffix​(Data content)
      • getStringRepresentationFor

        protected abstract java.lang.String getStringRepresentationFor​(Data content)
      • getContents

        protected abstract java.util.List<Data> getContents()
      • getSelectedIndex

        public int getSelectedIndex()
      • setSelectedIndex

        public void setSelectedIndex​(int index)
      • setSelectedIndices

        public void setSelectedIndices​(int[] indices)
      • getSelectedIndices

        @NotNull
        public @org.jetbrains.annotations.NotNull int[] getSelectedIndices()
      • getAllContents

        public java.util.List<Data> getAllContents()
      • getListEntryIcon

        protected javax.swing.Icon getListEntryIcon​(@NotNull
                                                    Data data)
      • getSelectedText

        @NotNull
        public @NotNull java.lang.String getSelectedText()