cannot undersyand the whole code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot undersyand the whole code

Roelof
Hello,

According to the Guide manual this can be a way to make a table widget:

initialize
     | list |
     super initialize.
     "Create a collection of sightings data."
     list := TwoDList
         on: #('Vulcans' 188 173 192 'Romulans' 26 26 452) copy
         columns: 4
         rows: 2.
     sightingsTable := SelectionInTable with: list.
     "Create a table interface and load it with the sightings."
     tableInterface := TableInterface new
         selectionInTable: sightingsTable.

     tableInterface columnWidths: #(100 40).

I understand that tableInterface is the name which is typed in the
aspect of the table widget.
But where does sightinsTable comes from.

Roelof

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: cannot undersyand the whole code

Paul DeBruicker
What class is the #initialize method in?


Check its class hierarchy for an instance variable named 'sightingsTable'








Roelof Wobben wrote
Hello,

According to the Guide manual this can be a way to make a table widget:

initialize
     | list |
     super initialize.
     "Create a collection of sightings data."
     list := TwoDList
         on: #('Vulcans' 188 173 192 'Romulans' 26 26 452) copy
         columns: 4
         rows: 2.
     sightingsTable := SelectionInTable with: list.
     "Create a table interface and load it with the sightings."
     tableInterface := TableInterface new
         selectionInTable: sightingsTable.

     tableInterface columnWidths: #(100 40).

I understand that tableInterface is the name which is typed in the
aspect of the table widget.
But where does sightinsTable comes from.

Roelof

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: cannot undersyand the whole code

Steven Kelly
In reply to this post by Roelof
[vwnc] cannot undersyand the whole code
The previous line.
Steve

From: [hidden email] on behalf of Roelof Wobben
Sent: Sat 19/04/2014 22:15
To: [hidden email]
Subject: [vwnc] cannot undersyand the whole code

Hello,

According to the Guide manual this can be a way to make a table widget:

initialize
     | list |
     super initialize.
     "Create a collection of sightings data."
     list := TwoDList
         on: #('Vulcans' 188 173 192 'Romulans' 26 26 452) copy
         columns: 4
         rows: 2.
     sightingsTable := SelectionInTable with: list.
     "Create a table interface and load it with the sightings."
     tableInterface := TableInterface new
         selectionInTable: sightingsTable.

     tableInterface columnWidths: #(100 40).

I understand that tableInterface is the name which is typed in the
aspect of the table widget.
But where does sightinsTable comes from.

Roelof

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: cannot undersyand the whole code

Roelof
I found it . Its a instance variable.

Roelof


Steven Kelly schreef op 19-4-2014 23:39:
[vwnc] cannot undersyand the whole code
The previous line.
Steve

From: [hidden email] on behalf of Roelof Wobben
Sent: Sat 19/04/2014 22:15
To: [hidden email]
Subject: [vwnc] cannot undersyand the whole code

Hello,

According to the Guide manual this can be a way to make a table widget:

initialize
     | list |
     super initialize.
     "Create a collection of sightings data."
     list := TwoDList
         on: #('Vulcans' 188 173 192 'Romulans' 26 26 452) copy
         columns: 4
         rows: 2.
     sightingsTable := SelectionInTable with: list.
     "Create a table interface and load it with the sightings."
     tableInterface := TableInterface new
         selectionInTable: sightingsTable.

     tableInterface columnWidths: #(100 40).

I understand that tableInterface is the name which is typed in the
aspect of the table widget.
But where does sightinsTable comes from.

Roelof

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc