Article View: borland.public.jbuilder.java.language
Article #18000Re: Support for properties in code
From: John Niesz
Date: Sat, 29 Aug 1998 00:00
Date: Sat, 29 Aug 1998 00:00
24 lines
1491 bytes
1491 bytes
The way to define a bean is to have getBeanName(...) and setBeanName(...) functions in your code. it doesn't matter if you have a member variable of the same name declared, and the getBeanName(...) and setBeanName(...) functions can do just about anything, they don't have to just get or set a value. John Art Nelson wrote: > I have spent some time reading Java books, etc, and generally like the > language, however I have not been able to find any reference to defining > and using properties in code. My understanding is that properties are > for use in building and using beans. > > Am I out to lunch? Can you define properites a.l.a. Delphi and VB in > Java, .... and for discussions sake, if not why (not)? > > I find using properties in code makes things much more readable in many > cases, not that you can't work around. > > Thanks for your time and insite. > > Art
Technical Details
Message-ID:
<35E8C501.3933D113@worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35E83F26.1C3512C7@vineyard.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5a5b4289edee0c19 X-Google-Attributes: gidf74b3,public From: John Niesz <sunrunner15@worldnet.att.net> Subject: Re: Support for properties in code Date: 1998/08/29 Message-ID: <35E8C501.3933D113@worldnet.att.net> X-Deja-AN: 386059730 Content-Transfer-Encoding: 7bit References: <35E83F26.1C3512C7@vineyard.net> To: Art Nelson <art@vineyard.net> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language