Hello Lukas,
I
would prefer to have the images within the code and serve them using
Seaside.
yes, that would be much better. I'm working on a better implementation of
the tree, which use some icons for the nodes, for plus and minus, to provide
a nicer design than using unordered lists. So there will be a lot of new
small images now... How can I hold these images within the code?
- You added a space into the tree component before the
label. This is
the responsibility of the CSS-Stylesheet. No layout information in the
Smalltalk code. Not even a single space :)
*g* ok, I get that. As mentioned above, the tree implementation I would
prefer to have, uses images now, so it ain't be possible to discard all
layout information from the Smalltalk code. To set an image in the code
should be okay, no? ;)
- I suspect you didn't understand the idea of
RelatedComponent. Why do
you have for all your subclasses two almost identical method-bodies
like #structures and #search...?
yes, you're right, that's bad...
Generally every
component should consist only of a configurable title-string (provided
by BodyComponent) and all the necessary information within div, span,
ul, li, etc tags.
okay, that's better, I see. I have already worked on a CSS-Stylesheet for
the new user interface, but I have not finished it so far. You can fetch it
from the university server. So I will try to control all the layout stuff
with this CSS file. Should I place this file also within the Smalltalk
code somewhere, or is better the store it externaly?
bye,
David