src/main/java/com/spinyowl/legui/component/CheckBox.java
private void initialize(String text) {
    this.textState = new TextState(text);
    getStyle().getBackground().setColor(ColorConstants.transparent());
    getStyle().setBorder(null);

    getListenerMap().addListener(MouseClickEvent.class, new CheckBoxMouseClickEventListener());
    iconChecked.setHorizontalAlign(HorizontalAlign.LEFT);
    iconUnchecked.setHorizontalAlign(HorizontalAlign.LEFT);
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(CheckBox.class).applyAll(this);
  }
/**
   * Used to initialize checkbox state.
   *
   * @param text text to set.
   */
Used to initialize checkbox state.
@param text text to set.
Used to initialize checkbox state . @param text text to set .
private void initialize(String text) {
    this.textState = new TextState(text);
    getStyle().getBackground().setColor(ColorConstants.transparent());
    getStyle().setBorder(null);
    getListenerMap().addListener(MouseClickEvent.class, new CheckBoxMouseClickEventListener());
    iconChecked.setHorizontalAlign(HorizontalAlign.LEFT);
    iconUnchecked.setHorizontalAlign(HorizontalAlign.LEFT);
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(CheckBox.class).applyAll(this);
  }
private void initialize ( String text ) { this . textState = new TextState ( text ) ; getStyle ( ) . getBackground ( ) . setColor ( ColorConstants . transparent ( ) ) ; getStyle ( ) . setBorder ( null ) ; getListenerMap ( ) . addListener ( MouseClickEvent . class , new CheckBoxMouseClickEventListener ( ) ) ; iconChecked . setHorizontalAlign ( HorizontalAlign . LEFT ) ; iconUnchecked . setHorizontalAlign ( HorizontalAlign . LEFT ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( CheckBox . class ) . applyAll ( this ) ; }
Used to initialize checkbox state.
Used to initialize checkbox state .