public abstract class ComboBoxAction extends AnAction implements CustomComponentAction
| Modifier and Type | Class and Description |
|---|---|
protected class |
ComboBoxAction.ComboBoxButton |
AnAction.TransparentUpdateACTIONS_KEY, EMPTY_ARRAYACTION_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, useSmallerFontForTextInToolbarclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDumbAwarepublic static javax.swing.Icon getArrowIcon(boolean enabled)
public void actionPerformed(AnActionEvent e)
AnActionactionPerformed in class AnActione - Carries information on the invocation place@Deprecated public javax.swing.JComponent createCustomComponent(Presentation presentation)
createCustomComponent(Presentation, String)createCustomComponent in interface CustomComponentActionpublic javax.swing.JComponent createCustomComponent(Presentation presentation, java.lang.String place)
createCustomComponent in interface CustomComponentActionCustomComponentAction.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()