Article View: borland.public.jbuilder.java.language
Article #19641Re: Looking for information on Vector, VectorModel
From: Greg Hamer
Date: Sun, 18 Jan 1998 00:00
Date: Sun, 18 Jan 1998 00:00
77 lines
3692 bytes
3692 bytes
JBCL relies on the jgl library extensively, same deal for the java portions of JBuilder itself, so there really is no way to ship JBuilder without JGL. VectorModel is an interface for the JBCL data aware components that take one dimensional data, like the ListControl. JBCL comes with a simple implementation called BasicVectorContainer, but you are free to implement your own. It is the interface to the Model side of theModel-View architecture. JGL has a nice Sorting class. You pass it the array you want to sort and an object that implements the interface BinaryPredicate. BinaryPredicate has one method,execute, that takes two objects and returns true or false depending on which of the Objects you decide is higher in the sort order. RAD Systems, Inc wrote: > I have not received a response to this message. I would appreciate a > response from some of the TeamB people. These issues are very > important, and yet no where in any of the forums are the vector > classes discussed. > > Thanks, > Bob Byron > > On Thu, 15 Jan 1998 23:13:57 GMT, (. RAD Systems, Inc) wrote: > > >I saw the jgl routines. Are they going to be released always as part > >of JBuilder? Or, are they included for free now, and at some futre > >date, the new version will be extra? As I stated previously, I would > >like to use Borland/Java routines first, then objectspace if that is > >the only way I can accomplish my goal. > > > >Anyway, I was hoping to get a bit more discussion about Vectors, > >VectorModels and their pros and cons. I guess I might lay out the > >questions individually: > > > >1) What is Borland attempting to do with the VectorModel classes? > >Looks to me like extending them a little to make them a container > >maybe? > > > >2) What classes do Borland/Java supply to sort? Sorthing is the most > >common thing in the world to do, Borland could not have neglected > >that. > > > >3) Are Vector classes the preferred way to handle memory lists? > > > >4) I seemed to get an idea that some of the Model classes Borland > >designed help you create a "DataSet". Does that mean componants can > >use your model as a dataset? > > > >Thanks, > >Bob Byron > > > >On Wed, 14 Jan 1998 10:43:45 -0800, Andrew Bennett > ><abennett@borland.com> wrote: > > > >> > >> > >>. RAD Systems, Inc wrote: > >> > >>> I am simply trying to create a list of objects in memory. I would > >>> like to be able to sort this list. I have seen the Vector class, and > >>> it looks like it could handle a list just fine. But when it comes to > >>> a sorted list (vector), I was hoping for an easy method. I prefer to > >>> use either standard jova, or borland routines. Any suggestions? > >>> Also, are there any better examples of how to use the borland > >>> vectormodel. Do I need to create some kind of Vector Data Set to > >>> sort? > >> > >>Check out some of the JGL routines we've included with JBuilder. > >>Lots of goodies like this are in there... > >> > >> > >> > >>Andrew
Technical Details
Message-ID:
<34C2A625.402CC003@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34bc4f3c.12816256@forums.borland.com> <34BD0761.F8D9C43F@borland.com> <34be9600.12362743@forums.borland.com> <34c26158.1512284@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,daf5d24196563f32 X-Google-Attributes: gidf74b3,public From: Greg Hamer <ghamer@borland.com> Subject: Re: Looking for information on Vector, VectorModel Date: 1998/01/18 Message-ID: <34C2A625.402CC003@borland.com> X-Deja-AN: 317207285 Content-Transfer-Encoding: 7bit References: <34bc4f3c.12816256@forums.borland.com> <34BD0761.F8D9C43F@borland.com> <34be9600.12362743@forums.borland.com> <34c26158.1512284@forums.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: None Newsgroups: borland.public.jbuilder.java.language