Article View: borland.public.jbuilder.java.language
Article #7619How to check if a JavaBean is used at runtime/design time?
From: Romano Signorelli
Date: Thu, 14 Jun 2001 07:51
Date: Thu, 14 Jun 2001 07:51
19 lines
1359 bytes
1359 bytes
Hello,
how can I check if a component is used at runtime from an application or by
the Jbuilder designer at design time?
Simple example:
public class NewLabel extends Label {
public String getText() {
if (weAreInDesignTime) //<<= how?
return "we are in design time";
else
return super.getText();
}
}
Thanks in advance, bye
Romano Signorelli
Technical Details
Message-ID:
<3b286d27_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,aaa4761dd13fe995,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-14 01:05:19 PST Reply-To: "Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com> From: "Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com> Newsgroups: borland.public.jbuilder.java.language Subject: How to check if a JavaBean is used at runtime/design time? Date: Thu, 14 Jun 2001 09:51:54 +0200 Lines: 23 Organization: Gefran s.p.a. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 NNTP-Posting-Host: 212.210.176.11 Message-ID: <3b286d27_1@dnews> X-Trace: dnews 992505127 212.210.176.11 (14 Jun 2001 00:52:07 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews