Package com.commander4j.db

Examples of com.commander4j.db.JDBAutoLabellerResources


              for (int j = listAllResources.getMaxSelectionIndex(); j >= listAllResources.getMinSelectionIndex(); j--)
              {
                if (listAllResources.isSelectedIndex(j))
                {
                  String item = (String) listAllResources.getModel().getElementAt(j);
                  JDBAutoLabellerResources po = new JDBAutoLabellerResources(Common.selectedHostID, Common.sessionID);
                  po.create(jTextFieldType.getText(),comboBox4jGroup.getSelectedItem().toString() ,item);
                }
              }
              populateListAssignedResources(jTextFieldType.getText(),comboBox4jGroup.getSelectedItem().toString(),"");
              populateListAllResources();
              jButtonUpdate.setEnabled(true);
            }
          }
        });
        jButtonAssignResource.setBounds(254, 283, 26, 24);
        jDesktopPane1.add(jButtonAssignResource);
       
        JButton4j jButtonUnAssignResource = new JButton4j(Common.icon_arrow_right);
        jButtonUnAssignResource.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            if (listAssignedResources.getSelectedIndex() > -1)
            {
              for (int j = listAssignedResources.getMaxSelectionIndex(); j >= listAssignedResources.getMinSelectionIndex(); j--)
              {
                if (listAssignedResources.isSelectedIndex(j))
                {
                  String item = (String) listAssignedResources.getModel().getElementAt(j);
                  JDBAutoLabellerResources po = new JDBAutoLabellerResources(Common.selectedHostID, Common.sessionID);
                  po.delete(jTextFieldType.getText(),comboBox4jGroup.getSelectedItem().toString(), item);
                }
              }
              populateListAssignedResources(jTextFieldType.getText(),comboBox4jGroup.getSelectedItem().toString(),"");
              populateListAllResources();
              jButtonUpdate.setEnabled(true);
View Full Code Here


  }
 
  private void populateListAssignedResources(String line,String group,String defaultitem) {
    DefaultComboBoxModel<String> defComboBoxMod = new DefaultComboBoxModel<String>();

    JDBAutoLabellerResources po = new JDBAutoLabellerResources(Common.selectedHostID, Common.sessionID);
    LinkedList<String> tempGroupList = po.getRequiredResourceList(line,comboBox4jGroup.getSelectedItem().toString());
    int sel = -1;
    for (int j = 0; j < tempGroupList.size(); j++)
    {
      defComboBoxMod.addElement(tempGroupList.get(j));
      if (tempGroupList.get(j).toString().equals(defaultitem))
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBAutoLabellerResources

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.