Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 
   */
  package net.officefloor.model.desk;
  
  
 
 @Generated("net.officefloor.model.generate.ModelGenerator")
 public class TaskFlowToExternalFlowModel extends AbstractModel implements ConnectionModel {
 
     public static enum TaskFlowToExternalFlowEvent {
      CHANGE_EXTERNAL_FLOW_NAME, CHANGE_TASK_FLOW, CHANGE_EXTERNAL_FLOW, CHANGE_LINK_TYPE
     }

    
Default constructor.
 
     public TaskFlowToExternalFlowModel() {
     }

    
Convenience constructor for new non-linked instance.
 
       String externalFlowName
     , String linkType
     ) {
         this. = externalFlowName;
         this. = linkType;
     }

    
Convenience constructor.
 
       String externalFlowName
     , TaskFlowModel taskFlow
     , ExternalFlowModel externalFlow
     , String linkType
     ) {
         this. = externalFlowName;
         this. = taskFlow;
         this. = externalFlow;
         this. = linkType;
     }

    
Convenience constructor allowing XY initialising.
 
       String externalFlowName
     , TaskFlowModel taskFlow
     , ExternalFlowModel externalFlow
     , String linkType
     , int x
     , int y
     ) {
         this. = externalFlowName;
         this. = taskFlow;
         this. = externalFlow;
         this. = linkType;
         this.setX(x);
         this.setY(y);
     }

    
External flow name.
 
     private String externalFlowName;
 
     public String getExternalFlowName() {
         return this.;
     }
 
     public void setExternalFlowName(String externalFlowName) {
         String oldValue = this.;
         this. = externalFlowName;
     }

    
Task flow.
 
     private TaskFlowModel taskFlow;
 
     public TaskFlowModel getTaskFlow() {
         return this.;
     }
 
     public void setTaskFlow(TaskFlowModel taskFlow) {
         TaskFlowModel oldValue = this.;
         this. = taskFlow;
         this.changeField(oldValuethis..);
     }

    
External flow.
        return this.;
    }
    public void setExternalFlow(ExternalFlowModel externalFlow) {
        ExternalFlowModel oldValue = this.;
        this. = externalFlow;
    }

    
Link type.
    private String linkType;
    public String getLinkType() {
        return this.;
    }
    public void setLinkType(String linkType) {
        String oldValue = this.;
        this. = linkType;
        this.changeField(oldValuethis..);
    }
    /*
     * ConnectionModel
     */
    public boolean isRemovable() {
        return true;
    }
    public void connect() {
        this..setExternalFlow(this);
        this..addTaskFlow(this);
    }
    public void remove() {
        this..setExternalFlow(null);
        this..removeTaskFlow(this);
    }
New to GrepCode? Check out our FAQ X