[Ejtools-cvs] applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web SearchTypeC
Brought to you by:
letiemble
From: <let...@us...> - 2002-05-30 22:37:56
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web In directory usw-pr-cvs1:/tmp/cvs-serv18235/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web Modified Files: Constants.java JNDIContainer.java Added Files: SearchTypeConstants.java Log Message: Basic Web App --- NEW FILE: SearchTypeConstants.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.web; import java.io.Serializable; import java.util.Collection; import java.util.ResourceBundle; import java.util.Vector; import net.sourceforge.ejtools.jndibrowser.model.Server; /** * Custom editor for the search depth. * * @author letiemble * @created 2 janvier 2002 * @version $Revision: 1.3 $ */ public class SearchTypeConstants implements Serializable { /** Description of the Field */ protected Vector labels; /** Description of the Field */ protected Vector values; /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("ApplicationResources"); /** Constructor for the SearchTypeEditor object */ public SearchTypeConstants() { labels = new Vector(); labels.add(res.getString("text.editor.SearchTypeEditor.shallow")); labels.add(res.getString("text.editor.SearchTypeEditor.deep")); values = new Vector(); values.add(new Integer(Server.SHALLOW_SEARCH)); values.add(new Integer(Server.DEEP_SEARCH)); } /** * Gets the labels attribute of the SearchTypeConstants object * * @return The labels value */ public Collection getLabels() { return labels; } /** * Gets the values attribute of the SearchTypeConstants object * * @return The values value */ public Collection getValues() { return values; } } Index: Constants.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web/Constants.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Constants.java 25 May 2002 20:54:10 -0000 1.2 --- Constants.java 30 May 2002 22:37:53 -0000 1.3 *************** *** 23,28 **** /** Description of the Field */ public final static String DETAIL_INFO = "detail.info"; ! public final static String DETAIL_INFO_DESCRIPTOR="detail.info.descriptor"; ! public final static String DETAIL_INFO_PROPERTIES="detail.info.properties"; /** Description of the Field */ public final static String DOMAIN = "domain"; --- 23,30 ---- /** Description of the Field */ public final static String DETAIL_INFO = "detail.info"; ! /** Description of the Field */ ! public final static String DETAIL_INFO_DESCRIPTOR = "detail.info.descriptor"; ! /** Description of the Field */ ! public final static String DETAIL_INFO_PROPERTIES = "detail.info.properties"; /** Description of the Field */ public final static String DOMAIN = "domain"; Index: JNDIContainer.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web/JNDIContainer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JNDIContainer.java 24 May 2002 21:19:13 -0000 1.1 --- JNDIContainer.java 30 May 2002 22:37:53 -0000 1.2 *************** *** 50,61 **** - /** Description of the Method */ - public void connect() - { - server.connect(); - registerContent(server); - } - - /** * Getter for the server attribute --- 50,53 ---- *************** *** 73,76 **** --- 65,69 ---- { server.refresh(); + registerContent(server); } *************** *** 100,103 **** --- 93,107 ---- { server.setContext(context); + } + + + /** + * Sets the searchType attribute of the JNDIContainer object + * + * @param searchType The new searchType value + */ + public void setSearchType(int searchType) + { + server.setSearchType(searchType); } |