Changeset 2159


Ignore:
Timestamp:
2001-03-12T13:23:03+13:00 (23 years ago)
Author:
say1
Message:

many changes to the import lines ...

Location:
trunk/java-client/org/nzdl/gsdl
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/CSFrame.java

    r2144 r2159  
    2020
    2121
    22 import javax.swing.*;
    23 import javax.swing.border.*;
     22import javax.swing.JMenuItem;
     23import javax.swing.JMenuBar;
     24import javax.swing.JPanel;
     25import javax.swing.JFrame;
     26import javax.swing.JList;
     27import javax.swing.JPopupMenu;
     28import javax.swing.BoxLayout;
     29import javax.swing.JMenu;
     30import javax.swing.AbstractAction;
     31import javax.swing.SwingUtilities;
     32import javax.swing.KeyStroke;
     33
    2434import java.awt.*;
    2535import java.awt.event.*;
    26 import java.util.*;
     36import java.util.Observer;
     37import java.util.Observable;
    2738/**
    2839 * Class
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/CSModel.java

    r2154 r2159  
    1919package org.nzdl.gsdl.SimpleGraphicalClient;
    2020
    21 import java.util.*;
    22 import javax.swing.*;
     21import java.util.Set;
     22import java.util.TreeSet;
     23import java.util.Iterator;
     24import java.util.Vector;
    2325
    2426// local libraries
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Result.java

    r2147 r2159  
    1919package org.nzdl.gsdl.SimpleGraphicalClient;
    2020
    21 import java.io.*;
    2221/**
    2322 * Class
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/ResultModel.java

    r2143 r2159  
    1919package org.nzdl.gsdl.SimpleGraphicalClient;
    2020
    21 import java.util.*;
    2221import javax.swing.event.*;
    23 import javax.swing.*;
     22import javax.swing.DefaultListModel;
    2423
    2524/**
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java

    r2154 r2159  
    2121import java.awt.*;
    2222import java.awt.event.*;
    23 import java.io.*;
     23import java.io.StringReader;
     24import java.io.IOException;
    2425import java.util.*;
    2526import javax.swing.*;
    26 import javax.swing.border.*;
    2727import javax.swing.event.*;
    2828import javax.swing.text.*;
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SimpleGraphicalClient.java

    r2145 r2159  
    2121package org.nzdl.gsdl.SimpleGraphicalClient;
    2222
    23 import java.awt.*;
    24 import javax.swing.*;
    25 import java.util.*;
    26 import java.io.*;
    27 import java.net.URL;
    28 
    29 // long live GNU ...
    30 import gnu.getopt.Getopt;
    31 import gnu.getopt.LongOpt;
     23import java.awt.Dimension;
     24import java.awt.Toolkit;
    3225
    3326// local libraries
     
    5750 * @see org.nzdl.gsdl.service.NzdlResultSet
    5851 * @see org.nzdl.gsdl.service.NzdlService
    59  * @see org.nzdl.gsdl.service.NzdlServiceImpl
     52 * @see org.nzdl.gsdl.service.NzdlServiceClient
    6053 * @see org.nzdl.gsdl.util.NzdlIORs;
    61  * @see gnu.getopt.Getopt;
    62  * @see gnu.getopt.LongOpt;
    6354 */
    6455
     
    6657public class SimpleGraphicalClient implements Cloneable {
    6758
    68     CSModel csModel;
    69     CSFrame window;
    70    
    71  
     59  CSModel csModel;
     60  CSFrame window;
     61 
     62  
    7263  /** The underlying CORBA inferface */
    7364  NzdlService nzdl = null;
  • trunk/java-client/org/nzdl/gsdl/service/NzdlQuery.java

    r2108 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.HashMap;
     24import java.util.Map;
     25import java.util.Set;
     26import java.util.Collection;
     27
    2428import org.nzdl.gsdl.util.NzdlConstants;
    2529
  • trunk/java-client/org/nzdl/gsdl/service/NzdlQueryHit.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.Map;
     24import java.util.Set;
     25import java.util.Collection;
    2426
    2527/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlRequest.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
     23import java.util.List;
     24
    2325import org.nzdl.gsdl.corba.gsdlInterface.*;
    2426import org.nzdl.gsdl.util.*;
    25 import java.util.*;
    2627
    2728/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResponse.java

    r2152 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.HashMap;
     24import java.util.HashSet;
     25import java.util.Map;
     26import java.util.Set;
     27import java.util.List;
     28import java.util.ArrayList;
    2429
    2530import org.nzdl.gsdl.service.*;
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResultSet.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.Set;
     24import java.util.Map;
     25import java.util.List;
     26import java.util.ArrayList;
     27import java.util.HashMap;
     28import java.util.ListIterator;
     29
    2430
    2531/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlService.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.Set;
     24import java.util.Map;
     25import java.util.List;
    2426
    2527/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlServiceServer.java

    r2119 r2159  
    2525import java.io.Serializable;
    2626import java.lang.Cloneable;
    27 import java.util.*;
    28 
    29 // HelloServer will use the naming service.
    30 import org.omg.CosNaming.*;
    31 // The package containing special exceptions thrown by the name service.
    32 //import org.omg.CosNaming.NamingContextPackage.*;
    33 // All CORBA applications need these classes.
     27import java.util.Set;
     28import java.util.Iterator;
     29
    3430import org.omg.CORBA.ORB;
    3531
     
    4642
    4743/**
    48  * SimpleServer
    49  *
    50  * Based on algorithms in ...
     44 * Act as a Server.
     45 *
     46 * Designed as a mirror image of NzdlServiceClient
    5147 *
    5248 * @author stuart yeates ([email protected])
    5349 * @version $Revision$
    54 
     50 * @see org.nzdl.gsdl.service.NzdlService
     51 * @see org.nzdl.gsdl.service.NzdlServiceClient
     52 * @see org.nzdl.gsdl.service.NzdlServiceWrapper
     53 * @see org.nzdl.gsdl.corba.gsdlInterface._corbaifaceImplBase
    5554 *
    5655 */
     
    5958public class NzdlServiceServer extends _corbaifaceImplBase {
    6059
     60  /** The underlying interface */
    6161  NzdlService nzdl = null;
    6262 
     63  /** The normal constructor */
    6364  public NzdlServiceServer(NzdlService service) {
    6465    nzdl = service;
    6566  }
    6667
    67   public NzdlServiceServer() {
     68  /** The beans constructor */
     69  protected NzdlServiceServer() {
    6870    nzdl = null;
    6971  }
    7072
     73  /** initialisation (not guaranteed to be called ...) */
    7174  public boolean initialise (corbaComErrorHolder error) {
    7275    // TODO should map the anything in NzdlService?
     
    7679    return true;
    7780  }
     81 
     82  /**
     83   * Allow the client to configure a CORBA server.
     84   * @param key the parameter to be set.
     85   * @param values what that parameter will be set to.
     86   */
    7887  public void configure (corbatext_t key,
    7988             corbatext_t[] cfgline,
     
    8796  }
    8897
     98
     99  /**
     100   * Obtain the set of collection names for a Greenstone library.
     101   * @param collist A set of collection names in string format.
     102   * @param error a corba error object
     103   */
    89104  public void collectionList (corbatext_tarrayHolder collist,
    90105                  corbaComErrorHolder error) {
     
    108123    return;
    109124  }
     125  /**
     126   * Does the server have a specific collections?
     127   * @param has a boolean
     128   * @param error a corba error object
     129   */
    110130  public void hasCollection (corbatext_t corbaCollection,
    111131                 org.omg.CORBA.BooleanHolder has,
     
    122142    return;
    123143  }
     144  /**
     145   * Is the collection avalibale for use?
     146   * @param error a corba error object
     147   * @return <tt>true</tt> if the collection is avaliable,
     148   *    <tt>false</tt> otherwise
     149   */
    124150  public boolean ping (corbatext_t collection,
    125151               corbaComErrorHolder error) {
     
    127153    return  nzdl.hasCollection(name);
    128154  }
     155
     156  /**
     157   * Get a document
     158   * @param collection the collection the document is in
     159   * @param request the details of the document
     160   * @param response the document
     161   * @param error a corba error object
     162   */
    129163  public void getDocument (corbatext_t collection,
    130164               corbaDocRequestHolder request,
  • trunk/java-client/org/nzdl/gsdl/util/NzdlCorbaFactory.java

    r2155 r2159  
    2121package org.nzdl.gsdl.util;
    2222
    23 import java.util.*;
     23import java.util.Set;
     24import java.util.HashSet;
     25import java.util.List;
     26import java.util.ListIterator;
     27
    2428import org.nzdl.gsdl.service.NzdlQuery;
    2529import org.nzdl.gsdl.corba.gsdlInterface.*;
  • trunk/java-client/org/nzdl/gsdl/util/NzdlHosts.java

    r2124 r2159  
    3535import org.omg.CORBA.Object;
    3636import org.omg.CORBA.ORB;
    37 import org.nzdl.gsdl.service.*;
    3837import java.net.URL;
    3938
     39import org.nzdl.gsdl.service.*;
    4040
    4141/**
  • trunk/java-client/org/nzdl/gsdl/util/NzdlIORs.java

    r2157 r2159  
    2020// the package we're in
    2121package org.nzdl.gsdl.util;
    22 
    23 // long live GNU ...
    24 import gnu.getopt.Getopt;
    25 import gnu.getopt.LongOpt;
    2622
    2723// java libraries we're using
Note: See TracChangeset for help on using the changeset viewer.