public class JdkComboBox extends SdkComboBoxBase<JdkComboBox.JdkComboBoxItem>
Modifier and Type | Class and Description |
---|---|
static class |
JdkComboBox.ActualJdkComboBoxItem |
static class |
JdkComboBox.JdkComboBoxItem |
static class |
JdkComboBox.NoneJdkComboBoxItem |
static class |
JdkComboBox.ProjectJdkComboBoxItem |
static class |
JdkComboBox.SuggestedJdkItem
Deprecated.
this type is never visible from the
getSelectedItem() method,
it is kept here for binary compatibility |
javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JComboBox.KeySelectionManager
javax.swing.JComponent.AccessibleJComponent
myModel
myPaintingNow, TABLE_CELL_EDITOR_PROPERTY
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier and Type | Method and Description |
---|---|
void |
firePopupMenuWillBecomeVisible() |
static Condition<Sdk> |
getSdkFilter(Condition<? super SdkTypeId> filter) |
JdkComboBox.JdkComboBoxItem |
getSelectedItem() |
Sdk |
getSelectedJdk() |
javax.swing.JButton |
getSetUpButton()
Deprecated.
the popup shown by the SetUp button is now included
directly into the popup, you may remove the button from your UI,
see
setSetupButton(JButton, Project, ProjectSdksModel, JdkComboBoxItem, Condition, boolean)
for more details |
void |
insertItemAt(JdkComboBox.JdkComboBoxItem item,
int index)
Deprecated.
Use the
JdkComboBox API to manage shown items,
this call is ignored |
protected void |
onModelUpdated(SdkListModel model) |
void |
reloadModel(JdkComboBox.JdkComboBoxItem firstItem,
Project project)
Deprecated.
use
SdkComboBoxBase.reloadModel() , you may also need to call
SdkComboBoxBase.showNoneSdkItem() or SdkComboBoxBase.showProjectSdkItem() once |
void |
setEditButton(javax.swing.JButton editButton,
Project project,
java.util.function.Supplier<? extends Sdk> retrieveJDK) |
void |
setSelectedItem(java.lang.Object anObject) |
void |
setSelectedJdk(Sdk jdk) |
void |
setSetupButton(javax.swing.JButton setUpButton,
Project project,
ProjectSdksModel jdksModel,
JdkComboBox.JdkComboBoxItem firstItem,
Condition<? super Sdk> additionalSetup,
boolean moduleJdkSetup)
Deprecated.
Use the overloaded constructor to pass these parameters directly to
that class. The is no longer used, the JdkComboBox shows
all the needed actions in the popup. The button will be made invisible.
|
void |
setSetupButton(javax.swing.JButton setUpButton,
Project project,
ProjectSdksModel jdksModel,
JdkComboBox.JdkComboBoxItem firstItem,
Condition<? super Sdk> additionalSetup,
java.lang.String actionGroupTitle)
Deprecated.
Use the overloaded constructor to pass these parameters directly to
that class. The is no longer used, the JdkComboBox shows
all the needed actions in the popup. The button will be made invisible.
|
addItem, reloadModel, removeAllItems, removeItem, removeItemAt, setInvalidJdk, showInvalidSdkItem, showNoneSdkItem, showProjectSdkItem
addNotify, eventDispatched, getMinimumSize, getPopup, getPreferredSize, initBrowsableEditor, isSwingPopup, paint, registerTableCellEditor, registerTableCellEditor, removeNotify, setEditor, setKeySelectionManager, setMinimumAndPreferredWidth, setPopupVisible, setSwingPopup
getMinimumPopupWidth, getMinLength, setMinLength, setRenderer
actionPerformed, actionPropertyChanged, addActionListener, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedObjects, getUI, getUIClassID, hidePopup, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyBinding, processKeyEvent, removeActionListener, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEnabled, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPrototypeDisplayValue, setSelectedIndex, setUI, showPopup, updateUI
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
@Deprecated public JdkComboBox(ProjectSdksModel jdkModel)
setSetupButton(javax.swing.JButton, com.intellij.openapi.project.Project, com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel, com.intellij.openapi.roots.ui.configuration.JdkComboBox.JdkComboBoxItem, com.intellij.openapi.util.Condition<? super com.intellij.openapi.projectRoots.Sdk>, boolean)
methods are deprecated, use the
more specific constructor to pass all parameters@Deprecated public JdkComboBox(ProjectSdksModel jdkModel, Condition<? super SdkTypeId> filter)
setSetupButton(javax.swing.JButton, com.intellij.openapi.project.Project, com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel, com.intellij.openapi.roots.ui.configuration.JdkComboBox.JdkComboBoxItem, com.intellij.openapi.util.Condition<? super com.intellij.openapi.projectRoots.Sdk>, boolean)
methods are deprecated, use the
more specific constructor to pass all parameters@Deprecated public JdkComboBox(ProjectSdksModel jdkModel, Condition<? super SdkTypeId> sdkTypeFilter, Condition<? super Sdk> filter, Condition<? super SdkTypeId> creationFilter, boolean addSuggestedItems)
setSetupButton(javax.swing.JButton, com.intellij.openapi.project.Project, com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel, com.intellij.openapi.roots.ui.configuration.JdkComboBox.JdkComboBoxItem, com.intellij.openapi.util.Condition<? super com.intellij.openapi.projectRoots.Sdk>, boolean)
methods are deprecated, use the
more specific constructor to pass all parameters
The is ignored (it was not actively used) and
it is no longer possible to have JdkComboBox.SuggestedJdkItem
as a selected
item of that ComboBox. The implementation will take care about turning a
suggested SDKs into Sdk
spublic JdkComboBox(Project project, ProjectSdksModel sdkModel, Condition<? super SdkTypeId> sdkTypeFilter, Condition<? super Sdk> sdkFilter, Condition<? super SdkTypeId> creationFilter, Consumer<? super Sdk> onNewSdkAdded)
project
- current project (if any)sdkModel
- the sdks modelsdkTypeFilter
- sdk types filter predicate to showsdkFilter
- filters Sdk instances that are listed, it implicitly includes the creationFilter
- a filter of SdkType that allowed to create a new Sdk with that controlonNewSdkAdded
- a callback that is executed once a new Sdk is added to the listprotected void onModelUpdated(SdkListModel model)
onModelUpdated
in class SdkComboBoxBase<JdkComboBox.JdkComboBoxItem>
@Deprecated public void setSetupButton(javax.swing.JButton setUpButton, Project project, ProjectSdksModel jdksModel, JdkComboBox.JdkComboBoxItem firstItem, Condition<? super Sdk> additionalSetup, boolean moduleJdkSetup)
@Deprecated public void setSetupButton(javax.swing.JButton setUpButton, Project project, ProjectSdksModel jdksModel, JdkComboBox.JdkComboBoxItem firstItem, Condition<? super Sdk> additionalSetup, java.lang.String actionGroupTitle)
public void setEditButton(javax.swing.JButton editButton, Project project, java.util.function.Supplier<? extends Sdk> retrieveJDK)
@Deprecated public javax.swing.JButton getSetUpButton()
setSetupButton(JButton, Project, ProjectSdksModel, JdkComboBoxItem, Condition, boolean)
for more detailspublic JdkComboBox.JdkComboBoxItem getSelectedItem()
getSelectedItem
in class javax.swing.JComboBox<JdkComboBox.JdkComboBoxItem>
public Sdk getSelectedJdk()
public void setSelectedJdk(Sdk jdk)
@Deprecated public void reloadModel(JdkComboBox.JdkComboBoxItem firstItem, Project project)
SdkComboBoxBase.reloadModel()
, you may also need to call
SdkComboBoxBase.showNoneSdkItem()
or SdkComboBoxBase.showProjectSdkItem()
oncepublic void firePopupMenuWillBecomeVisible()
firePopupMenuWillBecomeVisible
in class javax.swing.JComboBox<JdkComboBox.JdkComboBoxItem>
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in class javax.swing.JComboBox<JdkComboBox.JdkComboBoxItem>
@Deprecated public void insertItemAt(JdkComboBox.JdkComboBoxItem item, int index)
JdkComboBox
API to manage shown items,
this call is ignoredinsertItemAt
in class SdkComboBoxBase<JdkComboBox.JdkComboBoxItem>