Ignore:
Timestamp:
Nov 26, 2014, 7:47:24 AM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #1886: Extension point for "skinning" web gui

Wrote some documentation about the new extension point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/src/docbook/developer/extensions.xml

    r6595 r6628  
    25362536     
    25372537    </sect2>
     2538   
     2539    <sect2 id="extensions_developer.skins">
     2540      <title>Skins</title>
     2541     
     2542      <para>
     2543        This extension point can be used to change the visual appearance of BASE. Contrary
     2544        to other extension points, providing actions are optional. The skinning is
     2545        done by having the action factory set style sheet and script files on the <classname
     2546        docapi="net.sf.basedb.clients.web.extensions">JspContext</classname> instance.
     2547        Typically the style sheet override or set some properties defined by the BASE
     2548        core stylesheets.
     2549      </para>
     2550     
     2551      <para>
     2552        Actions may be provided and should then implement the <interfacename
     2553        docapi="net.sf.basedb.clients.web.extensions.skin">SkinAction</interfacename>
     2554        interface. Actions are needed if the skin extension wants to modify the
     2555        fav-icon or include some data in a hidden <sgmltag class="starttag">div</sgmltag>
     2556        tag. For this to work, the action must also implement the <interfacename
     2557        docapi="net.sf.basedb.clients.web.extensions">DynamicActionAttributes</interfacename>
     2558        interface, since only the dynamic attribute values are included in the web page.
     2559      </para>
     2560     
     2561      <para>
     2562        BASE provides a simple action factory implementation,
     2563        <classname docapi="net.sf.basedb.clients.web.extensions.skin">FixedSkinActionFactory</classname>,
     2564        that supports all of the above.
     2565      </para>
     2566     
     2567    </sect2>
    25382568  </sect1>
    25392569 
Note: See TracChangeset for help on using the changeset viewer.