You are not logged in.

Faldegast

Beginner

  • "Faldegast" started this thread

Posts: 25

Date of registration: Oct 6th 2009

  • Send private message

1

Tuesday, October 6th 2009, 4:49pm

Collection.

There is a bug in the Collection class that makes it behave different then the VB class
When using For Each the vb class return en iterator for the values, but the Jacabo Framework version return the keyset.

This is the Jabaco implementation.

Source code

1
2
3
Public Synchronized Function Iterator() As java#util#Iterator
Iterator = myObjectList.keySet().iterator()
End Function


This make my old VB code run.

Source code

1
2
3
Public Synchronized Function Iterator() As java#util#Iterator
   Iterator = myObjectList.values.iterator()
End Function


I also laborated with

Source code

1
myObjectList.entrySet().iterator()
, but run in to a problem. Entry is a inner class of java.util.Map and i was unable to access it from Jabaco java#util#Map#Entry does not work... Does anyone know how if a inner class can be used inside Jacabo?

I also laborated with exporting the Values as a property, but encountered another bug. When i use

Source code

1
For Each o in Data.Values
the ".Values" part is ignored and the Iterator of the Data object (Collection instance) is called. This is important as I am going to suggest adding " Keys and Entries r/o properties that gives access to keySet and entrySet.

Source code

1
2
3
Public Synchronized Property Get Values As java#util#Collection
   Values = myObjectList.values
End Property

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Tuesday, October 6th 2009, 7:08pm

thanks fixed

Hi Faldegast,



thanks, fixed! Jabaco Framework Collection



Want to take part of the development of the Jabaco Framework?

have a look at the tutorial: Develop the Jabaco Framework



regards

OlimilO

Faldegast

Beginner

  • "Faldegast" started this thread

Posts: 25

Date of registration: Oct 6th 2009

  • Send private message

3

Tuesday, October 6th 2009, 7:57pm

Perhaps when i have time to do some larger comittment.

I am currently trying to figure out how to make a form modal. The main problem seam to be that the form is set Visible during initialization. This should be set in Show()

Source code

1
2
3
4
5
6
Public Sub Class_Initialize()
   myContent.BorderStyle = fmBorderStyleNone
   'Call Base.setContentPane(myContent)
   Base.getContentPane.add myContent
   myContent.Visible = True
End Sub

Also i am curious as to why Form is based on PictureBox, and there is a Dialog class that seam to be a bit more competent... The Dialog class seam to share the Visible=true bug.

Rate this thread
WoltLab Burning Board