FileDocCategorySizeDatePackage
TimerBeanInfo.javaAPI DocExample927Sat Apr 23 22:35:42 BST 2005magicbeans

TimerBeanInfo

public class TimerBeanInfo extends SimpleBeanInfo

Fields Summary
Constructors Summary
Methods Summary
public java.beans.EventSetDescriptor[]getEventSetDescriptors()

        try {
            EventSetDescriptor timer = new EventSetDescriptor( 
				Timer.class, 
				"timerFired", TimerListener.class, "timerFired");
            timer.setDisplayName("Timer Fired");

            return new EventSetDescriptor [] { timer };
        } catch (IntrospectionException e) {
			return null; 
        }
    
public java.beans.PropertyDescriptor[]getPropertyDescriptors()

        try {
            PropertyDescriptor delay = 
				new PropertyDescriptor("delay", Timer.class );
            delay.setBound(false);
			
			PropertyDescriptor running =
				new PropertyDescriptor("running", Timer.class );


            return new PropertyDescriptor [] { delay, running };
        } catch (IntrospectionException e) {
			return null; 
        }