Examples of IntegerData


Examples of 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 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 Framework.IntegerData

    public JButton getLastCMD() {
        return this.lastCMD;
    }

    public void setMode(IntegerData mode) {
        IntegerData oldValue = this.mode;
        this.mode = mode;
        this.qq_Listeners.firePropertyChange("mode", oldValue, this.mode);
    }
View Full Code Here

Examples of Framework.IntegerData

     * <p>
     * @param attr Type: int
     * @param value Type: Array_Of_BusinessClass<BusinessClass>
     */
    public void getAttr(int attr, ParameterHolder_BusinessClass_Array value) {
        throw new Error(Error.B_ILLEGAL_ATTR, "GetAttr", this, new IntegerData(attr), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM2).getException();
    }
View Full Code Here

Examples of Framework.IntegerData

     * <p>
     * @param attr Type: int
     * @param value Type: BusinessClass
     */
    public void getAttr(int attr, ParameterHolder_BusinessClass value) {
        throw new Error(Error.B_ILLEGAL_ATTR, "GetAttr", this, new IntegerData(attr), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM2).getException();
    }
View Full Code Here

Examples of Framework.IntegerData

     * <p>
     * @param attr Type: int
     * @return DataValue
     */
    public DataValue getAttr(int attr) {
        throw new Error(Error.B_ILLEGAL_ATTR, "GetAttr", this, new IntegerData(attr), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM2).getException();
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

          try {
            if (pValue instanceof TextData) {
              TextData textValue = (TextData) pValue;
              cachedRowSet.updateString(pColOrdinal, textValue.toString());
            } else if (pValue instanceof IntegerData) {
              IntegerData integerValue = (IntegerData) pValue;
              cachedRowSet.updateInt(pColOrdinal, integerValue.getIntegerValue());
            } else if (pValue instanceof DoubleData) {
              DoubleData doubleValue = (DoubleData) pValue;
              cachedRowSet.updateDouble(pColOrdinal, doubleValue.getDoubleValue());
            } else if (pValue instanceof DecimalData) {
              DecimalData value = (DecimalData) pValue;
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

    public void setAttribute (Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {
        Instrument instrument = this.findInstrument(attribute.getName());
        if (instrument instanceof ConfigValueInst) {
            DataValue theAttribute = null;
            if (attribute.getValue() instanceof java.lang.Integer) {
                theAttribute = new IntegerData((Integer)attribute.getValue());
            }
            if (attribute.getValue() instanceof java.lang.Double) {
                theAttribute = new DoubleData((Double)attribute.getValue());
            }
            if (attribute.getValue() instanceof java.lang.String) {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

        peakMembersInUse.setInstrumentID(systemID + PEAK_MEMBERS_IN_USE);
        this.addInstrument(peakMembersInUse);

        maxSize = new ConfigValueInst();
        maxSize.getName().setValue("MaxSize");
        maxSize.updateData(new IntegerData(10));
        maxSize.setIsReadOnly(false);
        maxSize.setInstrumentID(systemID + MAX_SIZE);
        this.addInstrument(maxSize);

        minIdle = new ConfigValueInst();
        minIdle.getName().setValue("MinIdle");
        minIdle.updateData(new IntegerData(1));
        minIdle.setIsReadOnly(false);
        minIdle.setInstrumentID(systemID + MAX_SIZE);
        this.addInstrument(minIdle);
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.IntegerData

            if (active > peakMembersInUse.Value){
                peakMembersInUse.increment(active);
            }
            break;
            case MAX_SIZE:
            maxSize.updateData(new IntegerData(pool.getMaxSize()));
            break;
            case MIN_IDEL:
            minIdle.updateData(new IntegerData(pool.getMinIdle()));
            break;
        }
        super.updateInstrument(inst);
    }
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.