src/main/java/com/spinyowl/legui/component/TextInput.java
private void initialize(String text) {
    textState = new TextState(text);
    getStyle().setPadding(1f, 5f);

    getListenerMap().addListener(KeyboardEvent.class, new TextInputKeyEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new SelectAllTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CopyTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new PasteTextInputKeyboardEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CutTextInputKeyboardEventListener());
    getListenerMap().addListener(MouseClickEvent.class, new TextInputMouseClickEventListener());
    getListenerMap().addListener(MouseDragEvent.class, new TextInputDragEventListener());
    getListenerMap().addListener(CharEvent.class, new TextInputCharEventListener());

    Themes.getDefaultTheme().getThemeManager().getComponentTheme(TextInput.class).applyAll(this);
  }
/**
   * Used to initialize text input.
   *
   * @param text text to set.
   */
Used to initialize text input.
@param text text to set.
Used to initialize text input . @param text text to set .
private void initialize(String text) {
    textState = new TextState(text);
    getStyle().setPadding(1f, 5f);
    getListenerMap().addListener(KeyboardEvent.class, new TextInputKeyEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new SelectAllTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CopyTextEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new PasteTextInputKeyboardEventListener());
    getListenerMap().addListener(KeyboardEvent.class, new CutTextInputKeyboardEventListener());
    getListenerMap().addListener(MouseClickEvent.class, new TextInputMouseClickEventListener());
    getListenerMap().addListener(MouseDragEvent.class, new TextInputDragEventListener());
    getListenerMap().addListener(CharEvent.class, new TextInputCharEventListener());
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(TextInput.class).applyAll(this);
  }
private void initialize ( String text ) { textState = new TextState ( text ) ; getStyle ( ) . setPadding ( 1f , 5f ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new TextInputKeyEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new SelectAllTextEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new CopyTextEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new PasteTextInputKeyboardEventListener ( ) ) ; getListenerMap ( ) . addListener ( KeyboardEvent . class , new CutTextInputKeyboardEventListener ( ) ) ; getListenerMap ( ) . addListener ( MouseClickEvent . class , new TextInputMouseClickEventListener ( ) ) ; getListenerMap ( ) . addListener ( MouseDragEvent . class , new TextInputDragEventListener ( ) ) ; getListenerMap ( ) . addListener ( CharEvent . class , new TextInputCharEventListener ( ) ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( TextInput . class ) . applyAll ( this ) ; }
Used to initialize text input.
Used to initialize text input .