Java Doc for Question.java in  » XML-UI » xui32 » com » xoetrope » survey » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML UI » xui32 » com.xoetrope.survey 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.xoetrope.survey.Question

Question
public class Question (Code)
A data store for a question, its ID and the response options

Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.

$Revision: 1.8 $



Field Summary
final public static  intDEFAULT_TYPE
    
final public static  intFREE_TEXT
     Flag identifying a question that is a edit type of question.
final public static  intMAX_RANGE
    
final public static  intMULTIPLE_CHOICE
    
final public static  intMUTUALLY_EXCLUSIVE
    
final public static  String[]QUESTION_TYPES
    

Constructor Summary
public  Question(int qId, QuestionGroup g, int type, String caption)
    
public  Question(int qId, QuestionGroup g)
    

Method Summary
public  voidaddOption(int id, String caption)
    
public  voidaddOption(Option o)
    
public  voiddeleteOption(int optionIdx)
    
public  booleanequals(Object o)
    
public  intgetDEFAULT_TYPE()
    
public  QuestionGroupgetGroup()
    
public  intgetId()
    
public  intgetNumOptions()
    
public  OptiongetOption(int index)
    
public  OptiongetOptionById(int optionId)
    
public  intgetOptionId(int index)
    
public  intgetOptionIdByText(String text)
    
public  intgetOptionIdx(int optionId)
    
public  StringgetOptionText(int index)
    
public  VectorgetOptions()
    
public  intgetQuestionType()
    
public  StringgetQuestionTypeText()
    
public  StringgetText()
    
public static  intgetType(String typeText)
    
public  voidsetGroup(QuestionGroup g)
    
public  voidsetId(int newId)
    
public  voidsetOption(int idx, int id, String caption)
    
public  voidsetQuestionType(int qt)
    
public  voidsetSize(int s)
    
public  voidsetText(String newText)
    
public  voidsetType(String typeName)
    
public  StringtoString()
    

Field Detail
DEFAULT_TYPE
final public static int DEFAULT_TYPE(Code)



FREE_TEXT
final public static int FREE_TEXT(Code)
Flag identifying a question that is a edit type of question.



MAX_RANGE
final public static int MAX_RANGE(Code)
The maximum value range for the question



MULTIPLE_CHOICE
final public static int MULTIPLE_CHOICE(Code)
Flag identifying a question that is a multiple choice question



MUTUALLY_EXCLUSIVE
final public static int MUTUALLY_EXCLUSIVE(Code)
Flag identifying a questions whose options are mutually exclusive of one another



QUESTION_TYPES
final public static String[] QUESTION_TYPES(Code)




Constructor Detail
Question
public Question(int qId, QuestionGroup g, int type, String caption)(Code)
Creates a new question
Parameters:
  type - The Question type
Parameters:
  qId - The question id
Parameters:
  range - The number of response
Parameters:
  caption - The question text



Question
public Question(int qId, QuestionGroup g)(Code)
Creates a new question
Parameters:
  type - the question type
Parameters:
  qId - the id of the question
Parameters:
  g - the question group that this question will belong to




Method Detail
addOption
public void addOption(int id, String caption)(Code)
Add a response option
Parameters:
  id - the response id or value
Parameters:
  caption - the response text



addOption
public void addOption(Option o)(Code)
Adds the option to this question
Parameters:
  o - the option which is to be added



deleteOption
public void deleteOption(int optionIdx)(Code)
Deletes the option with the specified index
Parameters:
  optionIdx - the index of the option



equals
public boolean equals(Object o)(Code)



getDEFAULT_TYPE
public int getDEFAULT_TYPE()(Code)
Gets the default question type the default type



getGroup
public QuestionGroup getGroup()(Code)
Gets the question group that this question belongs to the question group



getId
public int getId()(Code)
Gets the question ID teh ID



getNumOptions
public int getNumOptions()(Code)
Gets the number of response options the number of options



getOption
public Option getOption(int index)(Code)
Gets the option of this question with the specified index
Parameters:
  index - the index of the option the wanted option



getOptionById
public Option getOptionById(int optionId)(Code)
Gets the option with the specified id
Parameters:
  optionId - the id of the option option



getOptionId
public int getOptionId(int index)(Code)
Gets the Id or values of am option
Parameters:
  index - the option index the value



getOptionIdByText
public int getOptionIdByText(String text)(Code)
Gets the id of the option with the specified text
Parameters:
  text - the text of the option the id of the wanted option



getOptionIdx
public int getOptionIdx(int optionId)(Code)
Gets the index of the specified option of this question
Parameters:
  optionId - the id of the option the localization of the option



getOptionText
public String getOptionText(int index)(Code)
Gets the text of the option with the specified index
Parameters:
  index - the index of the option the text or caption of the option



getOptions
public Vector getOptions()(Code)
Gets this question's options Vector containing optionsof this question



getQuestionType
public int getQuestionType()(Code)
Gets the question type the type



getQuestionTypeText
public String getQuestionTypeText()(Code)
Gets the type of this question String descrinbing this question's type



getText
public String getText()(Code)
Gets the question text the text



getType
public static int getType(String typeText)(Code)
Gets the type of the passed question
Parameters:
  typeText - String describing the type of the question the type of the question



setGroup
public void setGroup(QuestionGroup g)(Code)
Sets the group of this question
Parameters:
  g - the question group



setId
public void setId(int newId)(Code)
Set the question ID
Parameters:
  newId - the new ID



setOption
public void setOption(int idx, int id, String caption)(Code)
Set an option for this questions
Parameters:
  idx - the option index
Parameters:
  id - the id or value of the option
Parameters:
  caption - the text of the question



setQuestionType
public void setQuestionType(int qt)(Code)
Sets the new type of this question
Parameters:
  qt - the new type of this question



setSize
public void setSize(int s)(Code)



setText
public void setText(String newText)(Code)
Set the question text
Parameters:
  newText - the new text



setType
public void setType(String typeName)(Code)
Sets the new type of this question
Parameters:
  typeName - String describing the new type of this question



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.