Package com.vladsch.plugin.util.ui
Class ContentChooser<Data>
- java.lang.Object
-
- com.intellij.openapi.ui.DialogWrapper
-
- com.vladsch.plugin.util.ui.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.JComponentcreateCenterPanel()protected com.intellij.openapi.editor.EditorcreateIdeaEditor(java.lang.String text)voiddispose()protected voiddoOKAction()protected @Nullable javax.swing.JComponentgetAboveEditorComponent()java.util.List<Data>getAllContents()protected abstract java.util.List<Data>getContents()protected java.lang.StringgetDimensionServiceKey()protected javax.swing.IcongetListEntryIcon(Data data)javax.swing.JComponentgetPreferredFocusedComponent()intgetSelectedIndex()@org.jetbrains.annotations.NotNull int[]getSelectedIndices()@NotNull java.lang.StringgetSelectedText()protected @NotNull java.lang.StringgetShortStringFor(Data content, java.lang.String fullString)protected @NotNull java.lang.StringgetShortStringTooLongSuffix(Data content)protected abstract java.lang.StringgetStringRepresentationFor(Data content)protected voidlistItemDeleted()protected voidlistKeyPressed(java.awt.event.KeyEvent event)protected abstract voidremoveContentAt(Data content)voidsetContentIcon(@Nullable javax.swing.Icon icon)voidsetSelectedIndex(int index)voidsetSelectedIndices(int[] indices)voidsetSplitterOrientation(boolean vertical)voidupdateListContents(boolean focusList)protected voidupdateViewerForSelection(@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
-
-
-
-
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:
getPreferredFocusedComponentin classcom.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:
createCenterPanelin classcom.intellij.openapi.ui.DialogWrapper
-
removeContentAt
protected abstract void removeContentAt(Data content)
-
updateListContents
public void updateListContents(boolean focusList)
-
getDimensionServiceKey
protected java.lang.String getDimensionServiceKey()
- Overrides:
getDimensionServiceKeyin classcom.intellij.openapi.ui.DialogWrapper
-
doOKAction
protected void doOKAction()
- Overrides:
doOKActionin classcom.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:
disposein classcom.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()
-
-