Examples of DropListModel


Examples of net.helipilot50.stocktrade.displayproject.DropListModel

    }

    @SuppressWarnings("unchecked")
    public static DropList newDropList(Array_Of_ListElement<ListElement> elements) {
      DropList cb = DropFillinFactory.newDropList();
      DropListModel model = new DropListModel(new Array_Of_ListElement(Arrays.asList(elements)),cb);
      cb.setModel(model);
      //cb.addActionListener(model);
      //cb.setModel(new DefaultComboBoxModel(elements));
      cb.setMaximumRowCount(elements.size());
      return cb;
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.DropListModel

                  }
              }
            }
        }
        else {
            comp.setModel(new DropListModel(les, comp));
        }
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.DropListModel

        for (int i=0; i<comp.getModel().getSize(); i++) {
          if (comp.getModel().getElementAt(i) instanceof ListElement) {
            elements.add((ListElement)comp.getModel().getElementAt(i));
          }
        }
        comp.setModel(new DropListModel(elements, comp));
      }
      // TF:28/07/2009:Changed this to return the data from the underlying model. We cannot pass (ListField)comp as the
      // second parameter for historical reasons -- this get method was invoked directly from the main thread due to a
      // generator bug, and the solution admistered to the code was to have this method calling ElementList.get() indirectly.
      // If we pass (ListField)comp here, it will call ElementList.get(comp) which is this method and hence enters
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.DropListModel

          // This latter situation is probably the more important situation, so we default the behaviour to this.
          elementConverter.setForceValidValue(true);
        }
       
        //SelectionInList selection = new SelectionInList(newList,elementConverter);
        comboBox.setModel(new DropListModel(newList, elementConverter, comboBox));
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.DropListModel

        @SuppressWarnings("unchecked")
    public void performAction() {
          try {
              if (this.bg == null){
                  if (this._component instanceof JComboBox){
                      DropListModel dlm = (DropListModel)((JComboBox)this._component).getModel();
                      dlm.setSelectedIndex(value-1);
                  }
                  else if (this._component instanceof RadioList) {
                    // TF:23/07/2008:Changed this to use the radio list instead of the model to make the code cleaner
                      ((RadioList)this._component).setIndexValue(value-1);
                  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.