package com.horstmann.violet.product.diagram.state.node; import java.beans.IntrospectionException; import java.beans.PropertyDescriptor; import java.beans.SimpleBeanInfo; public class DecisionNodeBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor nameDescriptor = new PropertyDescriptor("condition", DecisionNode.class); nameDescriptor.setValue("priority", new Integer(0)); return new PropertyDescriptor[] { nameDescriptor, }; } catch (IntrospectionException exception) { return null; } } }