Package vg.userInterface.swingComponents

Examples of vg.userInterface.swingComponents.ValueComboBox


   */
  public synchronized String getRequest(String vertexVariable, final int what) {
    StringBuffer request = new StringBuffer(4 * 1024);
    for(int i = 0; i < this.leftParts.size(); i++) {
      JComboBox nameCB = this.leftParts.get(i);
      ValueComboBox valueCB = this.rightParts.get(i);
      String name = (String)nameCB.getSelectedItem();
      String value = valueCB.getSelectedItem();
      //replace * and ? to % and _
      value.replace('*', '%');
      value.replace('?', '_');
      if(name != null && value != null) {
        if(what == 0) {
View Full Code Here


    Object[] array = this.dataAttributes.keySet().toArray();
    Arrays.sort(array);
    JComboBox cbName = new JComboBox(array);
    this.leftParts.add(cbName);
    String obj = (String)cbName.getSelectedItem();//get selecting attribute
    ValueComboBox cbValue = null;
    if(obj == null) {
      VisualGraph.log.printDebug("[" + this.getClass().getName() + ".plus] selected attribute = null");
      cbValue = new ValueComboBox();
    } else {
      Set<String>value = this.dataAttributes.get(obj);
      if(value != null) {
        array = value.toArray();
        Arrays.sort(array);
        cbValue = new ValueComboBox(array);
      } else {
        cbValue = new ValueComboBox();
      }
    }
    this.rightParts.add(cbValue);
    //create delete button
    JButton delete = new JButton("Delete");
View Full Code Here

  }
  public synchronized String getRequest(String vertexVariable, final int what) {
    StringBuffer request = new StringBuffer(4 * 1024);
    for(int i = 0; i < this.leftParts.size(); i++) {
      JComboBox nameCB = this.leftParts.get(i);
      ValueComboBox valueCB = this.rightParts.get(i);
      String name = (String)nameCB.getSelectedItem();
      String value = valueCB.getSelectedItem();
      //replace * and ? to % and _
      value.replace('*', '%');
      value.replace('?', '_');
      if(name != null && value != null) {
        if(what == 0) {
View Full Code Here

    Object[] array = this.dataAttributes.keySet().toArray();
    Arrays.sort(array);
    JComboBox cbName = new JComboBox(array);
    this.leftParts.add(cbName);
    String obj = (String)cbName.getSelectedItem();//get selecting attribute
    ValueComboBox cbValue = null;
    if(obj == null) {
      VisualGraph.log.printDebug("[" + this.getClass().getName() + ".plus] selected attribute = null");
      cbValue = new ValueComboBox();
    } else {
      Set<String>value = this.dataAttributes.get(obj);
      if(value != null) {
        array = value.toArray();
        Arrays.sort(array);
        cbValue = new ValueComboBox(array);
      } else {
        cbValue = new ValueComboBox();
      }
    }
    this.rightParts.add(cbValue);
    //create delete button
    JButton delete = new JButton("Delete");
View Full Code Here

    this.cancelButton = new JButton("Cancel");
   
    this.connectionLabel = new JLabel("Connection name: ");
    this.graphLabel = new JLabel("Graph model: ");
    this.anchorLabel = new JLabel("Anchor: ");
    this.anchorComboBox = new ValueComboBox();
    this.connectionField = new JTextField("");
    this.graphComboBox = new GraphComboBox();
    // add listeners
    this.cancelButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here

TOP

Related Classes of vg.userInterface.swingComponents.ValueComboBox

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.