| Home >> All >> com >> trapezium >> [ chisel Javadoc ] |
Source code: com/trapezium/chisel/ChiselInfo.java
1 /* 2 * @(#)ChiselInfo.java 3 * 4 * Copyright (c) 1998 by Trapezium Development LLC. All Rights Reserved. 5 * 6 * The information in this file is the property of Trapezium Development LLC 7 * and may be used only in accordance with the terms of the license granted 8 * by Trapezium. 9 * 10 */ 11 package com.trapezium.chisel; 12 13 import java.beans.*; 14 15 16 /** A ChiselInfo is a generic information object for a chisel. 17 * 18 * @author Michael St. Hippolyte 19 * @version 1.0, 09 Feb 1998 20 * 21 * @since 1.0 22 */ 23 public class ChiselInfo extends SimpleBeanInfo { 24 25 protected static Class chiselClass = Optimizer.class; 26 27 public PropertyDescriptor[] getPropertyDescriptors() { 28 PropertyDescriptor description = null; 29 PropertyDescriptor node = null; 30 31 try { 32 description = new PropertyDescriptor("description", chiselClass); 33 node = new PropertyDescriptor("node", chiselClass); 34 35 } catch (IntrospectionException e) { 36 throw new Error(e.toString()); 37 } 38 39 description.setBound(true); 40 node.setBound(true); 41 PropertyDescriptor props[] = { description, node }; 42 return props; 43 } 44 public int getDefaultPropertyIndex() { 45 return 0; 46 } 47 } 48