public class ChooseByNamePopup extends ChooseByNameBase implements ChooseByNamePopupComponent, Disposable
ChooseByNameBase.JPanelProvider, ChooseByNameBase.MyTextField
ChooseByNamePopupComponent.Callback, ChooseByNamePopupComponent.MultiElementsCallback
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static Key<ChooseByNamePopup> |
CHOOSE_BY_NAME_POPUP_IN_PROJECT_KEY |
static Key<java.lang.String> |
CURRENT_SEARCH_PATTERN |
static java.util.regex.Pattern |
patternToDetectAnonymousClasses |
EXTRA_ELEM, myActionListener, myAlarm, myCheckBox, myDropdownPopup, myList, myModel, myProject, myProvider, myTextField, TEMPORARILY_FOCUSABLE_COMPONENT_KEY
Modifier | Constructor and Description |
---|---|
protected |
ChooseByNamePopup(Project project,
ChooseByNameModel model,
ChooseByNameItemProvider provider,
ChooseByNamePopup oldPopup,
java.lang.String predefinedText,
boolean mayRequestOpenInCurrentWindow,
int initialIndex) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseClickListener(java.awt.event.MouseListener listener) |
java.util.List<java.lang.Object> |
calcPopupElements(java.lang.String text,
boolean checkboxState) |
void |
close(boolean isOk) |
static ChooseByNamePopup |
createPopup(Project project,
ChooseByNameModel model,
ChooseByNameItemProvider provider) |
static ChooseByNamePopup |
createPopup(Project project,
ChooseByNameModel model,
ChooseByNameItemProvider provider,
java.lang.String predefinedText) |
static ChooseByNamePopup |
createPopup(Project project,
ChooseByNameModel model,
ChooseByNameItemProvider provider,
java.lang.String predefinedText,
boolean mayRequestOpenInCurrentWindow,
int initialIndex) |
static ChooseByNamePopup |
createPopup(Project project,
ChooseByNameModel model,
PsiElement context) |
static ChooseByNamePopup |
createPopup(Project project,
ChooseByNameModel model,
PsiElement context,
java.lang.String predefinedText) |
static ChooseByNamePopup |
createPopup(Project project,
ChooseByNameModel model,
PsiElement context,
java.lang.String predefinedText,
boolean mayRequestOpenInCurrentWindow,
int initialIndex) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.lang.String |
getAdText() |
int |
getColumnPosition() |
java.lang.String |
getEnteredText() |
int |
getLinePosition() |
java.lang.String |
getMemberPattern() |
java.lang.String |
getPathToAnonymous() |
int |
getSelectedIndex() |
java.lang.Object |
getSelectionByPoint(java.awt.Point point) |
static java.lang.String |
getTransformedPattern(java.lang.String pattern,
ChooseByNameModel model) |
protected void |
hideList() |
protected void |
initUI(ChooseByNamePopupComponent.Callback callback,
ModalityState modalityState,
boolean allowMultipleSelection) |
protected boolean |
isCheckboxVisible() |
protected boolean |
isCloseByFocusLost() |
boolean |
isOpenInCurrentWindowRequested() |
protected boolean |
isShowListForEmptyPattern() |
void |
registerAction(java.lang.String aActionName,
javax.swing.KeyStroke keyStroke,
javax.swing.Action aAction) |
void |
repaintList() |
void |
repaintListImmediate() |
void |
setAdText(java.lang.String adText) |
void |
setShowListForEmptyPattern(boolean showListForEmptyPattern) |
protected void |
showList() |
java.lang.String |
transformPattern(java.lang.String pattern)
Transforms text entered by the user in the dialog into the search pattern (for example, removes irrelevant suffixes like "line ...")
|
calcSelectedIndex, canShowListForEmptyPattern, checkDisposed, chosenElementMightChange, closeForbidden, doClose, filter, getChosenElement, getChosenElements, getMaximumListSizeLimit, getModel, getNames, getProject, getProvider, getTextField, getTrimmedText, hasPostponedAction, invoke, isClosedByShiftEnter, isSearchInAnyPlace, rebuildList, scheduleCalcElements, setAlwaysHasMore, setCheckBoxShortcut, setDisposed, setFindUsagesTitle, setListSizeIncreasing, setMaximumListSizeLimit, setSearchInAnyPlace, setToolArea, showTextFieldPanel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChosenElement, invoke
public static final Key<ChooseByNamePopup> CHOOSE_BY_NAME_POPUP_IN_PROJECT_KEY
public static final Key<java.lang.String> CURRENT_SEARCH_PATTERN
public static final java.util.regex.Pattern patternToDetectAnonymousClasses
protected ChooseByNamePopup(Project project, ChooseByNameModel model, ChooseByNameItemProvider provider, ChooseByNamePopup oldPopup, java.lang.String predefinedText, boolean mayRequestOpenInCurrentWindow, int initialIndex)
public java.lang.String getEnteredText()
public int getSelectedIndex()
protected void initUI(ChooseByNamePopupComponent.Callback callback, ModalityState modalityState, boolean allowMultipleSelection)
initUI
in class ChooseByNameBase
modalityState
- - if not null rebuilds list in given ModalityState
public boolean isOpenInCurrentWindowRequested()
isOpenInCurrentWindowRequested
in class ChooseByNameBase
protected boolean isCheckboxVisible()
isCheckboxVisible
in class ChooseByNameBase
protected boolean isShowListForEmptyPattern()
isShowListForEmptyPattern
in class ChooseByNameBase
public void setShowListForEmptyPattern(boolean showListForEmptyPattern)
protected boolean isCloseByFocusLost()
isCloseByFocusLost
in class ChooseByNameBase
protected void showList()
showList
in class ChooseByNameBase
protected void hideList()
hideList
in class ChooseByNameBase
public void close(boolean isOk)
close
in class ChooseByNameBase
public static ChooseByNamePopup createPopup(Project project, ChooseByNameModel model, PsiElement context)
public static ChooseByNamePopup createPopup(Project project, ChooseByNameModel model, PsiElement context, java.lang.String predefinedText)
public static ChooseByNamePopup createPopup(Project project, ChooseByNameModel model, PsiElement context, java.lang.String predefinedText, boolean mayRequestOpenInCurrentWindow, int initialIndex)
public static ChooseByNamePopup createPopup(Project project, ChooseByNameModel model, ChooseByNameItemProvider provider)
public static ChooseByNamePopup createPopup(Project project, ChooseByNameModel model, ChooseByNameItemProvider provider, java.lang.String predefinedText)
public static ChooseByNamePopup createPopup(Project project, ChooseByNameModel model, ChooseByNameItemProvider provider, java.lang.String predefinedText, boolean mayRequestOpenInCurrentWindow, int initialIndex)
public java.lang.String transformPattern(java.lang.String pattern)
ChooseByNameViewModel
transformPattern
in interface ChooseByNameViewModel
transformPattern
in class ChooseByNameBase
public static java.lang.String getTransformedPattern(java.lang.String pattern, ChooseByNameModel model)
public int getLinePosition()
public java.lang.String getPathToAnonymous()
public int getColumnPosition()
public java.lang.String getMemberPattern()
public void registerAction(java.lang.String aActionName, javax.swing.KeyStroke keyStroke, javax.swing.Action aAction)
public java.lang.String getAdText()
public void setAdText(java.lang.String adText)
public void addMouseClickListener(java.awt.event.MouseListener listener)
public java.lang.Object getSelectionByPoint(java.awt.Point point)
public void repaintList()
public void repaintListImmediate()
public void dispose()
Disposable
dispose
in interface Disposable
public java.util.List<java.lang.Object> calcPopupElements(java.lang.String text, boolean checkboxState)