annotate make/tools/swing-nimbus/classes/org/jdesktop/synthdesigner/synthmodel/SynthModel.jibx.xml @ 1173:7f45fcc04f8e

6591875: Nimbus Swing Look and Feel Reviewed-by: jasper, ohair
author peterz
date Sat, 25 Apr 2009 21:17:50 +0400
parents
children
rev   line source
peterz@1173 1 <?xml version="1.0" encoding="UTF-8"?>
peterz@1173 2
peterz@1173 3 <!--
peterz@1173 4 Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
peterz@1173 5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
peterz@1173 6
peterz@1173 7 This code is free software; you can redistribute it and/or modify it
peterz@1173 8 under the terms of the GNU General Public License version 2 only, as
peterz@1173 9 published by the Free Software Foundation. Sun designates this
peterz@1173 10 particular file as subject to the "Classpath" exception as provided
peterz@1173 11 by Sun in the LICENSE file that accompanied this code.
peterz@1173 12
peterz@1173 13 This code is distributed in the hope that it will be useful, but WITHOUT
peterz@1173 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
peterz@1173 15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
peterz@1173 16 version 2 for more details (a copy is included in the LICENSE file that
peterz@1173 17 accompanied this code).
peterz@1173 18
peterz@1173 19 You should have received a copy of the GNU General Public License version
peterz@1173 20 2 along with this work; if not, write to the Free Software Foundation,
peterz@1173 21 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
peterz@1173 22
peterz@1173 23 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
peterz@1173 24 CA 95054 USA or visit www.sun.com if you need additional information or
peterz@1173 25 have any questions.
peterz@1173 26 -->
peterz@1173 27
peterz@1173 28 <!DOCTYPE binding SYSTEM "http://jibx.sourceforge.net">
peterz@1173 29 <binding>
peterz@1173 30 <mapping class="org.jdesktop.synthdesigner.synthmodel.UIDefault" abstract="true" post-set="postSet">
peterz@1173 31 <value name="name" field="name" style="attribute"/>
peterz@1173 32 </mapping>
peterz@1173 33 <!-- == AWT TYPES =========================================================================================== -->
peterz@1173 34 <mapping class="java.awt.Color"
peterz@1173 35 marshaller="org.jdesktop.swingx.designer.jibxhelpers.ColorMapper"
peterz@1173 36 unmarshaller="org.jdesktop.swingx.designer.jibxhelpers.ColorMapper"/>
peterz@1173 37 <mapping class="java.lang.Class"
peterz@1173 38 marshaller="org.jdesktop.synthdesigner.synthmodel.jibxhelpers.ClassMapper"
peterz@1173 39 unmarshaller="org.jdesktop.synthdesigner.synthmodel.jibxhelpers.ClassMapper"/>
peterz@1173 40 <!-- == UI FONT =========================================================================================== -->
peterz@1173 41 <mapping name="typeface" class="org.jdesktop.swingx.designer.font.Typeface" post-set="postSet">
peterz@1173 42 <value name="family" field="name" style="attribute" usage="optional"/>
peterz@1173 43 <value name="bold" field="bold" style="attribute" usage="optional" default="Default"/>
peterz@1173 44 <value name="italic" field="italic" style="attribute" usage="optional" default="Default"/>
peterz@1173 45 <value name="size" field="size" style="attribute" usage="optional"/>
peterz@1173 46 <value name="sizeOffset" field="sizeOffset" style="attribute" usage="optional" default="1"/>
peterz@1173 47 <value name="uiDefaultParentName" field="uiDefaultParentName" style="attribute" usage="optional"/>
peterz@1173 48 </mapping>
peterz@1173 49 <mapping name="uiFont" class="org.jdesktop.synthdesigner.synthmodel.UIFont"
peterz@1173 50 extends="org.jdesktop.synthdesigner.synthmodel.UIDefault">
peterz@1173 51 <structure map-as="org.jdesktop.synthdesigner.synthmodel.UIDefault"/>
peterz@1173 52 <collection get-method="getFonts" set-method="setFonts" create-type="java.util.ArrayList"/>
peterz@1173 53 </mapping>
peterz@1173 54 <!-- == UI INSETS =========================================================================================== -->
peterz@1173 55 <mapping name="uiInsets" class="org.jdesktop.synthdesigner.synthmodel.UIInsets"
peterz@1173 56 extends="org.jdesktop.synthdesigner.synthmodel.UIDefault">
peterz@1173 57 <structure map-as="org.jdesktop.synthdesigner.synthmodel.UIDefault"/>
peterz@1173 58 <structure name="insets" get-method="getInsets" set-method="setInsets"
peterz@1173 59 marshaller="org.jdesktop.swingx.designer.jibxhelpers.InsetsMapper"
peterz@1173 60 unmarshaller="org.jdesktop.swingx.designer.jibxhelpers.InsetsMapper"/>
peterz@1173 61 </mapping>
peterz@1173 62 <!-- == UI PAINT =========================================================================================== -->
peterz@1173 63 <mapping name="matte" class="org.jdesktop.swingx.designer.paint.Matte" post-set="postSet">
peterz@1173 64 <value name="red" field="red" style="attribute"/>
peterz@1173 65 <value name="green" field="green" style="attribute"/>
peterz@1173 66 <value name="blue" field="blue" style="attribute"/>
peterz@1173 67 <value name="alpha" field="alpha" style="attribute"/>
peterz@1173 68 <value name="uiDefaultParentName" field="uiDefaultParentName" style="attribute" usage="optional"/>
peterz@1173 69 <value name="componentPropertyName" field="componentPropertyName" style="attribute" usage="optional"/>
peterz@1173 70 <value name="hueOffset" field="hueOffset" style="attribute"/>
peterz@1173 71 <value name="saturationOffset" field="saturationOffset" style="attribute"/>
peterz@1173 72 <value name="brightnessOffset" field="brightnessOffset" style="attribute"/>
peterz@1173 73 <value name="alphaOffset" field="alphaOffset" style="attribute"/>
peterz@1173 74 <value name="uiResource" field="uiResource" style="attribute" usage="optional" default="true"/>
peterz@1173 75 </mapping>
peterz@1173 76 <mapping class="org.jdesktop.synthdesigner.synthmodel.UIPaint" abstract="true" type-name="uipaint"
peterz@1173 77 extends="org.jdesktop.synthdesigner.synthmodel.UIDefault">
peterz@1173 78 <structure map-as="org.jdesktop.synthdesigner.synthmodel.UIDefault"/>
peterz@1173 79 <structure get-method="getPaint" set-method="setPaint"/>
peterz@1173 80 </mapping>
peterz@1173 81 <mapping name="uiPaint" class="org.jdesktop.synthdesigner.synthmodel.UIPaint"
peterz@1173 82 extends="org.jdesktop.synthdesigner.synthmodel.UIDefault">
peterz@1173 83 <structure map-as="uipaint"/>
peterz@1173 84 </mapping>
peterz@1173 85 <mapping name="uiColor" class="org.jdesktop.synthdesigner.synthmodel.UIColor"
peterz@1173 86 extends="org.jdesktop.synthdesigner.synthmodel.UIPaint">
peterz@1173 87 <structure map-as="uipaint"/>
peterz@1173 88 </mapping>
peterz@1173 89 <!-- == UI STYLE =========================================================================================== -->
peterz@1173 90 <mapping class="org.jdesktop.synthdesigner.synthmodel.UIStyle" abstract="true" post-set="postSet">
peterz@1173 91 <structure field="font" usage="optional"/>
peterz@1173 92 <structure name="textForeground" usage="optional">
peterz@1173 93 <structure field="textForeground" usage="optional"/>
peterz@1173 94 </structure>
peterz@1173 95 <structure name="textBackground" usage="optional">
peterz@1173 96 <structure field="textBackground" usage="optional"/>
peterz@1173 97 </structure>
peterz@1173 98 <structure name="background" usage="optional">
peterz@1173 99 <structure field="background" usage="optional"/>
peterz@1173 100 </structure>
peterz@1173 101 <value name="inherit-font" field="fontInherited" usage="optional" default="true"/>
peterz@1173 102 <value name="inherit-textForeground" field="textForegroundInherited" usage="optional" default="true"/>
peterz@1173 103 <value name="inherit-textBackground" field="textBackgroundInherited" usage="optional" default="true"/>
peterz@1173 104 <value name="inherit-background" field="backgroundInherited" usage="optional" default="true"/>
peterz@1173 105 <value name="hintAlphaInterpolation" field="hintAlphaInterpolation" usage="optional"/>
peterz@1173 106 <value name="hintAntialiasing" field="hintAntialiasing" usage="optional"/>
peterz@1173 107 <value name="hintColorRendering" field="hintColorRendering" usage="optional"/>
peterz@1173 108 <value name="hintDithering" field="hintDithering" usage="optional"/>
peterz@1173 109 <value name="hintFractionalMetrics" field="hintFractionalMetrics" usage="optional"/>
peterz@1173 110 <value name="hintInterpolation" field="hintInterpolation" usage="optional"/>
peterz@1173 111 <value name="hintRendering" field="hintRendering" usage="optional"/>
peterz@1173 112 <value name="hintStrokeControl" field="hintStrokeControl" usage="optional"/>
peterz@1173 113 <value name="hintTextAntialiasing" field="hintTextAntialiasing" usage="optional"/>
peterz@1173 114 <value name="cacheSettingsInherited" field="cacheSettingsInherited" usage="optional" default="true"/>
peterz@1173 115 <value name="cacheMode" field="cacheMode" usage="optional" default="FIXED_SIZES"/>
peterz@1173 116 <value name="maxHozCachedImgScaling" field="maxHozCachedImgScaling" usage="optional" default="1"/>
peterz@1173 117 <value name="maxVertCachedImgScaling" field="maxVertCachedImgScaling" usage="optional" default="1"/>
peterz@1173 118 <collection name="uiproperties" field="uiProperties" create-type="java.util.ArrayList">
peterz@1173 119 <structure marshaller="org.jdesktop.synthdesigner.synthmodel.jibxhelpers.UIPropertyMapper"
peterz@1173 120 unmarshaller="org.jdesktop.synthdesigner.synthmodel.jibxhelpers.UIPropertyMapper"/>
peterz@1173 121 </collection>
peterz@1173 122 </mapping>
peterz@1173 123 <!-- == UI STATE =========================================================================================== -->
peterz@1173 124 <mapping name="stateType" class="org.jdesktop.synthdesigner.synthmodel.UIStateType">
peterz@1173 125 <value name="key" field="key" style="attribute"/>
peterz@1173 126 <structure name="codeSnippet" usage="optional" test-method="hasCodeSnippet">
peterz@1173 127 <value field="codeSnippet" style="cdata" usage="optional"/>
peterz@1173 128 </structure>
peterz@1173 129 </mapping>
peterz@1173 130 <mapping name="state" class="org.jdesktop.synthdesigner.synthmodel.UIState" post-set="postSet" pre-set="preSet">
peterz@1173 131 <value name="stateKeys" field="stateKeys" style="attribute" get-method="getStateKeys" set-method="setStateKeys"
peterz@1173 132 serializer="org.jdesktop.synthdesigner.synthmodel.UIState.keysToString"
peterz@1173 133 deserializer="org.jdesktop.synthdesigner.synthmodel.UIState.stringToKeys"/>
peterz@1173 134 <value name="inverted" field="inverted" style="attribute" usage="optional"/>
peterz@1173 135 <structure name="style" field="style"/>
peterz@1173 136 <structure field="canvas"
peterz@1173 137 marshaller="org.jdesktop.swingx.designer.jibxhelpers.CanvasMapper"
peterz@1173 138 unmarshaller="org.jdesktop.swingx.designer.jibxhelpers.CanvasMapper"/>
peterz@1173 139 </mapping>
peterz@1173 140 <!-- == REGIONS =========================================================================================== -->
peterz@1173 141 <mapping class="org.jdesktop.synthdesigner.synthmodel.UIRegion" abstract="true"
peterz@1173 142 type-name="region" pre-set="preSet">
peterz@1173 143 <value name="name" field="name" style="attribute"/>
peterz@1173 144 <value name="ui" field="ui" style="attribute" usage="optional"/>
peterz@1173 145 <value name="subregion" field="subregion" style="attribute"/>
peterz@1173 146 <value name="key" field="key" style="attribute" usage="optional"/>
peterz@1173 147 <value name="title" field="title" style="attribute" usage="optional"/>
peterz@1173 148 <structure name="contentMargins" field="contentMargins"
peterz@1173 149 marshaller="org.jdesktop.swingx.designer.jibxhelpers.InsetsMapper"
peterz@1173 150 unmarshaller="org.jdesktop.swingx.designer.jibxhelpers.InsetsMapper"/>
peterz@1173 151 <structure name="style" field="style"/>
peterz@1173 152 <collection name="backgroundStates" field="backgroundStates" create-type="java.util.ArrayList"/>
peterz@1173 153 <collection name="foregroundStates" field="foregroundStates" create-type="java.util.ArrayList"/>
peterz@1173 154 <collection name="borderStates" field="borderStates" create-type="java.util.ArrayList"/>
peterz@1173 155 <collection name="regions" field="subRegions" create-type="java.util.ArrayList"/>
peterz@1173 156 </mapping>
peterz@1173 157 <mapping name="region" class="org.jdesktop.synthdesigner.synthmodel.UIRegion">
peterz@1173 158 <structure map-as="region"/>
peterz@1173 159 </mapping>
peterz@1173 160 <mapping name="uiIconRegion" class="org.jdesktop.synthdesigner.synthmodel.UIIconRegion"
peterz@1173 161 extends="org.jdesktop.synthdesigner.synthmodel.UIRegion">
peterz@1173 162 <structure map-as="region"/>
peterz@1173 163 <value name="basicKey" field="basicKey" style="attribute" usage="optional"/>
peterz@1173 164 </mapping>
peterz@1173 165 <mapping name="uiComponent" class="org.jdesktop.synthdesigner.synthmodel.UIComponent"
peterz@1173 166 extends="org.jdesktop.synthdesigner.synthmodel.UIRegion">
peterz@1173 167 <value name="opaque" field="opaque" style="attribute"/>
peterz@1173 168 <value name="componentName" field="componentName" style="attribute" usage="optional"/>
peterz@1173 169 <value name="type" field="type" style="attribute"/>
peterz@1173 170 <collection name="stateTypes" field="stateTypes" create-type="java.util.ArrayList"/>
peterz@1173 171 <structure map-as="region"/>
peterz@1173 172 </mapping>
peterz@1173 173 <!-- == BASE MODEL =========================================================================================== -->
peterz@1173 174 <mapping name="synthModel" class="org.jdesktop.synthdesigner.synthmodel.SynthModel" pre-set="preSet">
peterz@1173 175 <collection name="insets" field="insets" create-type="java.util.ArrayList"/>
peterz@1173 176 <collection name="colors" field="colors" create-type="java.util.ArrayList"/>
peterz@1173 177 <collection name="fonts" field="fonts" create-type="java.util.ArrayList"/>
peterz@1173 178 <structure name="style" field="globalStyle"/>
peterz@1173 179 <collection name="components" field="components" create-type="java.util.ArrayList"/>
peterz@1173 180 </mapping>
peterz@1173 181 </binding>