src/main/java/com/spinyowl/legui/component/Component.java
public boolean remove(Component component) {
    if (component != null) {
      Component p = component.getParent();
      if (p == this && isContains(component)) {
        boolean removed = childComponents.remove(component);
        component.setParent(null);
        EventProcessorProvider.getInstance().pushEvent(new RemoveChildEvent<>(this, component));
        return removed;
      }
    }
    return false;
  }
/**
   * Used to remove component.
   *
   * @param component component to remove.
   * @return true if removed.
   * @see List#remove(Object)
   */
Used to remove component.
@param component component to remove.
@return true if removed.
Used to remove component . @param component component to remove . @return true if removed .
public boolean remove(Component component) {
    if (component != null) {
      Component p = component.getParent();
      if (p == this && isContains(component)) {
        boolean removed = childComponents.remove(component);
        component.setParent(null);
        EventProcessorProvider.getInstance().pushEvent(new RemoveChildEvent<>(this, component));
        return removed;
      }
    }
    return false;
  }
public boolean remove ( Component component ) { if ( component != null ) { Component p = component . getParent ( ) ; if ( p == this && isContains ( component ) ) { boolean removed = childComponents . remove ( component ) ; component . setParent ( null ) ; EventProcessorProvider . getInstance ( ) . pushEvent ( new RemoveChildEvent < > ( this , component ) ) ; return removed ; } } return false ; }
Used to remove component.
Used to remove component .