src/main/java/com/spinyowl/legui/component/Label.java
private void initialize(String text) {

    BiConsumer<String, String> callback = (oldValue, newValue) ->
        EventProcessorProvider.getInstance().pushEvent(
            new LabelContentChangeEvent(this, null, this.getFrame(), oldValue, newValue));

    textState = new TextState(text, callback);

    getStyle().getBackground().setColor(ColorConstants.transparent());
    getStyle().setBorder(null);
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(Label.class).applyAll(this);
  }
/**
   * Used to initialize label.
   *
   * @param text text to set.
   */
Used to initialize label.
@param text text to set.
Used to initialize label . @param text text to set .
private void initialize(String text) {
    BiConsumer<String, String> callback = (oldValue, newValue) ->
        EventProcessorProvider.getInstance().pushEvent(
            new LabelContentChangeEvent(this, null, this.getFrame(), oldValue, newValue));
    textState = new TextState(text, callback);
    getStyle().getBackground().setColor(ColorConstants.transparent());
    getStyle().setBorder(null);
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(Label.class).applyAll(this);
  }
private void initialize ( String text ) { BiConsumer < String , String > callback = ( oldValue , newValue ) -> EventProcessorProvider . getInstance ( ) . pushEvent ( new LabelContentChangeEvent ( this , null , this . getFrame ( ) , oldValue , newValue ) ) ; textState = new TextState ( text , callback ) ; getStyle ( ) . getBackground ( ) . setColor ( ColorConstants . transparent ( ) ) ; getStyle ( ) . setBorder ( null ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( Label . class ) . applyAll ( this ) ; }
Used to initialize label.
Used to initialize label .