/** * Appends a component to the component. The text will inherit this component's formatting * * @param component the component to append */ public void addExtra(BaseComponent component) { if (extra == null) { extra = new ArrayList<BaseComponent>(); } component.parent = this; extra.add(component); }
public void setExtra(List<BaseComponent> components) { for (BaseComponent component : components) { component.parent = this; } extra = components; }