Class TextEditorComponentProvider

All Implemented Interfaces:
ActionContextProvider, HelpDescriptor

public class TextEditorComponentProvider extends ComponentProviderAdapter
  • Constructor Details

  • Method Details

    • getText

      public String getText()
    • doSelectFont

      protected void doSelectFont()
    • closeComponent

      public void closeComponent()
      Description copied from class: ComponentProvider
      This is the callback that will happen when the user presses the 'X' button of a provider. Transient providers will be removed from the tool completely. Non-transient providers will merely be hidden.

      Subclasses may override this method to prevent a provider from being closed; for example, if an editor has unsaved changes, then this method could prevent the close from happening.

      Overrides:
      closeComponent in class ComponentProvider
    • getComponent

      public JComponent getComponent()
      Description copied from class: ComponentProvider
      Returns the component to be displayed
      Specified by:
      getComponent in class ComponentProvider
      Returns:
      the component to be displayed