Revision 41312 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/theme/Theme.java

View differences:

Theme.java
68 68
    private static final String TIMER = "timer";
69 69
    private static final String ICON = "Icon";
70 70
    private static final String APPLICATION_NAME = "ApplicationName";
71
    private static final String PRIORITY = "priority";
71 72
    private static final String VALUE = "value";
72 73
    private static final String BACKGROUND_IMAGE = "BackgroundImage";
73 74
    private static final String WALLPAPER_TYPE = "WallpaperType";
......
91 92
    private String name = null;
92 93
    private String backgroundimage;
93 94
    private String wallpaperType = CENTERED;
95
    private int priority = 0;
94 96

  
95 97
    /**
96 98
     * Spurce file of the theme *
......
185 187
                            name = expand(parser.getAttributeValue("", VALUE));
186 188
                            tag = parser.next();
187 189
                        }
190
                        if ( parser.getName().compareTo(PRIORITY) == 0 ) {
191
                            String s = parser.getAttributeValue("", VALUE);
192
                            try {
193
                                this.priority = Integer.parseInt(s);
194
                            } catch(Exception ex) {
195
                                this.priority = 0;
196
                            }
197
                            tag = parser.next();
198
                        }
188 199
                        break;
189 200

  
190 201
                    case XmlPullParser.END_TAG:
......
372 383
        }
373 384
        return strSubstitutor.replace(value);
374 385
    }
386
    
387
    public int getPriority() {
388
        return this.priority;
389
    }
375 390
}

Also available in: Unified diff