Ulrich_Laegeler at arburg.com wrote:
>
> i developed a StylesheetExtension Function.
> If i return a StyleValue from type TYPE_STRING it works perfectly.
> But if i return a StyleValue from type TYPE_LISTit doesn't work.
> It is because in StyledViewFactory.java line 3550 the
> type TYPE_LISTisn't supported. Is this only a miss?
From what you say, I guess that your CSS style sheet contains something
like:
foo {
content: invoke("bar");
}
where method bar returns a list of CSS values.
If this is the case, the answer is: TYPE_LIST could be supported, but is
currently not supported (because we haven't imagined that it would be
useful to support extension methods returning lists).
If you find no other way to achieve what you want, please insist and
we'll support extension methods returning lists in next release (v4, in
July).
Note that what follows should work fine:
foo {
content: "some text" invoke("bar") " " url(image.gif) " " invoke("gee");
}
That is, may be your extension method may return a single item of a
list, where other items are static and/or are computed by other
extension methods also returning single items.