AbtListView's #primCreateWidget is defective ... cannot effectively be subclasses

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

AbtListView's #primCreateWidget is defective ... cannot effectively be subclasses

Richard Sargent
Administrator
Unlike AbtBasicView which uses the part's #cwWidgetClass method to determine what class of CW widget to instantiate, AbtListView ignores #cwWidgetClass.

The work-around to this is tedious, requiring one to override AbtListView>>#primCreateWidget and CwWidget>>#createScrolledList:argBlock:.
(The latter calls CwWidget>>#createList:argBlock: which hard-codes CwList as the CW widget class.)

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: AbtListView's #primCreateWidget is defective ... cannot effectively be subclassed

Richard Sargent
Administrator


On Friday, January 10, 2014 1:29:51 PM UTC-8, Richard Sargent wrote:
Unlike AbtBasicView which uses the part's #cwWidgetClass method to determine what class of CW widget to instantiate, AbtListView ignores #cwWidgetClass.

The work-around to this is tedious, requiring one to override AbtListView>>#primCreateWidget and CwWidget>>#createScrolledList:argBlock:.
(The latter calls CwWidget>>#createList:argBlock: which hard-codes CwList as the CW widget class.)

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: AbtListView's #primCreateWidget is defective ... cannot effectively be subclasses

Solveig
In reply to this post by Richard Sargent
Hi Richard,

I've opened a case 53437 to investigate how to make it easier to subclass AbtListView.

Regards,
Solveig

On Friday, January 10, 2014 4:29:51 PM UTC-5, Richard Sargent wrote:
Unlike AbtBasicView which uses the part's #cwWidgetClass method to determine what class of CW widget to instantiate, AbtListView ignores #cwWidgetClass.

The work-around to this is tedious, requiring one to override AbtListView>>#primCreateWidget and CwWidget>>#createScrolledList:argBlock:.
(The latter calls CwWidget>>#createList:argBlock: which hard-codes CwList as the CW widget class.)

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: AbtListView's #primCreateWidget is defective ... cannot effectively be subclasses

Richard Sargent
Administrator

Thanks

On Jan 16, 2014 8:03 AM, "Solveig" <[hidden email]> wrote:
Hi Richard,

I've opened a case 53437 to investigate how to make it easier to subclass AbtListView.

Regards,
Solveig

On Friday, January 10, 2014 4:29:51 PM UTC-5, Richard Sargent wrote:
Unlike AbtBasicView which uses the part's #cwWidgetClass method to determine what class of CW widget to instantiate, AbtListView ignores #cwWidgetClass.

The work-around to this is tedious, requiring one to override AbtListView>>#primCreateWidget and CwWidget>>#createScrolledList:argBlock:.
(The latter calls CwWidget>>#createList:argBlock: which hard-codes CwList as the CW widget class.)

--
You received this message because you are subscribed to a topic in the Google Groups "VA Smalltalk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/va-smalltalk/xrUXv2lhJVc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/groups/opt_out.