Difference between revisions of "Look and feel (extension point)"

From BioUML platform
Jump to: navigation, search
(Created page with "__NOTOC__ ;Identifier :ru.biosoft.workbench.lookAndFeel ;Plugin :ru.biosoft.workbench ;Since :0.7.6 ;Applicable for :BioUML workbench ==...")
 
(Template used)
 
Line 1: Line 1:
__NOTOC__
+
{{Extension point|lookAndFeel|ru.biosoft.workbench|since=0.7.6}}
;Identifier
+
:ru.biosoft.workbench.lookAndFeel
+
;Plugin
+
:[[ru.biosoft.workbench (plugin)|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>
 
+
[[Category:Extension points]]
+

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>
Personal tools
Namespaces

Variants
Actions
BioUML platform
Community
Modelling
Analysis & Workflows
Collaborative research
Development
Virtual biology
Wiki
Toolbox