src/main/java/com/spinyowl/legui/component/misc/listener/checkbox/CheckBoxMouseClickEventListener.java
@Override
  public void process(MouseClickEvent event) {
    CheckBox checkBox = (CheckBox) event.getTargetComponent();
    if (event.getAction() == CLICK && checkBox.isEnabled()) {
      boolean checked = checkBox.isChecked();
      checkBox.setChecked(!checked);
      EventProcessorProvider.getInstance().pushEvent(
          new CheckBoxChangeValueEvent<>(checkBox, event.getContext(), event.getFrame(), checked,
              !checked));
    }
  }
/**
   * Used to handle event.
   *
   * @param event event to handle.
   */
Used to handle event.
@param event event to handle.
Used to handle event . @param event event to handle .
@Override
  public void process(MouseClickEvent event) {
    CheckBox checkBox = (CheckBox) event.getTargetComponent();
    if (event.getAction() == CLICK && checkBox.isEnabled()) {
      boolean checked = checkBox.isChecked();
      checkBox.setChecked(!checked);
      EventProcessorProvider.getInstance().pushEvent(
          new CheckBoxChangeValueEvent<>(checkBox, event.getContext(), event.getFrame(), checked,
              !checked));
    }
  }
@ Override public void process ( MouseClickEvent event ) { CheckBox checkBox = ( CheckBox ) event . getTargetComponent ( ) ; if ( event . getAction ( ) == CLICK && checkBox . isEnabled ( ) ) { boolean checked = checkBox . isChecked ( ) ; checkBox . setChecked ( ! checked ) ; EventProcessorProvider . getInstance ( ) . pushEvent ( new CheckBoxChangeValueEvent < > ( checkBox , event . getContext ( ) , event . getFrame ( ) , checked , ! checked ) ) ; } }
Used to handle event.
Used to handle event .