Examples of IntegerData


Examples of net.helipilot50.stocktrade.framework.IntegerData

    public void dumpStats() {
        String title1 = null;
        TextData title2 = null;
        TextNullable title3 = null;
        int numCustomers = 0;
        IntegerData numStocks = null;
        double totalValue = 0;

        DBConnectionManager dBConnection = DBConnectionManager.getInstance("DBConnection");

        // -- =============== Original SQL ===============
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

      return new Integer(element.getIntegerValue());
    }
   
    else if (IntegerData.class.isAssignableFrom(editorColumnClass)) {
      try {
        IntegerData newValue = (IntegerData)editorColumnClass.newInstance();
        newValue.setValue(element.getIntegerValue());
        return newValue;
      }
      catch (Exception e) {
        // Shouldn't get here, let's keep the compiler happy
        return new IntegerData(element.getIntegerValue());
      }
    }
    else if (TextData.class.isAssignableFrom(editorColumnClass)) {
      // CraigM:25/05/2008 - Not sure what all this is, but it stops users from entering text that is not in the list
//      try {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

            int num;
            if (value instanceof Number) {
              num = ((Number)value).intValue();
            }
            else {
              IntegerData anInt = (IntegerData)value;

              if (anInt.isNull()) {
                // If it is null, then clear out the radio list.  CraigM: 08/08/2007
                this.radioList.clearSelection();

                return this.radioList;
              }
              else {
                num = anInt.intValue();
              }
            }
            this.radioList.setSelectedIndex(num-1);
          }
          // must be s string or textdata
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getTextData(String) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            IntegerData id = new IntegerData(resultSet.getInt(pColumnID));
            return id;
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getIntegerData(String) could not handle column " + pColumnName + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            IntegerData id = new IntegerData(resultSet.getInt(pColumnName));
            return id;
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

                int num;
                if (value instanceof Number) {
                    num = ((Number)value).intValue();
                }
                else {
                    IntegerData anInt = (IntegerData)value;
                    if (anInt.isNull()) {
                        return aComboBox;
                    }
                    else {
                        num = anInt.intValue();
                    }
                }
                aComboBox.setSelectedItem(null);
                int limit = aComboBox.getModel().getSize();             // KM changed this.comboBox to aComboBox
                for (int i = 0; i < limit; i++) {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

                boolean found = false;
                if (value instanceof Number) {
                    num = ((Number)value).intValue();
                }
                else {
                    IntegerData anInt = (IntegerData)value;
                    if (anInt.isNull()) {
                      // TF:02/11/2009:If we're null, we need to set the item to N/A (the default string)
                      this.fifCloned.getEditor().setItem(anInt.toString());
                      found = true;
                    }
                    else {
                        num = anInt.intValue();
                    }
                }
//               this.fif.setSelectedItem(null);
                if (!found) {
                  int limit = this.fifCloned.getModel().getSize();
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

        if (Integer.class.equals(this.mapType)) {
            return new Integer(element.getIntegerValue());
        }
        else if (IntegerData.class.isAssignableFrom(mapType)) {
            try {
                IntegerData newValue = (IntegerData)mapType.newInstance();
                newValue.setValue(element.getIntegerValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return new IntegerData(element.getIntegerValue());
            }
        }
        else if (TextData.class.isAssignableFrom(mapType))
            try {
                TextData newValue = (TextData)mapType.newInstance();
                newValue.setValue(element.getTextValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return element == null ? null : element.getTextValue();
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

        if (Integer.class.equals(elementClass)) {
            return new Integer(element.getIntegerValue());
        }
        else if (IntegerData.class.isAssignableFrom(elementClass)) {
            try {
                IntegerData newValue = (IntegerData)elementClass.newInstance();
                newValue.setValue(element.getIntegerValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return new IntegerData(element.getIntegerValue());
            }
        }
        else if (TextData.class.isAssignableFrom(elementClass)) {
            try {
                TextData newValue = (TextData)elementClass.newInstance();
                newValue.setValue(element.getTextValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return element == null ? null : element.getTextValue();
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

          return null;
        }
    }

    public int getIntegerValue() {
        final IntegerData target = new IntegerData();
        UIutils.invokeOnGuiThread(
            new Runnable () {
                public void run() {
                    if (cb.getSelectedIndex() == -1) {
                      // TF:07/10/2008:Tests show that Forte didn't return 0, but rather Integer.MIN_VALUE
                        target.setValue(Integer.MIN_VALUE);
                    }
                    else {
                        target.setValue(((ListElement)cb.getSelectedItem()).getIntegerValue());
                    }
                }
            });
        return target.getValue();
    }
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.