public class ListPopupImpl extends WizardPopup implements ListPopup, NextStepHandler
AbstractPopup.MyContentPanelDisposable.ParentElementFilter.Active<T>, ElementFilter.Listener<T>myChild, myStep, STEP_X_PADDINGFIRST_TIME_SIZE, myOk, myOwner, mySpeedSearch, mySpeedSearchPatternField, SHOW_HINTS| Constructor and Description |
|---|
ListPopupImpl(ListPopupStep aStep)
Deprecated.
|
ListPopupImpl(ListPopupStep aStep,
int maxRowCount)
Deprecated.
|
ListPopupImpl(Project project,
ListPopupStep aStep) |
ListPopupImpl(Project project,
WizardPopup aParent,
ListPopupStep aStep,
java.lang.Object parentValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener) |
protected void |
afterShowSync() |
protected boolean |
beforeShow() |
protected javax.swing.JComponent |
createContent() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
disposeChildren() |
protected javax.swing.ActionMap |
getActionMap() |
protected java.awt.Rectangle |
getCellBounds(int i) |
protected javax.swing.InputMap |
getInputMap() |
javax.swing.JList |
getList() |
protected javax.swing.ListCellRenderer |
getListElementRenderer() |
protected ListPopupModel |
getListModel() |
ListPopupStep<java.lang.Object> |
getListStep()
Returns the popup step currently displayed in the popup.
|
protected javax.swing.JComponent |
getPreferredFocusableComponent() |
protected int |
getSelectedIndex() |
java.lang.Object[] |
getSelectedValues() |
void |
goBack() |
protected boolean |
handleFinalChoices(java.awt.event.MouseEvent e,
java.lang.Object selectedValue,
ListPopupStep<java.lang.Object> listStep) |
void |
handleNextStep(PopupStep nextStep,
java.lang.Object parentValue) |
boolean |
handleNextStep(PopupStep nextStep,
java.lang.Object parentValue,
java.awt.event.InputEvent e) |
void |
handleSelect(boolean handleFinalChoices)
Handles the selection of the currently focused item in the popup step.
|
void |
handleSelect(boolean handleFinalChoices,
java.awt.event.InputEvent e) |
protected boolean |
isActionClick(java.awt.event.MouseEvent e) |
boolean |
isModalContext() |
protected void |
onAutoSelectionTimer() |
protected void |
onChildSelectedFor(java.lang.Object value) |
protected void |
onSelectByMnemonic(java.lang.Object value) |
protected void |
onSpeedSearchPatternChanged() |
protected void |
process(java.awt.event.KeyEvent aEvent) |
void |
setHandleAutoSelectionBeforeShow(boolean autoHandle)
If default selection is set, then handleSelect is invoked without showing a popup
|
void |
setMaxRowCount(int maxRowCount) |
protected boolean |
shouldUseStatistics() |
void |
showInBestPositionFor(Editor editor)
Shows the popup near the cursor location in the specified editor.
|
void |
showUnderneathOfLabel(javax.swing.JLabel label) |
actionPerformed, afterShow, cancel, createContentPanel, createPopup, createScrollPane, dispatch, disposeAllParents, getActionForKeyStroke, getBounds, getParent, getSpeedSearch, getStep, isCancelKeyEnabled, isResizable, notifyParentOnChildSelection, registerAction, registerAction, restartTimer, setFinalRunnable, setOk, setParentValue, shouldBeShowing, show, stopTimeraddListener, addPopupListener, addResizeListener, cancel, canClose, canShow, closeOk, dispatchKeyEvent, focusPreferredComponent, getBestPositionFor, getCenterOf, getChildPopups, getComponent, getConsumedScreenBounds, getContent, getDimensionServiceKey, getFooterPreferredSize, getHeaderPreferredSize, getLocationOnScreen, getOwner, getPopupBorder, getPopupWindow, getProject, getSize, getTitle, getUnderlyingWindow, getUserData, init, isBusy, isCloseRequest, isDisposed, isFocused, isFocused, isNativePopup, isPersistent, isVisible, moveTo, moveToFitScreen, pack, prepareToShow, removeListener, requestFocus, setAdText, setAdText, setCaption, setDataProvider, setDimensionServiceKey, setHeaderComponent, setLocation, setLocation, setMinimumSize, setOkHandler, setRequestFocus, setShowHints, setSize, setSize, setSpeedSearchAlwaysShown, setUiVisible, setUserData, setWarning, show, show, showCenteredInCurrentWindow, showInBestPositionFor, showInCenterOf, showInFocusCenter, showInScreenCoordinates, showUnderneathOf, storeDimensionSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, cancel, cancel, canClose, canShow, closeOk, dispatchKeyEvent, getBestPositionFor, getContent, getLocationOnScreen, getOwner, getSize, getUserData, isCancelKeyEnabled, isDisposed, isFocused, isNativePopup, isPersistent, isVisible, moveToFitScreen, pack, removeListener, setAdText, setCaption, setDataProvider, setFinalRunnable, setLocation, setMinimumSize, setRequestFocus, setSize, setUiVisible, show, show, showCenteredInCurrentWindow, showInBestPositionFor, showInCenterOf, showInFocusCenter, showInScreenCoordinates, showUnderneathOf@Deprecated public ListPopupImpl(ListPopupStep aStep, int maxRowCount)
ListPopupImpl(Project, ListPopupStep) + setMaxRowCount(int)@Deprecated public ListPopupImpl(ListPopupStep aStep)
ListPopupImpl(Project, ListPopupStep)public ListPopupImpl(Project project, ListPopupStep aStep)
public ListPopupImpl(Project project, WizardPopup aParent, ListPopupStep aStep, java.lang.Object parentValue)
public void setMaxRowCount(int maxRowCount)
public void showUnderneathOfLabel(javax.swing.JLabel label)
protected ListPopupModel getListModel()
protected boolean beforeShow()
beforeShow in class AbstractPopuppublic void goBack()
goBack in class WizardPopupprotected void afterShowSync()
afterShowSync in class AbstractPopupprotected boolean shouldUseStatistics()
public javax.swing.JList getList()
protected javax.swing.JComponent createContent()
createContent in class WizardPopupprotected javax.swing.ActionMap getActionMap()
getActionMap in class WizardPopupprotected javax.swing.InputMap getInputMap()
getInputMap in class WizardPopupprotected javax.swing.ListCellRenderer getListElementRenderer()
public ListPopupStep<java.lang.Object> getListStep()
ListPopupgetListStep in interface ListPopuppublic void dispose()
Disposabledispose in interface Disposabledispose in class WizardPopupprotected int getSelectedIndex()
protected java.awt.Rectangle getCellBounds(int i)
public void disposeChildren()
disposeChildren in class WizardPopupprotected void onAutoSelectionTimer()
onAutoSelectionTimer in class WizardPopuppublic void handleSelect(boolean handleFinalChoices)
ListPopuphandleSelect in interface ListPopuphandleFinalChoices - If true, the action of the focused item is always executed
(as if Enter was pressed). If false, and the focused item has a submenu, the submenu
is opened (as if the right arrow key was pressed).public void handleSelect(boolean handleFinalChoices,
java.awt.event.InputEvent e)
handleSelect in interface ListPopuppublic void handleNextStep(PopupStep nextStep,
java.lang.Object parentValue)
handleNextStep in interface NextStepHandlerpublic boolean handleNextStep(PopupStep nextStep,
java.lang.Object parentValue,
java.awt.event.InputEvent e)
public void addListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener)
addListSelectionListener in interface ListPopupprotected boolean isActionClick(java.awt.event.MouseEvent e)
public java.lang.Object[] getSelectedValues()
protected boolean handleFinalChoices(java.awt.event.MouseEvent e,
java.lang.Object selectedValue,
ListPopupStep<java.lang.Object> listStep)
protected void process(java.awt.event.KeyEvent aEvent)
process in class WizardPopupprotected void onSpeedSearchPatternChanged()
onSpeedSearchPatternChanged in class AbstractPopupprotected void onSelectByMnemonic(java.lang.Object value)
onSelectByMnemonic in class WizardPopupprotected javax.swing.JComponent getPreferredFocusableComponent()
getPreferredFocusableComponent in class WizardPopupprotected void onChildSelectedFor(java.lang.Object value)
onChildSelectedFor in class WizardPopuppublic void setHandleAutoSelectionBeforeShow(boolean autoHandle)
ListPopupsetHandleAutoSelectionBeforeShow in interface ListPopuppublic boolean isModalContext()
isModalContext in interface JBPopupisModalContext in class AbstractPopuppublic void showInBestPositionFor(Editor editor)
JBPopupshowInBestPositionFor in interface JBPopupshowInBestPositionFor in class AbstractPopupeditor - the editor relative to which the popup should be displayed.JBPopupFactory.guessBestPopupLocation(Editor)