示例#1
0
 /**
  * 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);
 }
示例#2
0
 public void setExtra(List<BaseComponent> components) {
   for (BaseComponent component : components) {
     component.parent = this;
   }
   extra = components;
 }