1 19 20 26 27 package org.netbeans.modules.xml.schema.ui.nodes.schema.properties; 28 29 import org.netbeans.modules.xml.schema.model.SchemaComponent; 30 import org.netbeans.modules.xml.schema.ui.basic.editors.BooleanDefaultFalseEditor; 31 import org.netbeans.modules.xml.schema.ui.basic.editors.BooleanEditor; 32 33 39 public class BooleanProperty extends BaseSchemaProperty { 40 41 52 public BooleanProperty(SchemaComponent component, String property, 53 String dispName, String desc, boolean isDefaultFalse) 54 throws NoSuchMethodException { 55 super(component, 56 Object .class, 60 component.getClass().getMethod(BaseSchemaProperty. 62 firstLetterToUpperCase(property, "is"), new Class [0]), 63 component.getClass().getMethod(BaseSchemaProperty. 64 firstLetterToUpperCase(property, "set"), new Class []{Boolean .class}), 65 property, 66 dispName, 67 desc, 68 isDefaultFalse ? 69 BooleanDefaultFalseEditor.class : 70 BooleanEditor.class 71 ); 72 } 73 74 } 75 | Popular Tags |