1 11 package org.eclipse.jface.viewers; 12 13 import org.eclipse.core.runtime.Assert; 14 15 22 public class ColumnWeightData extends ColumnLayoutData { 23 24 27 public static final int MINIMUM_WIDTH = 20; 28 29 32 public int minimumWidth; 33 34 37 public int weight; 38 39 45 public ColumnWeightData(int weight) { 46 this(weight, true); 47 } 48 49 55 public ColumnWeightData(int weight, int minimumWidth) { 56 this(weight, minimumWidth, true); 57 } 58 59 67 public ColumnWeightData(int weight, int minimumWidth, boolean resizable) { 68 super(resizable); 69 Assert.isTrue(weight >= 0); 70 Assert.isTrue(minimumWidth >= 0); 71 this.weight = weight; 72 this.minimumWidth = minimumWidth; 73 } 74 75 83 public ColumnWeightData(int weight, boolean resizable) { 84 this(weight, MINIMUM_WIDTH, resizable); 85 } 86 } 87 | Popular Tags |