Changeset 543


Ignore:
Timestamp:
11/20/09 21:42:18 (2 years ago)
Author:
octorian
Message:
 
Location:
trunk
Files:
5 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/J2MEUnit

    • Property svn:ignore
      •  

        old new  
        1212.BlackBerryPreprocessed 
        1313.preprocessed 
         14deliverables 
  • trunk/J2MEUnit/src/j2meunit/rimui/TestConsoleScreen.java

    r305 r543  
    2323import net.rim.device.api.ui.Field; 
    2424import net.rim.device.api.ui.Font; 
    25 import net.rim.device.api.ui.FontFamily; 
    2625import net.rim.device.api.ui.Graphics; 
    2726import net.rim.device.api.ui.MenuItem; 
     
    4039 */ 
    4140public class TestConsoleScreen extends MainScreen implements TreeFieldCallback, TestListener { 
     41        private LabelField titleLabel; 
    4242    private LabelField statusLabel; 
    4343    private LabelField failureLabel; 
     
    8585     
    8686    private void initializeFields() { 
    87         try { 
    88             FontFamily theFam = FontFamily.forName("SYSTEM"); 
    89             Font theFont = theFam.getFont(Font.PLAIN, 12); 
    90             Font.setDefaultFont(theFont); 
    91         } catch(Exception e) { } 
    92         add(new LabelField("J2MEUnit " + j2meunit.util.Version.id())); 
     87        Font labelFont = Font.getDefault().derive(Font.PLAIN, 12); 
     88        Font treeFont = Font.getDefault().derive(Font.PLAIN, 14); 
     89                 
     90                titleLabel = new LabelField("J2MEUnit " + j2meunit.util.Version.id()); 
     91                titleLabel.setFont(labelFont); 
    9392        statusLabel = new LabelField("Status: Idle"); 
    94         add(statusLabel); 
     93        statusLabel.setFont(labelFont); 
    9594        failureLabel = new LabelField("Failures: 0"); 
    96         add(failureLabel); 
     95        failureLabel.setFont(labelFont); 
    9796        errorLabel = new LabelField("Errors: 0"); 
    98         add(errorLabel); 
     97        errorLabel.setFont(labelFont); 
    9998        timeLabel = new LabelField("Time: n/a"); 
    100         add(timeLabel); 
     99        timeLabel.setFont(labelFont); 
    101100        progressGauge = new GaugeField(null, 0, 100, 0, GaugeField.NO_TEXT); 
    102         add(progressGauge); 
    103         add(new SeparatorField()); 
     101        progressGauge.setFont(labelFont); 
    104102         
    105103        testTreeField = new TreeField(this, Field.FOCUSABLE); 
     
    107105        testTreeField.setDefaultExpanded(true); 
    108106        testTreeField.setIndentWidth(20); 
     107        testTreeField.setFont(treeFont); 
     108        testTreeField.setRowHeight(treeFont.getHeight() + 2); 
     109         
     110        add(titleLabel); 
     111        add(statusLabel); 
     112        add(failureLabel); 
     113        add(errorLabel); 
     114        add(timeLabel); 
     115        add(progressGauge); 
     116        add(new SeparatorField()); 
    109117        add(testTreeField); 
    110118    } 
     
    399407        new Thread() { 
    400408            public void run() { 
     409                Thread.yield(); 
    401410                try { 
    402411                    doRun(selectedTest); 
  • trunk/LogicMail

    • Property svn:ignore
      •  

        old new  
        1818.locale_interfaces 
        1919.preprocessed 
         20deliverables 
  • trunk/LogicMailStartup

    • Property svn:ignore
      •  

        old new  
        1313.BlackBerryPreprocessed 
        1414.preprocessed 
         15deliverables 
  • trunk/LogicMailStartup/BlackBerry_App_Descriptor.xml

    r542 r543  
    33  <Application Type="BlackBerry Application" MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/> 
    44  <Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId=""> 
    5     <Icons/> 
     5    <Icons> 
     6      <Icon CanonicalFileName="res/icons/logicmail.png" IsFocus="false"/> 
     7      <Icon CanonicalFileName="res/icons/logicmail-rollover.png" IsFocus="true"/> 
     8    </Icons> 
    69  </Resources> 
    710  <Compile OutputCompilerMessages="false" ConvertImages="false" CreateWarningForNoExportedRoutine="true" CompressResources="false" AliasList=""> 
  • trunk/LogicMailTests

    • Property svn:ignore
      •  

        old new  
        1313.BlackBerryPreprocessed 
        1414.preprocessed 
         15deliverables 
  • trunk/LogicMailTests/BlackBerry_App_Descriptor.xml

    r538 r543  
    33  <Application Type="BlackBerry Application" MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/> 
    44  <Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId=""> 
    5     <Icons/> 
     5    <Icons> 
     6      <Icon CanonicalFileName="res/icons/logicmail-tests.png" IsFocus="false"/> 
     7    </Icons> 
    68  </Resources> 
    79  <Compile OutputCompilerMessages="false" ConvertImages="false" CreateWarningForNoExportedRoutine="true" CompressResources="false" AliasList=""> 
  • trunk/LogicMail_BB47

    • Property svn:ignore
      •  

        old new  
        1010bin 
        1111.preprocessed 
         12deliverables 
Note: See TracChangeset for help on using the changeset viewer.