Module jEdit

Class StandaloneTextArea

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class StandaloneTextArea extends TextArea
jEdit's standalone text component. Use this class to embed a jEdit TextArea into other applications. Example: class MyTextArea extends StandaloneTextArea { static final Properties props = new Properties(); static IPropertyManager propertyManager; static { props = new Properties(); load(props); propertyManager = new IPropertyManager() { public String getProperty() { return props.getProperty(); } } } public MyTextArea() { super(propertyManager); } } See jedit.props for properties that can be set.
Version:
$Id: StandaloneTextArea.java 25104 2020-03-31 22:25:46Z kpouer $
Author:
Slava Pestov, John Gellene (API documentation), Matthieu Casanova
See Also:
  • Constructor Details

    • StandaloneTextArea

      public StandaloneTextArea(IPropertyManager propertyManager)
      Creates a new StandaloneTextArea. A reference to the propertyManager is saved and used to read the properties when propertiesChanged() is called.
      Parameters:
      propertyManager - the property manager that contains both shortcut bindings and UI information
  • Method Details

    • getProperty

      public String getProperty(String name)
    • propertiesChanged

      public void propertiesChanged()
      Reinitializes the textarea by reading the properties from the property manager
      Overrides:
      propertiesChanged in class TextArea
    • createTextArea

      public static StandaloneTextArea createTextArea()
      Create a standalone TextArea. If you want to use it in jEdit, please use JEditEmbeddedTextArea()
      Returns:
      a textarea
      Since:
      4.3pre13
    • main

      public static void main(String[] args)