Class StandaloneTextArea

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.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.
    See Also:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • getProperty

        public java.lang.String getProperty​(java.lang.String name)
      • propertiesChanged

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

        public static void main​(java.lang.String[] args)