Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.TextNullable$qq_Resolver


        tb.setTitle(cap);
    }

    public TextData getCaption() {
        TitledBorder tb = (TitledBorder) getBorder();
        return new TextData(tb.getTitle());
    }
View Full Code Here


            }
        }
    }
    //PM:14/3/08 properties for binding the text value
    public void setText(String value){
      this.setTextValue(new TextData(value));
    }
View Full Code Here

        // AD:20/11/2008: Allow for CachedRowSet to be updated if the DBDataSet has already been populated.
        if (resultSet instanceof CachedRowSet) {
          CachedRowSet cachedRowSet = (CachedRowSet) resultSet;
          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;
View Full Code Here

     * <p>
     */
    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");
View Full Code Here

    }
   
    private TextNullable getTextNullable(int pColumnID, int pColumnType) {
        try {
            TextNullable tn = new TextNullable();

            String str = resultSet.getString(pColumnID);
            if (resultSet.wasNull()) {
                tn.setIsNull(true);
            }
            else {
              // Whether we truncate or not depends on the database
              tn.setValue(determineStringToReturn(str, pColumnID, pColumnType));
            }

            return tn;
        } catch (SQLException e) {
          throw processException(e);
View Full Code Here

     * @param pColumnID the ordinal number of the column to read
     * @return a TextNullable instance containing the value of the column in the database
     */
    public TextNullable getTextNullable(int pColumnID) {
        try {
            TextNullable tn = new TextNullable();

            String str = resultSet.getString(pColumnID);
            if (resultSet.wasNull()) {
                tn.setIsNull(true);
            }
            else {
              // Whether we truncate or not depends on the database
              tn.setValue(determineStringToReturn(str, pColumnID));
            }

            return tn;
        } catch (SQLException e) {
          throw processException(e);
View Full Code Here

            // super.init();
            this.setCurrentDay(""); //$NON-NLS-1$

            this.setFA(new Array_Of_TextNullable<TextNullable>());
            for (int k = 1; k <= 37; k++) {
                this.getFA().set(k-1, new TextNullable());

            }
            refreshDays();
        }
View Full Code Here

     *  called from DataFieldVerifier.verify to handle those instances
     *  where the value of a mask field has been removed
     */
    public void clearValue() {
        if  (this.getValue() instanceof TextNullable) {
            this.setValue(new TextNullable());
            fireAfterValueChangeEvents();
        }
        // CraigM:26/11/2008 - Allow clearing of TextDatas.  DET-55.
        else if (this.getValue() instanceof TextData) {
            this.setValue(new TextData());
View Full Code Here

                // TF:27/8/07:We need to clone the return value, otherwise we'll be returning the actual textdata mapped to the listelement
                // and any changes on this list element will erroneously affect the underlying list
                subject.setValue(CloneHelper.clone(element.getTextValue(), false));
            }
            else if (TextNullable.class.equals(subjectType)) {
        subject.setValue(new TextNullable(element.getTextValue()));
      }
            else if (TextData.class.isAssignableFrom(subjectType)) {
                try {
                    TextData aTextData = (TextData)subjectType.newInstance();
                    aTextData.setValue(element.getTextValue());
                    subject.setValue(aTextData);
                }
                catch (Exception e) {
                    // No default constructor
                    _log.debug("Could not instantiate class " + subjectType.getName(), e);
                }
            }
            else if (String.class.equals(subjectType)) {
                subject.setValue(element.toString());
            }
            else {
              // CraigM:11/12/2008 - We can always set the object value as a last resort
              subject.setValue(element.getObjectValue());
            }
        }

        // Handle nulls - Can happen when mapped to a IntegerNullable radio list. CraigM 11/10/2007
        else if (newValue == null) {
            if (IntegerNullable.class.equals(subjectType)) {
                subject.setValue(new IntegerNullable((Integer)null));
            }
            else if (TextNullable.class.equals(subjectType)) {
                subject.setValue(new TextNullable((String)null));
            }
        }
    }
View Full Code Here

     * Set the text value of the passed component to the passed value
     * @param comp the component whose text value is to be set
     * @param value the new value of the text
     */
    public static void set(JLabel comp, String value) {
        ActionMgr.addAction(new TextValue(comp, new TextNullable(value)));
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.TextNullable$qq_Resolver

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.