コード例 #1
0
 @Override
 public void setAutomaticChecked(Boolean value) {
   try {
     Checker.checkIfNotNull(value);
     switch (this.keepAutomaticChecked()) {
       case ALWAYS:
         {
           this.isAutomaticChecked = true;
           break;
         }
       case NEVER:
         {
           this.isAutomaticChecked = false;
           break;
         }
       case CHOICE:
         {
           this.isAutomaticChecked = value;
           break;
         }
       default:
         {
           break;
         }
     }
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #2
0
 @Override
 public void setSpeed(Integer value) {
   try {
     Checker.checkIfNotNull(value);
     speed = value;
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #3
0
 @Override
 public void setAutomaticPlay(Boolean value) {
   try {
     Checker.checkIfNotNull(value);
     isAutomaticPlay = value;
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #4
0
 @Override
 public void setSurface(EnumSurface surface) {
   try {
     Checker.checkIfNotNull(surface);
     this.surface = surface;
     this.updateViews();
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #5
0
 @Override
 public void setStatus(EnumVisualizationStatus status) {
   try {
     Checker.checkIfNotNull(status);
     this.status = status;
     this.updateViews();
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #6
0
 @Override
 public void setSize(Integer height, Integer width) {
   try {
     Checker.checkIfNotNull(height);
     Checker.checkIfNotNull(width);
     int widthOld = this.width.intValue();
     int heightOld = this.height.intValue();
     int widthNew = width.intValue();
     int heightNew = height.intValue();
     if ((widthOld != widthNew) || (heightOld != heightNew)) {
       this.height = height;
       this.width = width;
       this.updateSize();
       this.updateViews();
     }
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #7
0
 @Override
 public void setWidth(Integer width) {
   try {
     Checker.checkIfNotNull(width);
     this.width = width;
     this.updateSize();
   } catch (Exception ex) {
     throw ex;
   }
 }
コード例 #8
0
 @Override
 public void setHeight(Integer height) {
   try {
     Checker.checkIfNotNull(height);
     this.height = height;
     this.updateSize();
   } catch (Exception ex) {
     throw ex;
   }
 }