public class ListPopupImpl extends WizardPopup implements ListPopup, NextStepHandler
AbstractPopup.MyContentPanel
Disposable.Parent
ElementFilter.Active<T>, ElementFilter.Listener<T>
myChild, myStep, STEP_X_PADDING
FIRST_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, stopTimer
addListener, 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, storeDimensionSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, 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 AbstractPopup
public void goBack()
goBack
in class WizardPopup
protected void afterShowSync()
afterShowSync
in class AbstractPopup
protected boolean shouldUseStatistics()
public javax.swing.JList getList()
protected javax.swing.JComponent createContent()
createContent
in class WizardPopup
protected javax.swing.ActionMap getActionMap()
getActionMap
in class WizardPopup
protected javax.swing.InputMap getInputMap()
getInputMap
in class WizardPopup
protected javax.swing.ListCellRenderer getListElementRenderer()
public ListPopupStep<java.lang.Object> getListStep()
ListPopup
getListStep
in interface ListPopup
public void dispose()
Disposable
dispose
in interface Disposable
dispose
in class WizardPopup
protected int getSelectedIndex()
protected java.awt.Rectangle getCellBounds(int i)
public void disposeChildren()
disposeChildren
in class WizardPopup
protected void onAutoSelectionTimer()
onAutoSelectionTimer
in class WizardPopup
public void handleSelect(boolean handleFinalChoices)
ListPopup
handleSelect
in interface ListPopup
handleFinalChoices
- 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 ListPopup
public void handleNextStep(PopupStep nextStep, java.lang.Object parentValue)
handleNextStep
in interface NextStepHandler
public boolean handleNextStep(PopupStep nextStep, java.lang.Object parentValue, java.awt.event.InputEvent e)
public void addListSelectionListener(javax.swing.event.ListSelectionListener listSelectionListener)
addListSelectionListener
in interface ListPopup
protected 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 WizardPopup
protected void onSpeedSearchPatternChanged()
onSpeedSearchPatternChanged
in class AbstractPopup
protected void onSelectByMnemonic(java.lang.Object value)
onSelectByMnemonic
in class WizardPopup
protected javax.swing.JComponent getPreferredFocusableComponent()
getPreferredFocusableComponent
in class WizardPopup
protected void onChildSelectedFor(java.lang.Object value)
onChildSelectedFor
in class WizardPopup
public void setHandleAutoSelectionBeforeShow(boolean autoHandle)
ListPopup
setHandleAutoSelectionBeforeShow
in interface ListPopup
public boolean isModalContext()
isModalContext
in interface JBPopup
isModalContext
in class AbstractPopup
public void showInBestPositionFor(Editor editor)
JBPopup
showInBestPositionFor
in interface JBPopup
showInBestPositionFor
in class AbstractPopup
editor
- the editor relative to which the popup should be displayed.JBPopupFactory.guessBestPopupLocation(Editor)