• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Class Not Displaying in WO Builder - problem solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class Not Displaying in WO Builder - problem solved


  • Subject: Re: Class Not Displaying in WO Builder - problem solved
  • From: Drew Thoeni <email@hidden>
  • Date: Thu, 18 Dec 2003 00:08:15 -0500

Turns out a restart of my PB solved the problem.

On Dec 16, 2003, at 5:16 PM, Drew Thoeni wrote:

On Dec 16, 2003, at 5:13 PM, arturo wrote:

----- Original Message -----
The objective I have is to isolate the variables in a separate class,
which, from what I read as a newbie, is proper form for Java.

You mean like Struts recommends?


Yes, like Struts recommends.


In any case, all you need are to implement public getters/setters and your
variables should show up.



The class is public (it does not show up in WOBuilder at all if it is not public) and, as shown below, the setters and getters are also public. The new class shows up in WOBuilder but the variables do not.


Ideas?

Here's the code...

//
//  MaintainQuestionVariables.java
//  WOQuaq
//
//  Created by Drew Thoeni on Tue Dec 16 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

import com.webobjects.foundation.*;
import com.webobjects.eocontrol.*;
import java.math.BigDecimal;
import java.util.*;

public class MaintainQuestionVars extends EOGenericRecord {

    public MaintainQuestionVars() {
        super();
        Integer zeroInt = new Integer(0);
        setBlankLetters(zeroInt);
        setOffsetOfA(zeroInt);
        setQuestionWord("x");
        setPageTitle("Maintain Questions");
    }

    // page title for web page
    public String pageTitle() {
        return (String)storedValueForKey("pageTitle");
    }
    public void setPageTitle(String value) {
        takeStoredValueForKey(value, "pageTitle");
    }

    // original word (i.e. the answer) to build the scrambled word
    public String wordToAlter() {
        return (String)storedValueForKey("wordToAlter");
    }
    public void setWordToAlter(String value) {
        takeStoredValueForKey(value, "wordToAlter");
    }

    // how many blank letters to include in answer
    public Number blankLetters() {
        return (Number)storedValueForKey("blankLetters");
    }
    public void setBlankLetters(Number value) {
        takeStoredValueForKey(value, "blankLetters");
    }

     // for coded scrambles what is offset of "A"
    public Number offsetOfA() {
        return (Number)storedValueForKey("offsetOfA");
    }
    public void setOffsetOfA(Number value) {
        takeStoredValueForKey(value, "offsetOfA");
    }

    // describes the wordToAlter(e.g. plant, animal, food, etc.)
    public String answerWordType() {
        return (String)storedValueForKey("answerWordType");
    }
    public void setAnswerWordType(String value) {
        takeStoredValueForKey(value, "answerWordType");
    }

    // generated scrambled word (plain text, with blanks, or in code)
    public String questionWord() {
        return (String)storedValueForKey("questionWord");
    }
    public void setQuestionWord(String value) {
        takeStoredValueForKey(value, "questionWord");
    }

    // A number that indicates the relative difficulty of this question
    public Number difficultyFactor() {
        return (Number)storedValueForKey("difficultyFactor");
    }
    public void setDifficultyFactor(Number value) {
        takeStoredValueForKey(value, "difficultyFactor");
    }

}
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Class Not Displaying in WO Builder (From: Drew Thoeni <email@hidden>)
 >Re: Class Not Displaying in WO Builder (From: arturo <email@hidden>)
 >Re: Class Not Displaying in WO Builder (From: Drew Thoeni <email@hidden>)

  • Prev by Date: Re: subStrings separated by...
  • Next by Date: Can't load application class.
  • Previous by thread: Re: Class Not Displaying in WO Builder
  • Next by thread: ANN: UML to EOF Converter for WebObjects developers
  • Index(es):
    • Date
    • Thread