Examples of TextData


Examples of net.helipilot50.stocktrade.framework.TextData

     * @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

Examples of net.helipilot50.stocktrade.framework.TextData

            }
            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

Examples of net.helipilot50.stocktrade.framework.TextData

     * @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

Examples of net.helipilot50.stocktrade.framework.TextData

        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

Examples of net.helipilot50.stocktrade.framework.TextData

        int systemID = getLastIID();

        ConfigValueInst archName = new ConfigValueInst();
        archName.getName().setValue("Architecture");
        archName.updateData(new TextData(System.getProperty("os.arch")));
        archName.setIsReadOnly(true);
        archName.setInstrumentID(systemID + 1);
        this.addInstrument(archName);

        ConfigValueInst modelNode = new ConfigValueInst();
        modelNode.getName().setValue("ModelNode");
        modelNode.updateData(new TextData("false"));
        modelNode.setIsReadOnly(true);
        modelNode.setInstrumentID(systemID + 2);
        this.addInstrument(modelNode);

View Full Code Here

Examples of net.helipilot50.stocktrade.framework.TextData

            Stream outStream) {
            int systemIndex = CommandIndexValues.AGENT_CMD_LASTVALUE;
            int index = cmdIndex - systemIndex;
            switch (index){
            case MOD_LOGGER_REMOTE_INDEX:{
                TextData flags = (TextData)parameters.get(0);
                modLoggerRemote(flags.toString());
                return null;
            }
            case MOD_LOG4J_REMOTE_INDEX:{
              TextData logger = (TextData)parameters.get(0);
                TextData level = (TextData)parameters.get(1);
                modLog4JRemote(logger.toString(), level.toString());
                return null;
            }
            case EXEC_CMD_REMOTE_INDEX:{
                try {
                  TextData command = (TextData)parameters.get(0);
                    Runtime.getRuntime().exec(command.toString());
                    return null;
                } catch (IOException e) {
                    return e.getMessage();
                }
            }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.TextData

        this.setNameAsString(Application.getName() + "_Server");
        int systemID = getLastIID();

        PID = new ConfigValueInst();
        PID.getName().setValue("ProcessID");
        PID.updateData(new TextData());
        PID.setIsReadOnly(true);
        PID.setInstrumentID(systemID + 1);
        this.addInstrument(PID);

        buildDate = new ConfigValueInst();
        buildDate.getName().setValue("BuildDate");
        buildDate.updateData(new TextData(System.getProperty("BuildDate")));
        buildDate.setIsReadOnly(true);
        buildDate.setInstrumentID(systemID + 2);
        this.addInstrument(buildDate);

        isCompiled = new ConfigValueInst();
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.TextData

    }
   
    @Override
    public void updateInstrument(Instrument inst) {
      //PM:01/07/2008:deferred getting the process id until updateInstrument() is called
      PID.updateData(new TextData(Partition.getPID()));
      super.updateInstrument(inst);
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.TextData

            qq_SQL = "select StockName from Stock ";
            qq_cmd = dBConnection.getPreparedStatement(qq_SQL);
            qq_rs = qq_cmd.executeQuery();
            ResultSetHelper qq_rsHelper = new ResultSetHelper(qq_rs);
            while (qq_rsHelper.next()) {
                TextData temp = qq_rsHelper.getTextData(1);
                ListElement row = new ListElement();
                row.getTextValue().setValue( temp.getValue() );
                this.stockNameList.add(row);
            }
        }
        catch (SQLException qq_error) {
            throw new SQLErrorCodeSQLExceptionTranslator(dBConnection.getDataSource()).translate("Running SQL", qq_SQL, qq_error);
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.TextData

        super();
        this.setName(name);
    }
    public Instrument(String name) {
        super();
        this.setName(new TextData(name));
    }
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.