1 19 20 25 26 package org.netbeans.modules.css.visual.model; 27 28 import javax.swing.DefaultComboBoxModel ; 29 30 35 public class ClipModel { 36 37 public DefaultComboBoxModel getClipList(){ 38 return new ClipList(); 39 } 40 41 public DefaultComboBoxModel getClipUnitList(){ 42 return new ClipUnitList(); 43 } 44 45 public static class ClipList extends DefaultComboBoxModel { 46 public ClipList(){ 47 addElement(CssStyleData.NOT_SET); 48 addElement("1"); addElement("2"); addElement("3"); addElement("4"); addElement("5"); addElement("6"); addElement("8"); addElement("10"); addElement(CssStyleData.VALUE); 57 } 58 } 59 60 public static class ClipUnitList extends DefaultComboBoxModel { 61 public ClipUnitList(){ 62 String [] unitValues = CssProperties.getCssLengthUnits(); 63 for(int i=0; i< unitValues.length; i++){ 64 addElement(unitValues[i]); 65 } 66 } 67 } 68 69 } 70 | Popular Tags |