public abstract class ComboBoxAction extends AnAction implements CustomComponentAction
Modifier and Type | Class and Description |
---|---|
protected class |
ComboBoxAction.ComboBoxButton |
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
ACTION_KEY, COMPONENT_KEY
Modifier | Constructor and Description |
---|---|
protected |
ComboBoxAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
protected ComboBoxAction.ComboBoxButton |
createComboBoxButton(Presentation presentation) |
javax.swing.JComponent |
createCustomComponent(Presentation presentation)
Deprecated.
|
javax.swing.JComponent |
createCustomComponent(Presentation presentation,
java.lang.String place) |
protected abstract DefaultActionGroup |
createPopupActionGroup(javax.swing.JComponent button) |
protected DefaultActionGroup |
createPopupActionGroup(javax.swing.JComponent button,
DataContext dataContext) |
static javax.swing.Icon |
getArrowIcon(boolean enabled) |
protected int |
getMaxRows() |
protected int |
getMinHeight() |
protected int |
getMinWidth() |
protected Condition<AnAction> |
getPreselectCondition() |
boolean |
isSmallVariant() |
void |
setPopupTitle(java.lang.String popupTitle) |
void |
setSmallVariant(boolean smallVariant) |
protected boolean |
shouldShowDisabledActions() |
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, update, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
public static javax.swing.Icon getArrowIcon(boolean enabled)
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation place@Deprecated public javax.swing.JComponent createCustomComponent(Presentation presentation)
createCustomComponent(Presentation, String)
createCustomComponent
in interface CustomComponentAction
public javax.swing.JComponent createCustomComponent(Presentation presentation, java.lang.String place)
createCustomComponent
in interface CustomComponentAction
CustomComponentAction.COMPONENT_KEY
to retrieve current component from a Presentation instance in AnAction.update(AnActionEvent)
method.protected ComboBoxAction.ComboBoxButton createComboBoxButton(Presentation presentation)
public boolean isSmallVariant()
public void setSmallVariant(boolean smallVariant)
public void setPopupTitle(java.lang.String popupTitle)
protected boolean shouldShowDisabledActions()
protected abstract DefaultActionGroup createPopupActionGroup(javax.swing.JComponent button)
protected DefaultActionGroup createPopupActionGroup(javax.swing.JComponent button, DataContext dataContext)
protected int getMaxRows()
protected int getMinHeight()
protected int getMinWidth()