Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.DataFieldFormatterFactory$DataFormatterException


       
//        int systemCID = getLastCID();

        this.nameInst = new ConfigValueInst();
        this.nameInst.getName().setValue("Name");
        this.nameInst.updateData(new TextData(this.getClass().getSimpleName()));
        this.nameInst.setIsReadOnly(true);
        this.nameInst.setInstrumentID(systemID + 1);
        this.addInstrument(this.nameInst);
        //PM:19/2/08 removed the set name
//        this.setName(this.getClass().getSimpleName());
View Full Code Here


    public TextData getName() {
        return this.name;
    }
    //PM:18/07/2008: AXA
    public void setNameAsString(String pValue) {
        this.setName(new TextData(pValue));
    }
View Full Code Here

     * @return Array_Of_TextData
     */
    public Array_Of_TextData<TextData> listInstruments(){
        Array_Of_TextData<TextData> instruments = new Array_Of_TextData<TextData>();
        for (Instrument tmpInstrument : this.instruments) {
            instruments.add(new TextData(tmpInstrument.getName()));
        }
        return instruments;
    }
View Full Code Here

            }
            if (attribute.getValue() instanceof java.lang.Double) {
                theAttribute = new DoubleData((Double)attribute.getValue());
            }
            if (attribute.getValue() instanceof java.lang.String) {
                theAttribute = new TextData((String)attribute.getValue());
            }
            ((ConfigValueInst)instrument).updateData(theAttribute);
        }
        if (instrument instanceof CounterInst) {
            ((CounterInst)instrument).setIntegerValue((Integer)attribute.getValue());
View Full Code Here

     * @return The width of the title, or 0 if there is no title.
     */
    public int getTitleWidth(GridField parentGrid) {
        if (cachedTitleWidth < 0) {
            int captionWidth = 0;
            TextData tdCaption = parentGrid.getCaption();
            String caption = (tdCaption == null) ? "": tdCaption.toString();
            if ("".equals(caption)) {
                captionWidth = 0;
            }
            else {
                Font font = null;
View Full Code Here

        Connection connection = null;
        try {
            connection = this.getConnection();
            ResultSet rs = connection.getMetaData().getTables(null, null, pName, null);
            while (rs.next()) {
                tableNames.add(new TextData(rs.getString(3)));
            }
        } catch (SQLException e) {
            throw new UsageException(e);
        } finally {
            releaseConnection(connection);
View Full Code Here

            this.orientation = or;
            this.firePropertyChange("orientation", oldValue, this.orientation);
            updateSize();
            break;
        default:
            UsageException errorVar = new UsageException("The value " + or + " cannot be set as the orientation on a RadioList");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

            this.layoutPolicy = pPolicy;
            this.firePropertyChange("layoutPolicy", oldValue, this.layoutPolicy);
            updateSize();
            break;
        default:
            UsageException errorVar = new UsageException("The value " + pPolicy + " cannot be set as the orientation on a RadioList");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

            CachedRowSet rowSet = new CachedRowSetImpl();
            rowSet.populate(pResults);
              this.resultSet = rowSet;
          }
          catch (SQLException e) {
                UsageException errorVar = new UsageException(e.getMessage(), SP_ER_USER, SP_ER_PARAMETERERROR, e);
                ErrorMgr.addError(errorVar);
                throw errorVar;
          }
        }
        else {
View Full Code Here

        return resultSet.findColumn(pColName);
      } catch (SQLException e) {
        // Ignore the exception because one will be raised below
      }
      }
        UsageException errorVar = new UsageException("Could not find ordinal for " + pColName);
        ErrorMgr.addError(errorVar);
        throw errorVar;
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.displayproject.DataFieldFormatterFactory$DataFormatterException

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.