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 TaskToNextExternalFlowModel extends AbstractModel implements ConnectionModel {
 
     public static enum TaskToNextExternalFlowEvent {
      CHANGE_EXTERNAL_FLOW_NAME, CHANGE_PREVIOUS_TASK, CHANGE_NEXT_EXTERNAL_FLOW
     }

    
Default constructor.
 
     public TaskToNextExternalFlowModel() {
     }

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

    
Convenience constructor.
 
       String externalFlowName
     , TaskModel previousTask
     , ExternalFlowModel nextExternalFlow
     ) {
         this. = externalFlowName;
         this. = previousTask;
         this. = nextExternalFlow;
     }

    
Convenience constructor allowing XY initialising.
 
       String externalFlowName
     , TaskModel previousTask
     , ExternalFlowModel nextExternalFlow
     , int x
     , int y
     ) {
         this. = externalFlowName;
         this. = previousTask;
         this. = nextExternalFlow;
         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;
     }

    
Previous task.
 
     private TaskModel previousTask;
 
     public TaskModel getPreviousTask() {
         return this.;
     }
 
     public void setPreviousTask(TaskModel previousTask) {
         TaskModel oldValue = this.;
         this. = previousTask;
     }

    
Next external flow.
 
 
         return this.;
    }
    public void setNextExternalFlow(ExternalFlowModel nextExternalFlow) {
        ExternalFlowModel oldValue = this.;
        this. = nextExternalFlow;
    }
    /*
     * ConnectionModel
     */
    public boolean isRemovable() {
        return true;
    }
    public void connect() {
        this..setNextExternalFlow(this);
        this..addPreviousTask(this);
    }
    public void remove() {
        this..setNextExternalFlow(null);
        this..removePreviousTask(this);
    }
New to GrepCode? Check out our FAQ X