Package Framework

Examples of Framework.TextNullable$qq_Resolver


      TextData value;
        TextValue action = ActionMgr.getAction(menuList, TextValue.class);
        if (action != null) {
            value = ((TextValue)action).getValue();
            if (!(value instanceof TextNullable)) {
              value = new TextNullable(value);
            }
        } else {
            value = new TextNullable(menuList.getTextValue());
        }
        return value;
    }
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

     * 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

     * 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(DataField 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.