Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 
   */
  package net.officefloor.model.conform;
  
  
 
 @Generated("net.officefloor.model.generate.ModelGenerator")
 public class TargetItemModel extends AbstractModel implements ItemModel<TargetItemModel> {
 
     public static enum TargetItemEvent {
      CHANGE_TARGET_ITEM_NAME, CHANGE_EXISTING_ITEM
     }

    
Default constructor.
 
     public TargetItemModel() {
     }

    
Convenience constructor for new non-linked instance.
 
     public TargetItemModel(
       String targetItemName
     ) {
         this. = targetItemName;
     }

    
Convenience constructor.
 
     public TargetItemModel(
       String targetItemName
     , ExistingItemToTargetItemModel existingItem
     ) {
         this. = targetItemName;
         this. = existingItem;
     }

    
Convenience constructor allowing XY initialising.
 
     public TargetItemModel(
       String targetItemName
     , ExistingItemToTargetItemModel existingItem
     , int x
     , int y
     ) {
         this. = targetItemName;
         this. = existingItem;
         this.setX(x);
         this.setY(y);
     }

    
Target item name.
 
     private String targetItemName;
 
     public String getTargetItemName() {
         return this.;
     }
 
     public void setTargetItemName(String targetItemName) {
         String oldValue = this.;
         this. = targetItemName;
         this.changeField(oldValuethis..);
     }

    
Existing item.
 
 
         return this.;
     }
 
     public void setExistingItem(ExistingItemToTargetItemModel existingItem) {
         ExistingItemToTargetItemModel oldValue = this.;
         this. = existingItem;
         this.changeField(oldValuethis..);
     }



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