Package net.helipilot50.stocktrade.framework

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


            qq_cmd = dBConnection.getPreparedStatement(qq_SQL);
            qq_rs = qq_cmd.executeQuery();
            ResultSetHelper qq_rsHelper = new ResultSetHelper(qq_rs);
            System.out.println("Stocks:");
            while (qq_rsHelper.next()) {
                TextData temp = qq_rsHelper.getTextData(1);
                ListElement row = new ListElement();
                row.getTextValue().setValue( temp.getValue() );
                this.stockNameList.add(row);
                this.stockNames.add(temp.getValue());
                System.out.println("\t" + temp.getValue());
            }
        }
        catch (SQLException qq_error) {
            throw new SQLErrorCodeSQLExceptionTranslator(dBConnection.getDataSource()).translate("Running SQL", qq_SQL, qq_error);
        }
View Full Code Here


            throw errorVar;
        }
    }

    protected String dataValueToString(DataValue value) {
        TextData buffer = new TextData();
        value.fillString(buffer);
        return buffer.toString();
    }
View Full Code Here

      clearCache(e);
    }
  };

  private void clearCache(JFrame frame) {
    TextData statusTextDataObject = (TextData)UIutils.getForm(frame).getClientProperty(cSTATUS_WIDGET);
      if (statusTextDataObject != null) {
      statusTextDataObject.removePropertyChangeListener("value", oldValueChangeListener);
      oldValueCache.remove(statusTextDataObject);
    }
  }
View Full Code Here

    private StatusTextListener(){
    }

    public void mouseEntered(MouseEvent e) {
        TextData statusTextValue = (TextData)((JComponent)e.getSource()).getClientProperty(StatusText.cSTATUS_TEXT);
        // TF:01/03/2010:DET-130:Check to see if the value is null
      setStatusTextForComponent((JComponent)e.getSource(), statusTextValue);
    }
View Full Code Here

     * @param component the component inside of the window.
     * @param statusTextValue the status text value.
     */
  public void setStatusTextForComponent(JComponent component, TextData statusTextValue) {
    JFrame topLevelAncestor = (JFrame)component.getTopLevelAncestor();
        TextData mappedProperty = (TextData)UIutils.getForm(topLevelAncestor).getClientProperty(cSTATUS_WIDGET);
       
    if (mappedProperty != null){
      if (!oldValueCache.containsKey(mappedProperty)) {
        oldValueCache.put(mappedProperty, mappedProperty.toString());
         
        mappedProperty.addPropertyChangeListener("value", oldValueChangeListener);
        // TF:01/03/2010:Ensure we're only in the cache once, even if the status text field is changed
        topLevelAncestor.removeWindowListener(windowClosingListener);
        topLevelAncestor.addWindowListener(windowClosingListener);
      }
      // TF:01/03/2010:Always update the old value in the cache, as the mouse exit handler will expect a valid value
      oldValueCache.put(mappedProperty, mappedProperty.toString());
      if (statusTextValue != null) {
        setStatusText(mappedProperty, statusTextValue.toString());
      }
        }
  }
View Full Code Here

    /**
     * Revert status text value to previous one.
     * @param component the component in window with status line.
     */
  public void resetStatusTextForComponent(JComponent component) {
        TextData mappedProperty = (TextData)UIutils.getForm((JFrame)component.getTopLevelAncestor()).getClientProperty(cSTATUS_WIDGET);
        if (mappedProperty != null){
          String oldText = oldValueCache.get(mappedProperty);
          setStatusText(mappedProperty, oldText);
        }
  }
View Full Code Here

        return "";
    }

    protected String dataValueToString(DataValue value) {
        TextData buffer = new TextData();
        value.fillString(buffer);
        return buffer.toString();
    }
View Full Code Here

  }

  public TextData getName() {
    if (this.data != null) {
      try {
        return new TextData(this.data.getColumnName(this.column));
      }
      catch (Exception e) {
      }
    }
        return new TextData(this.name);
    }
View Full Code Here

      } else if (value != null){
        String aString = value.toString();
        this.fif.getModel().setSelectedItem(aString);
      }
      if (value != null) {
        this.fif.setTextValue(new TextData(value.toString()));
      }
    }
    finally {
      EventManager.enableEventPosting();
    }
View Full Code Here

          int index = list.getSelectionIndex();
          List<ListElement> items = this.getElementList();
          if (index >= 0 && index < items.size() && items.get(index) != null) {
            return items.get(index).getTextValue();
          }
          return new TextData("");
        }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.TextData$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.