Difference between revisions of "Look and feel (extension point)"
From BioUML platform
Tagir Valeev (Talk | contribs) (Created page with "__NOTOC__ ;Identifier :ru.biosoft.workbench.lookAndFeel ;Plugin :ru.biosoft.workbench ;Since :0.7.6 ;Applicable for :BioUML workbench ==...") |
Tagir Valeev (Talk | contribs) (Template used) |
||
Line 1: | Line 1: | ||
− | + | {{Extension point|lookAndFeel|ru.biosoft.workbench|since=0.7.6}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
;Applicable for | ;Applicable for | ||
:[[BioUML workbench]] | :[[BioUML workbench]] | ||
Line 49: | Line 43: | ||
<script name="setTheme"> lookAndFeel.setCurrentTheme(theme); </script> | <script name="setTheme"> lookAndFeel.setCurrentTheme(theme); </script> | ||
</lookAndFeel> | </lookAndFeel> | ||
− | </extension> | + | </extension> |
− | + | ||
− | + |
Latest revision as of 16:06, 8 May 2013
- Identifier
- ru.biosoft.workbench.lookAndFeel
- Plugin
- ru.biosoft.workbench
- Since
- 0.7.6
- Applicable for
- BioUML workbench
[edit] Description
Using this extension point plug-in can contribute new look and feel.
This look and feel will be loaded both into UIManager and LookAndFeelRegistry.
[edit] Configuration Markup
<!ELEMENT lookAndFeel (theme)*> <!ATTLIST lookAndFeel name CDATA #REQUIRED class CDATA #REQUIRED defaultTheme CDATA #IMPLIED >
- name
- name of look and feel.
- class
- the fully-qualified name of javax.swing.LookAndFeel subclass.
- defaultTheme
- name of default theme.
<!ELEMENT theme> <!ATTLIST theme name CDATA #REQUIRED class CDATA #REQUIRED >
[edit] Examples
This is an example from plaf.metal plugin:
<extension id="plaf.metal.themes" point="ru.biosoft.workbench.lookAndFeel"> <lookAndFeel name="Metal" defaultTheme="Steel"> <theme name="Steel" class="javax.swing.plaf.metal.DefaultMetalTheme"/> <theme name="Aqua" class="AquaTheme"/> <theme name="Charcoal" class="CharcoalTheme"/> <theme name="High contrast" class="ContrastTheme"/> <theme name="Emerald" class="EmeraldTheme"/> <theme name="Ruby" class="RubyTheme"/> <script name="getTheme"> lookAndFeel.getCurrentTheme(); </script> <script name="setTheme"> lookAndFeel.setCurrentTheme(theme); </script> </lookAndFeel> </extension>