Package com.dbxml.db.admin.swing

Examples of com.dbxml.db.admin.swing.PropertyInfo


   public CollectionDialog(Frame owner, CollectionClient col) {
      super(owner, true);

      this.col = col;

      PropertyInfo pageSize = new PropertyInfo("pagesize", "Page Size", "4096", true, PropertyInfo.TYPE_INT);
      PropertyInfo directory = new PropertyInfo("location", "Directory", "", true);
      PropertyInfo extensions = new PropertyInfo("ext", "Extensions", "xml xsl xsd xhtml svg");
      PropertyInfo readOnly = new PropertyInfo("readonly", "Read Only", "false", false, PropertyInfo.TYPE_BOOLEAN);
      properties[0] = new ArrayList();
      properties[0].add(pageSize);

      properties[1] = new ArrayList();

      properties[2] = new ArrayList();
      properties[2].add(directory);
      properties[2].add(extensions);
      properties[2].add(readOnly);

      properties[3] = new ArrayList();
      properties[3].add(new PropertyInfo("driver", "Driver Class", "", true));
      properties[3].add(new PropertyInfo("url", "JDBC URL", "", true));
      properties[3].add(new PropertyInfo("username", "User Name"));
      properties[3].add(new PropertyInfo("password", "Password", "", false, PropertyInfo.TYPE_PASSWORD));
      properties[3].add(new PropertyInfo("mapfile", "Map File"));
      properties[3].add(new PropertyInfo("namespace", "Output Namespace"));
      properties[3].add(new PropertyInfo("sort", "Record Sorting", "true", false, PropertyInfo.TYPE_BOOLEAN));
      properties[3].add(new PropertyInfo("distinct", "Distinct Records", "true", false, PropertyInfo.TYPE_BOOLEAN));
      properties[3].add(new PropertyInfo("passthru", "SQL Passthru", "false", false, PropertyInfo.TYPE_BOOLEAN));

      properties[4] = new ArrayList();
      properties[4].add(pageSize);

      properties[5] = new ArrayList();
View Full Code Here


         Element filer = doc.createElement("filer");
         filer.setAttribute("class", Filers[idx].filerClass.getName());

         PropertyInfo[] props = propertyPane.getProperties();
         for ( int i = 0; i < props.length; i++ ) {
            PropertyInfo pi = props[i];
            String value = pi.getValue();
            if ( value.trim().length() > 0 )
               filer.setAttribute(pi.getName(), value);
         }
         root.appendChild(filer);

         root.appendChild(doc.createElement("indexes"));
         root.appendChild(doc.createElement("triggers"));
View Full Code Here

   };

   public ConnectDialog(Frame owner) {
      super(owner, true);

      PropertyInfo user = new PropertyInfo(dbXMLClient.USER, "User Name");
      PropertyInfo pass = new PropertyInfo(dbXMLClient.PASS, "Password", "", false, PropertyInfo.TYPE_PASSWORD);

      properties[0] = new ArrayList();
      properties[0].add(new PropertyInfo("connection", "Connection Type", "standard", true));
      properties[0].add(new PropertyInfo(dbXMLClient.HOST, "Server Host Name", dbXML.DEFAULT_HOST, true));
      properties[0].add(new PropertyInfo(dbXMLClient.PORT, "Server Port", Integer.toString(dbXML.DEFAULT_PORT), true, PropertyInfo.TYPE_INT));
      properties[0].add(user);
      properties[0].add(pass);

      properties[1] = new ArrayList();
      properties[1].add(user);
View Full Code Here

         okClicked = true;
         dbXMLClient client = (dbXMLClient)DriverClasses[cmbDriver.getSelectedIndex()].newInstance();

         PropertyInfo[] props = propertyPane.getProperties();
         for ( int i = 0; i < props.length; i++ ) {
            PropertyInfo pi = props[i];
            String value = pi.getValue();
            if ( value.trim().length() > 0 )
               client.setProperty(pi.getName(), value);
         }

         String label = txtLabel.getText();

         Admin.getInstance().browser.addClient(client, label);
View Full Code Here

   public IndexDialog(Frame owner, CollectionClient col) {
      super(owner, true);

      this.col = col;

      PropertyInfo pattern = new PropertyInfo("pattern", "Pattern", "", true);
      PropertyInfo pageSize = new PropertyInfo("pagesize", "Page Size", "4096", false, PropertyInfo.TYPE_INT);

      properties[0] = new ArrayList();
      properties[0].add(pattern);
      properties[0].add(pageSize);

      properties[1] = new ArrayList();
      properties[1].add(pattern);
      properties[1].add(pageSize);

      properties[2] = new ArrayList();
      properties[2].add(pattern);
      properties[2].add(pageSize);

      properties[3] = new ArrayList();
      properties[3].add(pattern);
      properties[3].add(pageSize);

      properties[4] = new ArrayList();
      properties[4].add(pattern);
      properties[4].add(pageSize);

      properties[5] = new ArrayList();
      properties[5].add(pattern);
      properties[5].add(pageSize);

      properties[6] = new ArrayList();
      properties[6].add(pattern);
      properties[6].add(pageSize);

      properties[7] = new ArrayList();
      properties[7].add(pattern);
      properties[7].add(pageSize);

      properties[8] = new ArrayList();
      properties[8].add(pattern);
      properties[8].add(pageSize);
      properties[8].add(new PropertyInfo("stemmer", "Stemmer Class"));
      properties[8].add(new PropertyInfo("stopwords", "Stop Word List"));
      properties[8].add(new PropertyInfo("rollcase", "Case Rolling", "true", false, PropertyInfo.TYPE_BOOLEAN));

      propertyPane.addProperties(properties[0]);
      propertyPane.checkValidity();

      enableEvents(AWTEvent.WINDOW_EVENT_MASK);
View Full Code Here

            root.setAttribute("type", Indexers[idx].type);
         doc.appendChild(root);

         PropertyInfo[] props = propertyPane.getProperties();
         for ( int i = 0; i < props.length; i++ ) {
            PropertyInfo pi = props[i];
            String value = pi.getValue();
            if ( value.trim().length() > 0 )
               root.setAttribute(pi.getName(), value);
         }
         col.createIndexer(doc);

         hide();
      }
View Full Code Here

TOP

Related Classes of com.dbxml.db.admin.swing.PropertyInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.