How can I treat my bean differently at design time?

John Zukowski

The static isDesignTime() method of the Beans class allows your bean to act differently at design time vs. at runtime, potentially freeing up CPU cycles for the designer. For instance, if the purpose of a bean is to display the value of PI to one million digits, at design time it is okay to only display something like seven.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact