01:package com.xoetrope.xbb;
02:
03:import net.xoetrope.optional.annotation.XPageAnnotationProcessor;
04:import net.xoetrope.optional.annotation.Find;
05:
06:import net.xoetrope.swing.XLabel;
07:import net.xoetrope.xui.XPage;
08:import net.xoetrope.xui.annotation.XAnnotatedPage;
09:
10:
11:/**
12: * A welcome page for XBB. The page performs some inital setup for languages
13: * and database loading
14: *
15: * <p> Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
16: * the GNU Public License (GPL), please see license.txt for more details. If
17: * you make commercial use of this software you must purchase a commercial
18: * license from Xoetrope.</p>
19: * @author luano
20: */
21:public class XbbBodyPage extends XPage implements XAnnotatedPage
22:{
23: @Find private XLabel versionLabel, dbVersionLabel;
24:
25: /** Creates a new instance of Welcome */
26: public XbbBodyPage()
27: {
28: }
29:
30: protected void displayVersion()
31: {
32: if ( versionLabel != null )
33: versionLabel.setText( Welcome.VERSION_NUMBER + "." + Welcome.BUILD_NUMBER );
34:
35: if ( dbVersionLabel != null )
36: dbVersionLabel.setText( Welcome.VERSION_NUMBER + "." + Welcome.DATABASE_VERSION_NUMBER );
37: }
38:}
|