View Javadoc

1   /*
2   $Id: BidimResourcesManager.java 706 2005-03-21 16:20:16Z guest $
3   */
4   
5   
6   /*
7   Copyright (C) 2001-2002 Mainline Project (I3S - ESSI - CNRS -UNSA)
8   
9   This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13  
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  Lesser General Public License for more details.
18  
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  
23  For further information on the GNU Lesser General Public License,
24  see: http://www.gnu.org/copyleft/lesser.html
25  For further information on this library, contact: mainline@essi.fr
26  */
27  
28  
29  package fr.ove.openmath.jome.ctrlview.bidim;
30  
31  import fr.ove.utils.CachingResourcesManager;
32  
33  /***
34  * The resources manager for the rendering formula.<BR>
35  * The different resources take the following syntax : (see the resources files for more details)
36  *       modelId = idDisplay:layoutManager
37  *
38  * @author © 2000 DIRAT Laurent
39  * @version 2.0  03/01/2000
40  */
41  public class BidimResourcesManager extends CachingResourcesManager {
42      /***
43      * The Constructor.
44      * @param resourcesName the name of the resources file.
45      */
46      public BidimResourcesManager(String resourcesName) {
47          super(resourcesName);
48      }
49      
50      /***
51      * Returns the display identificator of the specified property.
52      * @param property the specified property
53      */
54      public String getIdDisplay(String property) {
55          return accessResource(property, 0);
56      }
57      
58      /***
59      * Returns the class name of the layout manager corresponding to the specified property.
60      * @param property the specified property
61      */
62      public String getLayoutManager(String property) {
63          return accessResource(property, 1);
64      }
65      
66  	public String getDisplayString(String property) {
67  		return accessResource(property, 2);
68  	}    
69          
70  }