Пример #1
0
 public void setWidth(int width) {
   int oldVal = this.width;
   this.width = Math.min(Math.max(width, model.getMinColumnWidth()), model.getMaxColumnWidth());
   if (oldVal != width) {
     model.fireWidthUpdated();
   }
 }
Пример #2
0
 /** @param model the model to set */
 void setModel(GridSheetModel model) {
   assert model != null;
   this.model = model;
   if (this.width == -1) {
     this.width = model.getDefaultColumnWidth();
   }
 }
Пример #3
0
 public void setName(String name) {
   if (!Objects.equals(name, this.name)) {
     this.name = name;
     model.fireVisibleColumnsUpdated();
   }
 }
Пример #4
0
 public void setVisible(boolean isVisible) {
   if (this.visible != isVisible) {
     this.visible = isVisible;
     model.fireVisibleColumnsUpdated();
   }
 }