/** * add a value to the itemIcon property collection * * @param itemIcon * Objects of the following type are allowed in the list: {@link ItemIcon} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public ListStyle addToItemIcon(final ItemIcon itemIcon) { this.getItemIcon().add(itemIcon); return this; }
/** * add a value to the itemIcon property collection * * @param itemIcon * Objects of the following type are allowed in the list: {@link ItemIcon} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public ListStyle addToItemIcon(final ItemIcon itemIcon) { this.getItemIcon().add(itemIcon); return this; }
/** * Creates a new instance of {@link ItemIcon} and adds it to itemIcon. * This method is a short version for: * <code> * ItemIcon itemIcon = new ItemIcon(); * this.getItemIcon().add(itemIcon); </code> * * */ public ItemIcon createAndAddItemIcon() { ItemIcon newValue = new ItemIcon(); this.getItemIcon().add(newValue); return newValue; }
/** * Creates a new instance of {@link ItemIcon} and adds it to itemIcon. * This method is a short version for: * <code> * ItemIcon itemIcon = new ItemIcon(); * this.getItemIcon().add(itemIcon); </code> * * */ public ItemIcon createAndAddItemIcon() { ItemIcon newValue = new ItemIcon(); this.getItemIcon().add(newValue); return newValue; }
@Override public ListStyle clone() { ListStyle copy; copy = ((ListStyle) super.clone()); copy.itemIcon = new ArrayList<ItemIcon>((getItemIcon().size())); for (ItemIcon iter: itemIcon) { copy.itemIcon.add(iter.clone()); } copy.listStyleSimpleExtension = new ArrayList<Object>((getListStyleSimpleExtension().size())); for (Object iter: listStyleSimpleExtension) { copy.listStyleSimpleExtension.add(iter); } copy.listStyleObjectExtension = new ArrayList<AbstractObject>((getListStyleObjectExtension().size())); for (AbstractObject iter: listStyleObjectExtension) { copy.listStyleObjectExtension.add(iter.clone()); } return copy; }
@Override public ListStyle clone() { ListStyle copy; copy = ((ListStyle) super.clone()); copy.itemIcon = new ArrayList<ItemIcon>((getItemIcon().size())); for (ItemIcon iter: itemIcon) { copy.itemIcon.add(iter.clone()); } copy.listStyleSimpleExtension = new ArrayList<Object>((getListStyleSimpleExtension().size())); for (Object iter: listStyleSimpleExtension) { copy.listStyleSimpleExtension.add(iter); } copy.listStyleObjectExtension = new ArrayList<AbstractObject>((getListStyleObjectExtension().size())); for (AbstractObject iter: listStyleObjectExtension) { copy.listStyleObjectExtension.add(iter.clone()); } return copy; }