Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 
   */
  package net.officefloor.model.desk;
  
  
 
 @Generated("net.officefloor.model.generate.ModelGenerator")
 
     public static enum DeskManagedObjectSourceFlowToTaskEvent {
      CHANGE_TASK_NAME, CHANGE_DESK_MANAGED_OBJECT_SOURCE_FLOW, CHANGE_TASK
     }

    
Default constructor.
 
     }

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

    
Convenience constructor.
 
       String taskName
     , DeskManagedObjectSourceFlowModel deskManagedObjectSourceFlow
     , TaskModel task
     ) {
         this. = taskName;
         this. = deskManagedObjectSourceFlow;
         this. = task;
     }

    
Convenience constructor allowing XY initialising.
 
       String taskName
     , DeskManagedObjectSourceFlowModel deskManagedObjectSourceFlow
     , TaskModel task
     , int x
     , int y
     ) {
         this. = taskName;
         this. = deskManagedObjectSourceFlow;
         this. = task;
         this.setX(x);
         this.setY(y);
     }

    
Task name.
 
     private String taskName;
 
     public String getTaskName() {
         return this.;
     }
 
     public void setTaskName(String taskName) {
         String oldValue = this.;
         this. = taskName;
     }

    
Desk managed object source flow.
 
 
         return this.;
     }
 
     public void setDeskManagedObjectSourceFlow(DeskManagedObjectSourceFlowModel deskManagedObjectSourceFlow) {
         this. = deskManagedObjectSourceFlow;
     }

    
Task.
 
     private TaskModel task;
 
     public TaskModel getTask() {
         return this.;
    }
    public void setTask(TaskModel task) {
        TaskModel oldValue = this.;
        this. = task;
    }
    /*
     * ConnectionModel
     */
    public boolean isRemovable() {
        return true;
    }
    public void connect() {
        this..setTask(this);
        this..addDeskManagedObjectSourceFlow(this);
    }
    public void remove() {
        this..setTask(null);
        this..removeDeskManagedObjectSourceFlow(this);
    }
New to GrepCode? Check out our FAQ X