View definitions for the Slider example.

Enterprise Java
XMLTalk: A framework for automatic GUI rendering from XML specs
by Frank Sauer
Listing 2. View definitions for the Slider example.


<VIEWS>
      <VIEW name=“main” title=“Test Slider”>
        <LAYOUTMANAGER>
           <GRIDBAGLAYOUT/>
        </LAYOUTMANAGER>
        <SCROLLBAR  name=“verticalscroll”
                           model=“range”
                           orientation=“VERTICAL”
                           blockincrement=“25”
                           unitincrement=“5”>
            <CONSTRAINTS>
               <GRIDBAG  gridheight=“REMAINDER”
                                 fill=“VERTICAL”
                                 weighty=“1.0”/>
            </CONSTRAINTS>
        </SCROLLBAR>
        <PROGRESSBAR  name=“verticalProgress”
                              model=“range”
                              orientation=“VERTICAL”
                              paintstring=“true”>
           <CONSTRAINTS>
                <GRIDBAG  gridheight=“REMAINDER”
                                  fill=“VERTICAL”
                                  weighty=“1.0”/>
             </CONSTRAINTS>
       </PROGRESSBAR>
       <SLIDER  name=“slider_vert” model=“range”
                      orientation=“VERTICAL”
                      labels=“true”
                      ticks=“true” track=“true”
                      major=“25” minor=“5” filled=“true”
                      snap=“true”>
             <CONSTRAINTS>
                  <GRIDBAG  fill=“VERTICAL”
                                     weighty=“1.0”
                                     gridheight=“REMAINDER”/>
           </CONSTRAINTS>
       </SLIDER>
       <LABEL name=“l1” text=“Min:”/>
       <INPUTFIELD  name=“f1” model=“min”
                           decimalformat=“###”
                           type=“Integer”/>
       <LABEL name=“l2” text=“Max”/>
       <INPUTFIELD  name=“f2” model=“max”
                           decimalformat=“###”
                           type=“Integer”>
             <CONSTRAINTS>
                 <GRIDBAG gridwidth=“REMAINDER”/>
     </CONSTRAINTS>
</INPUTFIELD>
<LABEL name=“l3” text=“Extent:”/>
<INPUTFIELD  name=“f3” model=“extent”
                  decimalformat=“###”
                  type=“Integer”/>
<LABEL name=“l4” text=“Value:”/>
<INPUTFIELD  name=“f4” model=“value”
                  decimalformat=“###”
                  type=“Integer”>
      <CONSTRAINTS>
         <GRIDBAG gridwidth=“REMAINDER”/>
      </CONSTRAINTS>
</INPUTFIELD>
<SLIDER  name=“slider_hor” model=“range”
             orientation=“HORIZONTAL”
             labels=“true”
             ticks=“true” track=“true”
             major=“25” minor=“5” filled=“true”
             snap=“true”>
      <CONSTRAINTS>
        <GRIDBAG  gridwidth=“REMAINDER”
                        fill=“HORIZONTAL”
                        weightx=“1.0”/>
      </CONSTRAINTS>
</SLIDER>
<PROGRESSBAR  name=“horizontalprogress”
                   model=“range”
                   orientation=“HORIZONTAL”
                   paintstring=“true”>
      <CONSTRAINTS>
                  <GRIDBAG  gridwidth=“REMAINDER”
                                     fill=“HORIZONTAL”
                                     weightx=“1.0”/>
     </CONSTRAINTS>
</PROGRESSBAR>
<SCROLLBAR  name=“horizontalscroll”
                 model=“range”
                 orientation=“HORIZONTAL”
                 blockincrement=“25”
                 unitincrement=“5”>
      <CONSTRAINTS>
                 <GRIDBAG  gridwidth=“REMAINDER”
                                    fill=“HORIZONTAL”
                                    weightx=“1.0”/>
     </CONSTRAINTS>
</SCROLLBAR>
</VIEW>
</VIEWS>

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.