Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * 
  */
 package net.officefloor.model.conform;
 
 import java.util.List;
 
@Generated("net.officefloor.model.generate.ModelGenerator")
public class TargetModel extends AbstractModel implements ItemModel<TargetModel> {
    public static enum TargetEvent {
     ADD_TARGET_ITEM, REMOVE_TARGET_ITEM
    }

    
Default constructor.
    public TargetModel() {
    }

    
Convenience constructor.
    public TargetModel(
      TargetItemModel[] targetItem
    ) {
        if (targetItem != null) {
            for (TargetItemModel model : targetItem) {
                this..add(model);
            }
        }
    }

    
Convenience constructor allowing XY initialising.
    public TargetModel(
      TargetItemModel[] targetItem
    , int x
    , int y
    ) {
        if (targetItem != null) {
            for (TargetItemModel model : targetItem) {
                this..add(model);
            }
        }
        this.setX(x);
        this.setY(y);
    }


    
Target item.
    public List<TargetItemModelgetTargetItems() {
        return this.;
    }
    public void addTargetItem(TargetItemModel targetItem) {
        this.addItemToList(targetItemthis..);
    }
    public void removeTargetItem(TargetItemModel targetItem) {
        this.removeItemFromList(targetItemthis..);
    }


    
Remove Connections.
        return _action;
    }
New to GrepCode? Check out our FAQ X