Class TextFieldAction

  • All Implemented Interfaces:
    com.intellij.openapi.actionSystem.ex.CustomComponentAction, com.intellij.openapi.project.PossiblyDumbAware, CustomComponentAction

    public abstract class TextFieldAction
    extends com.intellij.openapi.actionSystem.AnAction
    implements CustomComponentAction
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.intellij.openapi.actionSystem.AnAction

        com.intellij.openapi.actionSystem.AnAction.TransparentUpdate
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.intellij.openapi.util.Key<java.lang.Object> TEXT_FIELD_BACKGROUND_KEY  
      static com.intellij.openapi.util.Key<java.lang.String> TEXT_FIELD_ORIGINAL_KEY  
      • Fields inherited from class com.intellij.openapi.actionSystem.AnAction

        ACTIONS_KEY, EMPTY_ARRAY
      • Fields inherited from interface com.intellij.openapi.actionSystem.ex.CustomComponentAction

        ACTION_KEY, COMPONENT_KEY
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TextFieldAction()  
      protected TextFieldAction​(java.lang.String text)  
      protected TextFieldAction​(java.lang.String text, java.lang.String description, javax.swing.Icon icon)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull javax.swing.JComponent createCustomComponent​(@NotNull com.intellij.openapi.actionSystem.Presentation presentation, @NotNull java.lang.String place)  
      protected void doAction​(java.awt.event.FocusEvent e)  
      void update​(@NotNull com.intellij.openapi.actionSystem.AnActionEvent e)  
      protected void updateOnFocusGained​(java.lang.String text, com.intellij.openapi.actionSystem.Presentation presentation)  
      protected void updateOnFocusLost​(java.lang.String text, com.intellij.openapi.actionSystem.Presentation presentation)  
      protected void updateOnTextChange​(java.lang.String text, com.intellij.openapi.actionSystem.Presentation presentation)  
      • Methods inherited from class com.intellij.openapi.actionSystem.AnAction

        actionPerformed, addSynonym, addTextOverride, addTextOverride, applyTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyActionTextOverride, copyActionTextOverrides, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getSynonyms, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.intellij.openapi.actionSystem.ex.CustomComponentAction

        createCustomComponent, createCustomComponent
      • Methods inherited from interface com.intellij.openapi.project.PossiblyDumbAware

        isDumbAware
    • Field Detail

      • TEXT_FIELD_ORIGINAL_KEY

        public static final com.intellij.openapi.util.Key<java.lang.String> TEXT_FIELD_ORIGINAL_KEY
      • TEXT_FIELD_BACKGROUND_KEY

        public static final com.intellij.openapi.util.Key<java.lang.Object> TEXT_FIELD_BACKGROUND_KEY
    • Constructor Detail

      • TextFieldAction

        protected TextFieldAction()
      • TextFieldAction

        protected TextFieldAction​(java.lang.String text)
      • TextFieldAction

        protected TextFieldAction​(java.lang.String text,
                                  java.lang.String description,
                                  javax.swing.Icon icon)
    • Method Detail

      • updateOnFocusLost

        protected void updateOnFocusLost​(java.lang.String text,
                                         com.intellij.openapi.actionSystem.Presentation presentation)
      • updateOnFocusGained

        protected void updateOnFocusGained​(java.lang.String text,
                                           com.intellij.openapi.actionSystem.Presentation presentation)
      • updateOnTextChange

        protected void updateOnTextChange​(java.lang.String text,
                                          com.intellij.openapi.actionSystem.Presentation presentation)
      • createCustomComponent

        @NotNull
        public @NotNull javax.swing.JComponent createCustomComponent​(@NotNull
                                                                     @NotNull com.intellij.openapi.actionSystem.Presentation presentation,
                                                                     @NotNull
                                                                     @NotNull java.lang.String place)
        Specified by:
        createCustomComponent in interface com.intellij.openapi.actionSystem.ex.CustomComponentAction
      • doAction

        protected void doAction​(java.awt.event.FocusEvent e)
      • update

        public void update​(@NotNull
                           @NotNull com.intellij.openapi.actionSystem.AnActionEvent e)
        Overrides:
        update in class com.intellij.openapi.actionSystem.AnAction