Package Framework

Examples of Framework.TextNullable$qq_Resolver


    }
   
    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

     *  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

     * 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(JCheckBox comp, String value) {
        ActionMgr.addAction(new TextValue(comp, new TextNullable(value)));
    }
View Full Code Here

    public static void setWithCharacterField(CharacterField comp, TextData value) {
      setWithCharacterField(comp, value.toString());
    }
    public static void setWithCharacterField(CharacterField comp, String value) {
        if (comp instanceof DataField)
            ActionMgr.addAction(new TextValue((DataField)comp, new TextNullable(value)));
        else if (comp instanceof JTextComponent)
            ActionMgr.addAction(new TextValue((JTextComponent)comp, new TextNullable(value)));
        else if (comp instanceof FillInField)
            ActionMgr.addAction(new TextValue((FillInField)comp, new TextNullable(value)));
    }
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(JButton comp, String value) {
        ActionMgr.addAction(new TextValue(comp, new TextNullable(value)));
    }
View Full Code Here

    public static void set(JMenuItem comp, TextData value){
        ActionMgr.addAction(new TextValue(comp,value));
    }

    public static void set(JMenuItem comp, String value) {
        ActionMgr.addAction(new TextValue(comp, new TextNullable(value)));
    }
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(JTextComponent comp, String value){
        ActionMgr.addAction(new TextValue(comp, new TextNullable(value)));
    }
View Full Code Here

TOP

Related Classes of 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.