src/main/java/com/spinyowl/legui/component/TextAreaField.java
private void initialize(String s) {
    textState = new TextState(s, (prev, next) -> EventProcessorProvider.getInstance()
        .pushEvent(new TextAreaFieldUpdateEvent(this, null, getFrame())));
    getStyle().setPadding(10f, 5f);

    getListenerMap().addListener(MouseDragEvent.class, new TextAreaFieldDragEventListener());
    getListenerMap().addListener(MouseClickEvent.class, new TextAreaFieldMouseClickEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CutTextAreaKeyboardEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new PasteTextAreaKeyboardEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new SelectAllTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CopyTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new TextAreaFieldKeyEventListener());
    getListenerMap().addListener(CharEvent.class, new TextAreaFieldCharEventListener());

    Themes.getDefaultTheme().getThemeManager().getComponentTheme(TextAreaField.class)
        .applyAll(this);
  }
/**
   * Used to initialize text area.
   *
   * @param s text to set.
   */
Used to initialize text area.
@param s text to set.
Used to initialize text area . @param s text to set .
private void initialize(String s) {
    textState = new TextState(s, (prev, next) -> EventProcessorProvider.getInstance()
        .pushEvent(new TextAreaFieldUpdateEvent(this, null, getFrame())));
    getStyle().setPadding(10f, 5f);
    getListenerMap().addListener(MouseDragEvent.class, new TextAreaFieldDragEventListener());
    getListenerMap().addListener(MouseClickEvent.class, new TextAreaFieldMouseClickEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CutTextAreaKeyboardEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new PasteTextAreaKeyboardEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new SelectAllTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CopyTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new TextAreaFieldKeyEventListener());
    getListenerMap().addListener(CharEvent.class, new TextAreaFieldCharEventListener());
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(TextAreaField.class)
        .applyAll(this);
  }
private void initialize ( String s ) { textState = new TextState ( s , ( prev , next ) -> EventProcessorProvider . getInstance ( ) . pushEvent ( new TextAreaFieldUpdateEvent ( this , null , getFrame ( ) ) ) ) ; getStyle ( ) . setPadding ( 10f , 5f ) ; getListenerMap ( ) . addListener ( MouseDragEvent . class , new TextAreaFieldDragEventListener ( ) ) ; getListenerMap ( ) . addListener ( MouseClickEvent . class , new TextAreaFieldMouseClickEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new CutTextAreaKeyboardEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new PasteTextAreaKeyboardEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new SelectAllTextEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new CopyTextEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new TextAreaFieldKeyEventListener ( ) ) ; getListenerMap ( ) . addListener ( CharEvent . class , new TextAreaFieldCharEventListener ( ) ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( TextAreaField . class ) . applyAll ( this ) ; }
Used to initialize text area.
Used to initialize text area .