isDesignTime() method?

I wonder if there is a method such as "isDesignTime()", who returns true if the code is accessed by the IDE when it instantiates objects to be used in the visual editor. I.E., if I define a Option list for a Drop Down:

public Option[] getCustomOptions(){

if (isDesignTime()){

/* ...generate some code and return sample data to not break

the look of the drop down in the IDE

while in design time. */

}

/*

....build and return actual data

*/

}

In my case I have several componens who are hidden by the IDE if I bind the "visible" property to a method (i.e. to check if there are elements in an array, and if not just not show the buttton or StaticText).

Thank you.

Best regards

Antonio.

[1013 byte] By [antoniovl] at [2007-11-26 10:11:37]
# 1
What you need isjava.beans.Bean.isDesignTime()- Winston http://blogs.sun.com/roller/page/winston?catname=Creator
wjprakash at 2007-7-7 1:58:31 > top of Java-index,Development Tools,Java Tools...