public class ActionPopupStep extends java.lang.Object implements ListPopupStepEx<PopupFactoryImpl.ActionItem>
Constructor and Description |
---|
ActionPopupStep(java.util.List<PopupFactoryImpl.ActionItem> items,
java.lang.String title,
java.util.function.Supplier<? extends DataContext> context,
java.lang.String actionPlace,
boolean enableMnemonics,
Condition<? super AnAction> preselectActionCondition,
boolean autoSelection,
boolean showDisabledActions,
PresentationFactory presentationFactory) |
Modifier and Type | Method and Description |
---|---|
void |
canceled() |
static java.util.List<PopupFactoryImpl.ActionItem> |
createActionItems(ActionGroup actionGroup,
DataContext dataContext,
boolean showNumbers,
boolean useAlphaAsNumbers,
boolean showDisabledActions,
boolean honorActionMnemonics,
java.lang.String actionPlace,
PresentationFactory presentationFactory) |
static ListPopupStep<PopupFactoryImpl.ActionItem> |
createActionsStep(ActionGroup actionGroup,
DataContext dataContext,
boolean showNumbers,
boolean useAlphaAsNumbers,
boolean showDisabledActions,
java.lang.String title,
boolean honorActionMnemonics,
boolean autoSelectionEnabled,
java.util.function.Supplier<? extends DataContext> contextSupplier,
java.lang.String actionPlace,
Condition<? super AnAction> preselectCondition,
int defaultOptionIndex,
PresentationFactory presentationFactory) |
int |
getDefaultOptionIndex()
Returns the index of the item to be initially selected in the list.
|
java.lang.Runnable |
getFinalRunnable() |
javax.swing.Icon |
getIconFor(PopupFactoryImpl.ActionItem aValue)
Returns the icon to display for the specified list item.
|
java.lang.String |
getIndexedString(PopupFactoryImpl.ActionItem value) |
<any> |
getMnemonicNavigationFilter() |
int |
getMnemonicPos(PopupFactoryImpl.ActionItem value) |
javax.swing.Icon |
getSelectedIconFor(PopupFactoryImpl.ActionItem value) |
ListSeparator |
getSeparatorAbove(PopupFactoryImpl.ActionItem value)
Returns the separator to display above the specified list item.
|
<any> |
getSpeedSearchFilter() |
java.lang.String |
getTextFor(PopupFactoryImpl.ActionItem value)
Returns the text to display for the specified list item.
|
java.lang.String |
getTitle() |
java.lang.String |
getTooltipTextFor(PopupFactoryImpl.ActionItem value) |
java.util.List<PopupFactoryImpl.ActionItem> |
getValues()
Returns the values to be displayed in the list popup.
|
boolean |
hasSubstep(PopupFactoryImpl.ActionItem selectedValue) |
boolean |
isAutoSelectionEnabled() |
boolean |
isMnemonicsNavigationEnabled() |
boolean |
isSelectable(PopupFactoryImpl.ActionItem value)
Checks if the specified value in the list can be selected.
|
boolean |
isSpeedSearchEnabled() |
PopupStep |
onChosen(PopupFactoryImpl.ActionItem actionChoice,
boolean finalChoice) |
<any> |
onChosen(PopupFactoryImpl.ActionItem actionChoice,
boolean finalChoice,
int eventModifiers) |
void |
performAction(AnAction action,
int modifiers) |
void |
performAction(AnAction action,
int modifiers,
java.awt.event.InputEvent inputEvent) |
void |
setEmptyText(StatusText emptyText) |
public ActionPopupStep(java.util.List<PopupFactoryImpl.ActionItem> items, java.lang.String title, java.util.function.Supplier<? extends DataContext> context, java.lang.String actionPlace, boolean enableMnemonics, Condition<? super AnAction> preselectActionCondition, boolean autoSelection, boolean showDisabledActions, PresentationFactory presentationFactory)
public static ListPopupStep<PopupFactoryImpl.ActionItem> createActionsStep(ActionGroup actionGroup, DataContext dataContext, boolean showNumbers, boolean useAlphaAsNumbers, boolean showDisabledActions, java.lang.String title, boolean honorActionMnemonics, boolean autoSelectionEnabled, java.util.function.Supplier<? extends DataContext> contextSupplier, java.lang.String actionPlace, Condition<? super AnAction> preselectCondition, int defaultOptionIndex, PresentationFactory presentationFactory)
public static java.util.List<PopupFactoryImpl.ActionItem> createActionItems(ActionGroup actionGroup, DataContext dataContext, boolean showNumbers, boolean useAlphaAsNumbers, boolean showDisabledActions, boolean honorActionMnemonics, java.lang.String actionPlace, PresentationFactory presentationFactory)
public java.util.List<PopupFactoryImpl.ActionItem> getValues()
ListPopupStep
getValues
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
public boolean isSelectable(PopupFactoryImpl.ActionItem value)
ListPopupStep
isSelectable
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
value
- the value to check.public int getMnemonicPos(PopupFactoryImpl.ActionItem value)
public javax.swing.Icon getIconFor(PopupFactoryImpl.ActionItem aValue)
ListPopupStep
getIconFor
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
aValue
- the value for which the icon is requested.public javax.swing.Icon getSelectedIconFor(PopupFactoryImpl.ActionItem value)
getSelectedIconFor
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
public java.lang.String getTextFor(PopupFactoryImpl.ActionItem value)
ListPopupStep
getTextFor
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
value
- the value for which the text is requested.public java.lang.String getTooltipTextFor(PopupFactoryImpl.ActionItem value)
getTooltipTextFor
in interface ListPopupStepEx<PopupFactoryImpl.ActionItem>
public void setEmptyText(StatusText emptyText)
setEmptyText
in interface ListPopupStepEx<PopupFactoryImpl.ActionItem>
public ListSeparator getSeparatorAbove(PopupFactoryImpl.ActionItem value)
ListPopupStep
getSeparatorAbove
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
value
- the value for which the separator is requested.public int getDefaultOptionIndex()
ListPopupStep
getDefaultOptionIndex
in interface ListPopupStep<PopupFactoryImpl.ActionItem>
public java.lang.String getTitle()
public PopupStep onChosen(PopupFactoryImpl.ActionItem actionChoice, boolean finalChoice)
public <any> onChosen(PopupFactoryImpl.ActionItem actionChoice, boolean finalChoice, int eventModifiers)
onChosen
in interface ListPopupStepEx<PopupFactoryImpl.ActionItem>
public void performAction(AnAction action, int modifiers)
public void performAction(AnAction action, int modifiers, java.awt.event.InputEvent inputEvent)
public java.lang.Runnable getFinalRunnable()
public boolean hasSubstep(PopupFactoryImpl.ActionItem selectedValue)
public void canceled()
public boolean isMnemonicsNavigationEnabled()
public <any> getMnemonicNavigationFilter()
public java.lang.String getIndexedString(PopupFactoryImpl.ActionItem value)
public boolean isSpeedSearchEnabled()
public boolean isAutoSelectionEnabled()
public <any> getSpeedSearchFilter()