On Thu, Mar 13, 2014 at 4:33 PM, Justin Deoliveira <
jdeol...@boundlessgeo.com> wrote:
>
>
>
> On Thu, Mar 13, 2014 at 3:55 AM, Andrea Aime <andrea.a...@geo-solutions.it
> > wrote:
>
>> On Wed, Mar 12, 2014 at 8:43 PM, Justin Deoliveira <
>> jdeol...@boundlessgeo.com> wrote:
>>
>>> Looks pretty great to me Andrea. Nice work.
>>>
>>
>> Thank you.
>>
>> Talking internally in GeoSolutions, we found an extra need, an ability
>> for a plugin to setup
>> its own id and style (which might be coming up from custom logic).
>>
>> So... usual drill, an interface for the extension point, a default
>> implementation with
>> the logic I've already implemented to be
>> used if no custom one is found in the application context scan.
>> The interface would be:
>>
>> interface GeoServerIdGenerator {
>> String getId();
>> String getCssStyle();
>> }
>>
>> Hmmm... how about using the same terminology as the system properties:
>
> interface GeoServerNodeInfo {
> String getId();
> Map<String,String> getOptions();
> }
>
There was actually a reason, the style that sits behind the identifier
element is build
from this template:
position:absolute; top:12px; left:12px; right:28px; width:auto;
background:$background; padding: 1px; border: 1px solid #0076a1;
color:$color; font-weight:bold
However, getOptions could just return all of the above as a map (with the
placeholders replaced)
and the style attribute be built from it. I guess we can also have each of
the elements templatable
and allow new elements to be inserted, that would make the above a
"default", so that if
for example you want to have italic you could add font-style:italic to the
system variable.
Cheers
Andrea
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel