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 WorkTaskObjectToDeskManagedObjectEvent {
      CHANGE_DESK_MANAGED_OBJECT_NAME, CHANGE_WORK_TASK_OBJECT, CHANGE_DESK_MANAGED_OBJECT
     }

    
Default constructor.
 
     }

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

    
Convenience constructor.
 
       String deskManagedObjectName
     , WorkTaskObjectModel workTaskObject
     , DeskManagedObjectModel deskManagedObject
     ) {
         this. = deskManagedObjectName;
         this. = workTaskObject;
         this. = deskManagedObject;
     }

    
Convenience constructor allowing XY initialising.
 
       String deskManagedObjectName
     , WorkTaskObjectModel workTaskObject
     , DeskManagedObjectModel deskManagedObject
     , int x
     , int y
     ) {
         this. = deskManagedObjectName;
         this. = workTaskObject;
         this. = deskManagedObject;
         this.setX(x);
         this.setY(y);
     }

    
Desk managed object name.
 
     private String deskManagedObjectName;
 
     public String getDeskManagedObjectName() {
         return this.;
     }
 
     public void setDeskManagedObjectName(String deskManagedObjectName) {
         String oldValue = this.;
         this. = deskManagedObjectName;
     }

    
Work task object.
 
 
         return this.;
     }
 
     public void setWorkTaskObject(WorkTaskObjectModel workTaskObject) {
         WorkTaskObjectModel oldValue = this.;
         this. = workTaskObject;
     }

    
Desk managed object.
 
 
         return this.;
    }
    public void setDeskManagedObject(DeskManagedObjectModel deskManagedObject) {
        DeskManagedObjectModel oldValue = this.;
        this. = deskManagedObject;
    }
    /*
     * ConnectionModel
     */
    public boolean isRemovable() {
        return true;
    }
    public void connect() {
        this..setDeskManagedObject(this);
        this..addWorkTaskObject(this);
    }
    public void remove() {
        this..setDeskManagedObject(null);
        this..removeWorkTaskObject(this);
    }
New to GrepCode? Check out our FAQ X