[Bese-devel] container.lisp refactor
Attila Lendvai
attila.lendvai at gmail.com
Sat Mar 18 14:21:27 UTC 2006
hi!
i've made the following refactoring to container.lisp:
Sat Mar 18 14:39:45 CET 2006 attila.lendvai at gmail.com
* Refactored container.lisp
Renamed simple-container to switching-container, clearly separated the
base
container class functionality from the new switching container. After the
refactor it is easier to use switching-container with dynamically
generated content and in situations where the old 'label' property have
no useful meaning (e.g. dinamically built tab pane). By default the new
'key'
property is the component itself.
User API changes (exported symbols):
- simple-container -> switching-container
- container.label-test -> container.key-test (also the initarg)
- container.current-component-name ->
container.current-component-key(also the initarg)
Generally 'label' has been renamed to 'key' in container, and
switching-container
implementation is based on the component accessing functionality provided
by container.
i haven't uploaded it yet to the public repo, because i want to polish it a
bit more. i've got two questions:
- Marco, do you generally like this idea?
- should i change the container's underlying alist into a hashtable? this
may not be really important, because as a GUI component it will probably
have less then 30 contained components, but when this assuption breaks then
an alist does not scale too well.
but now back to the code,
- attila
(alias 101 on irc &no 'its not lisp code :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060318/4415b297/attachment.html>
More information about the bese-devel
mailing list