src/main/java/com/spinyowl/legui/component/Component.java
public boolean add(Component component) {
    if (component == null || component == this || isContains(component)) {
      return false;
    }
    boolean added = childComponents.add(component);
    changeParent(component);
    EventProcessorProvider.getInstance().pushEvent(new AddChildEvent<>(this, component));
    return added;
  }
/**
   * Used to add component to component.
   *
   * @param component component to add.
   * @return true if component is added.
   * @see List#add(Object)
   */
Used to add component to component.
@param component component to add.
@return true if component is added.
Used to add component to component . @param component component to add . @return true if component is added .
public boolean add(Component component) {
    if (component == null || component == this || isContains(component)) {
      return false;
    }
    boolean added = childComponents.add(component);
    changeParent(component);
    EventProcessorProvider.getInstance().pushEvent(new AddChildEvent<>(this, component));
    return added;
  }
public boolean add ( Component component ) { if ( component == null || component == this || isContains ( component ) ) { return false ; } boolean added = childComponents . add ( component ) ; changeParent ( component ) ; EventProcessorProvider . getInstance ( ) . pushEvent ( new AddChildEvent < > ( this , component ) ) ; return added ; }
Used to add component to component.
Used to add component to component .